)]}'
{"tools/states_to_dot.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"d40dcdf6d0acb196dfc2ba59f40954d5ab7e9b52","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def map_color(text):"},{"line_number":36,"context_line":"    # If the text contains \u0027error\u0027/\u0027fail\u0027 then we\u0027ll return red..."},{"line_number":37,"context_line":"    if \u0027error\u0027 in text or \u0027fail\u0027 in text:"},{"line_number":38,"context_line":"        return \u0027red\u0027"},{"line_number":39,"context_line":"    else:"},{"line_number":40,"context_line":"        return None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_71a92c24","line":38,"updated":"2015-08-22 00:24:36.000000000","message":"What if this did:\n   return {\u0027fontcolor\u0027: \u0027red\u0027}\n else:\n   return {}\n\nI think it would make logic below easier","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b03f2defe7127d35b6290c6b68ae2dd35974ae9d","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def map_color(text):"},{"line_number":36,"context_line":"    # If the text contains \u0027error\u0027/\u0027fail\u0027 then we\u0027ll return red..."},{"line_number":37,"context_line":"    if \u0027error\u0027 in text or \u0027fail\u0027 in text:"},{"line_number":38,"context_line":"        return \u0027red\u0027"},{"line_number":39,"context_line":"    else:"},{"line_number":40,"context_line":"        return None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_9767deb6","line":38,"in_reply_to":"fa1b9901_71a92c24","updated":"2015-08-24 14:17:26.000000000","message":"Thx John. I want to keep this patch simple; just convert to using automaton\u0027s converters/pydot.\n\nMaking this change is a change to the existing code that has nothing to do with converting, so I think it is outside the scope of this patch.","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"bdb9dc01a07f38f250552f6bb1dbaee035e2bd8f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def map_color(text):"},{"line_number":36,"context_line":"    # If the text contains \u0027error\u0027/\u0027fail\u0027 then we\u0027ll return red..."},{"line_number":37,"context_line":"    if \u0027error\u0027 in text or \u0027fail\u0027 in text:"},{"line_number":38,"context_line":"        return \u0027red\u0027"},{"line_number":39,"context_line":"    else:"},{"line_number":40,"context_line":"        return None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_ff82b0c7","line":38,"in_reply_to":"fa1b9901_9767deb6","updated":"2015-08-24 15:08:53.000000000","message":"Okay. That works for me :)","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2205cbbf44190e8407119b8ccce0151c9802a8d3","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def map_color(text):"},{"line_number":36,"context_line":"    # If the text contains \u0027error\u0027/\u0027fail\u0027 then we\u0027ll return red..."},{"line_number":37,"context_line":"    if \u0027error\u0027 in text or \u0027fail\u0027 in text:"},{"line_number":38,"context_line":"        return \u0027red\u0027"},{"line_number":39,"context_line":"    else:"},{"line_number":40,"context_line":"        return None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_bf4d929b","line":38,"in_reply_to":"fa1b9901_ff82b0c7","updated":"2015-08-31 16:54:23.000000000","message":"@John. Changes are at https://review.openstack.org/#/c/218948/","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"d40dcdf6d0acb196dfc2ba59f40954d5ab7e9b52","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    if options.filename is None:"},{"line_number":55,"context_line":"        options.filename \u003d \u0027states.%s\u0027 % options.format"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def node_attrs(state):"},{"line_number":58,"context_line":"        attrs \u003d {}"},{"line_number":59,"context_line":"        text_color \u003d map_color(state)"},{"line_number":60,"context_line":"        if text_color:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_d17358e6","line":57,"updated":"2015-08-22 00:24:36.000000000","message":"If suggested change above was made to map_color.  This function could be eliminated or just be.\n\n  return map_color(state)","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"d40dcdf6d0acb196dfc2ba59f40954d5ab7e9b52","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def edge_attrs(start_state, event, end_state):"},{"line_number":65,"context_line":"        attrs \u003d {}"},{"line_number":66,"context_line":"        if options.labels:"},{"line_number":67,"context_line":"            attrs[\u0027label\u0027] \u003d \"on_%s\" % event"},{"line_number":68,"context_line":"            edge_color \u003d map_color(event)"},{"line_number":69,"context_line":"            if edge_color:"},{"line_number":70,"context_line":"                attrs[\u0027fontcolor\u0027] \u003d edge_color"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_d12118b6","line":67,"updated":"2015-08-22 00:24:36.000000000","message":"If suggested change above was made to map_color.  this could just be.\n\n  attrs.update(map_color(event))","commit_id":"d078ba6efb78a39af166d1e246977d98d21c82d1"}]}
