)]}'
{"bandit/core/utils.py":[{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"068aa8efb0b257e04d635d89a2d022c542a242b9","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    Attributes. This will give you how the code referenced the name but"},{"line_number":38,"context_line":"    will not tell you what the name actually refers to. If we"},{"line_number":39,"context_line":"    encounter a node without a static name we punt with an"},{"line_number":40,"context_line":"    empty string. If this encounters something more comples, such as"},{"line_number":41,"context_line":"    foo.mylist[0](a,b) we just return empty string."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    :param node: AST Name or Attribute node"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_2ac85421","line":40,"updated":"2015-03-03 15:37:09.000000000","message":"*complex","commit_id":"355e4ea07ed91bac0496d572d8aaf57b7a6f826b"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"2ab5232c7127863894f67e991e029e71f2c03106","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    :returns: Qualified name refered to by the attribute or name."},{"line_number":46,"context_line":"    \u0027\u0027\u0027"},{"line_number":47,"context_line":"    if type(node) \u003d\u003d _ast.Name:"},{"line_number":48,"context_line":"        if node.id in aliases:"},{"line_number":49,"context_line":"            return aliases[node.id]"},{"line_number":50,"context_line":"        return node.id"},{"line_number":51,"context_line":"    elif type(node) \u003d\u003d _ast.Attribute:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_cdd52fe6","line":48,"updated":"2015-03-03 04:04:39.000000000","message":"I\u0027d probably write this shorthand as:\n\nreturn aliases[node.id] if node.id in aliases else node.id","commit_id":"355e4ea07ed91bac0496d572d8aaf57b7a6f826b"},{"author":{"_account_id":14692,"name":"Lucas Fisher","email":"lucas.fisher@gmail.com","username":"lucas.fisher"},"change_message_id":"184a2951d5a16ce68e77dc67d0dc0f0f0bed7619","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    :returns: Qualified name refered to by the attribute or name."},{"line_number":46,"context_line":"    \u0027\u0027\u0027"},{"line_number":47,"context_line":"    if type(node) \u003d\u003d _ast.Name:"},{"line_number":48,"context_line":"        if node.id in aliases:"},{"line_number":49,"context_line":"            return aliases[node.id]"},{"line_number":50,"context_line":"        return node.id"},{"line_number":51,"context_line":"    elif type(node) \u003d\u003d _ast.Attribute:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_f12d5390","line":48,"in_reply_to":"ba7be1f8_cdd52fe6","updated":"2015-03-03 14:43:45.000000000","message":"This definitely more compact, but I think reading a lot of ugly Perl code has soured me on this notation. I find the multi-line to be much clearer to read. I know Ruby likes this form as well, but I think in terms of the condition and then the resulting action.","commit_id":"355e4ea07ed91bac0496d572d8aaf57b7a6f826b"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"068aa8efb0b257e04d635d89a2d022c542a242b9","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    :returns: Qualified name refered to by the attribute or name."},{"line_number":46,"context_line":"    \u0027\u0027\u0027"},{"line_number":47,"context_line":"    if type(node) \u003d\u003d _ast.Name:"},{"line_number":48,"context_line":"        if node.id in aliases:"},{"line_number":49,"context_line":"            return aliases[node.id]"},{"line_number":50,"context_line":"        return node.id"},{"line_number":51,"context_line":"    elif type(node) \u003d\u003d _ast.Attribute:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_0a71d00b","line":48,"in_reply_to":"ba7be1f8_f12d5390","updated":"2015-03-03 15:37:09.000000000","message":"I also think it\u0027s more readable.  I\u0027m also comment happy...","commit_id":"355e4ea07ed91bac0496d572d8aaf57b7a6f826b"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"2ab5232c7127863894f67e991e029e71f2c03106","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        return node.id"},{"line_number":51,"context_line":"    elif type(node) \u003d\u003d _ast.Attribute:"},{"line_number":52,"context_line":"        name \u003d \u0027%s.%s\u0027 % (_get_attr_qual_name(node.value, aliases), node.attr)"},{"line_number":53,"context_line":"        if name in aliases:"},{"line_number":54,"context_line":"            return aliases[name]"},{"line_number":55,"context_line":"        return name"},{"line_number":56,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_6df9a37f","line":53,"updated":"2015-03-03 04:04:39.000000000","message":"return aliases[name] if name in aliases else name","commit_id":"355e4ea07ed91bac0496d572d8aaf57b7a6f826b"}]}
