)]}'
{"tools/states_to_dot.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"fe568445fd20625267f826f1a6cdc2dd9c955d3c","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        options.filename \u003d \u0027states.%s\u0027 % options.format"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def node_attrs(state):"},{"line_number":70,"context_line":"        return map_color(state)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def edge_attrs(start_state, event, end_state):"},{"line_number":73,"context_line":"        attrs \u003d {}"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_6aa95a23","line":70,"updated":"2015-09-01 07:15:36.000000000","message":"this function is no longer needed - see below","commit_id":"647982ee8b34fd65117f9cf706cc4eed50060c2f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"fe568445fd20625267f826f1a6cdc2dd9c955d3c","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    graph_name \u003d \u0027\"Ironic states\"\u0027"},{"line_number":81,"context_line":"    graph_attrs \u003d {\u0027size\u0027: 0}"},{"line_number":82,"context_line":"    g \u003d pydot.convert(source, graph_name, graph_attrs\u003dgraph_attrs,"},{"line_number":83,"context_line":"                      node_attrs_cb\u003dnode_attrs, edge_attrs_cb\u003dedge_attrs)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    print_header(graph_name)"},{"line_number":86,"context_line":"    print(g.to_string().strip())"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_0ab8de73","line":83,"updated":"2015-09-01 07:15:36.000000000","message":"just: node_attrs_cb\u003dmap_color","commit_id":"647982ee8b34fd65117f9cf706cc4eed50060c2f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"72d391f2abd10f217a7214a52c6c26edc862857a","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    graph_name \u003d \u0027\"Ironic states\"\u0027"},{"line_number":81,"context_line":"    graph_attrs \u003d {\u0027size\u0027: 0}"},{"line_number":82,"context_line":"    g \u003d pydot.convert(source, graph_name, graph_attrs\u003dgraph_attrs,"},{"line_number":83,"context_line":"                      node_attrs_cb\u003dnode_attrs, edge_attrs_cb\u003dedge_attrs)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    print_header(graph_name)"},{"line_number":86,"context_line":"    print(g.to_string().strip())"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_c075e7ca","line":83,"in_reply_to":"da20952f_0ab8de73","updated":"2015-09-01 08:16:15.000000000","message":"Agree on this.","commit_id":"647982ee8b34fd65117f9cf706cc4eed50060c2f"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9cd6020a6d2961d04f1dcc0a73f21b4b748a0541","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    graph_name \u003d \u0027\"Ironic states\"\u0027"},{"line_number":81,"context_line":"    graph_attrs \u003d {\u0027size\u0027: 0}"},{"line_number":82,"context_line":"    g \u003d pydot.convert(source, graph_name, graph_attrs\u003dgraph_attrs,"},{"line_number":83,"context_line":"                      node_attrs_cb\u003dnode_attrs, edge_attrs_cb\u003dedge_attrs)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    print_header(graph_name)"},{"line_number":86,"context_line":"    print(g.to_string().strip())"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_6ea15c93","line":83,"in_reply_to":"da20952f_c075e7ca","updated":"2015-09-01 14:09:41.000000000","message":"Interesting. I did that on purpose, to have symmetry, node_attrs() \u0026 edge_attrs(). You never know when we might want to change the node attributes (and I was wondering about indicating the stable node states), but anyway, I\u0027ll leave that for another change, and do what seems to make sense to you two and John :-)","commit_id":"647982ee8b34fd65117f9cf706cc4eed50060c2f"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"eff4e0e6263b9ecf1359298b310a76f13ffaf6df","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    print(\"*\" * len(text))"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def map_color(text, key\u003d\u0027fontcolor\u0027):"},{"line_number":36,"context_line":"    \"\"\"Map the text to a color."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    The text is mapped to a color."}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_fb674be8","line":35,"updated":"2015-09-02 01:55:17.000000000","message":"wondering if we ever need key to be passed","commit_id":"5135544ffd59042d69921ff6a8045674a954e752"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"cdb86359104d31b3cbd31cbc87bf53e9fad29003","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    print(\"*\" * len(text))"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def map_color(text, key\u003d\u0027fontcolor\u0027):"},{"line_number":36,"context_line":"    \"\"\"Map the text to a color."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    The text is mapped to a color."}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_4079892e","line":35,"in_reply_to":"da20952f_fb674be8","updated":"2015-09-02 13:57:15.000000000","message":"One never knows. I don\u0027t like hardcoding that, since the function is map_color(), not map_font_color(). Without looking, my guess is that there could be other attributes like linecolor or backgroundcolor, so I think it makes sense to pass the key. (Anyway, I like things to be somewhat generalized.)","commit_id":"5135544ffd59042d69921ff6a8045674a954e752"}]}
