)]}'
{"networking_odl/cmd/analyze_journal.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":47,"context_line":"EntryStats \u003d collections.namedtuple("},{"line_number":48,"context_line":"    \u0027EntryStats\u0027, \u0027entry_id time op obj_type obj_id\u0027)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"DEFAULT_ENTRY \u003d Entry(None, None, None, None, None)"},{"line_number":51,"context_line":"RECORD \u003d \u0027Recorded\u0027"},{"line_number":52,"context_line":"PROCESS \u003d \u0027Processed\u0027"},{"line_number":53,"context_line":"LOG_PATTERN \u003d re.compile("},{"line_number":54,"context_line":"    r\u0027.*((%s)|(%s)) \\(entry id: (\\S+)\\) - (\\S+) (\\S+) (\\S+) \u0027"},{"line_number":55,"context_line":"    r\u0027\\(timestamp: (\\S+)\\) *.*\u0027 % (RECORD, PROCESS))"},{"line_number":56,"context_line":"ENTRY_LOG_TEMPLATE \u003d \u0027 * Entry id: %s, processing time: %ss; %s %s %s\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def setup_conf(args):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_58516d0e","line":56,"range":{"start_line":50,"start_character":0,"end_line":56,"end_character":70},"updated":"2017-10-18 09:18:55.000000000","message":"per pep-8 constants should go above anything else (before L45)\n\nThe only that should be an exception to this is DEFAULT_ENTRY, but is that constant really needed?","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":47,"context_line":"EntryStats \u003d collections.namedtuple("},{"line_number":48,"context_line":"    \u0027EntryStats\u0027, \u0027entry_id time op obj_type obj_id\u0027)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"DEFAULT_ENTRY \u003d Entry(None, None, None, None, None)"},{"line_number":51,"context_line":"RECORD \u003d \u0027Recorded\u0027"},{"line_number":52,"context_line":"PROCESS \u003d \u0027Processed\u0027"},{"line_number":53,"context_line":"LOG_PATTERN \u003d re.compile("},{"line_number":54,"context_line":"    r\u0027.*((%s)|(%s)) \\(entry id: (\\S+)\\) - (\\S+) (\\S+) (\\S+) \u0027"},{"line_number":55,"context_line":"    r\u0027\\(timestamp: (\\S+)\\) *.*\u0027 % (RECORD, PROCESS))"},{"line_number":56,"context_line":"ENTRY_LOG_TEMPLATE \u003d \u0027 * Entry id: %s, processing time: %ss; %s %s %s\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def setup_conf(args):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_ba719caa","line":56,"range":{"start_line":50,"start_character":0,"end_line":56,"end_character":70},"in_reply_to":"3f4b6375_58516d0e","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        entry \u003d entries.get(entry_id, None)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        if entry is None:"},{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_1839b540","line":89,"range":{"start_line":88,"start_character":20,"end_line":89,"end_character":57},"updated":"2017-10-18 09:18:55.000000000","message":"Why do `DEFAULT_ENTRY._replace(...)` instead of just `Entry(...)`? (like you did in L108)","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        timestamp \u003d float(matched.group(8))"},{"line_number":85,"context_line":"        entry \u003d entries.get(entry_id, None)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        if entry is None:"},{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_d8c1dd82","line":89,"range":{"start_line":87,"start_character":8,"end_line":89,"end_character":57},"updated":"2017-10-18 09:18:55.000000000","message":"this can be part of `{}.get` default parameter.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        entry \u003d entries.get(entry_id, None)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        if entry is None:"},{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_d88e3226","line":89,"range":{"start_line":88,"start_character":20,"end_line":89,"end_character":57},"in_reply_to":"3f4b6375_1839b540","updated":"2017-10-31 15:23:17.000000000","message":"This was removed","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        timestamp \u003d float(matched.group(8))"},{"line_number":85,"context_line":"        entry \u003d entries.get(entry_id, None)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        if entry is None:"},{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_789bbe65","line":89,"range":{"start_line":87,"start_character":8,"end_line":89,"end_character":57},"in_reply_to":"3f4b6375_d8c1dd82","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"},{"line_number":93,"context_line":"        else:"},{"line_number":94,"context_line":"            entry \u003d entry._replace(process_time\u003dtimestamp)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        entries[entry_id] \u003d entry"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_f8d939f4","line":94,"range":{"start_line":91,"start_character":8,"end_line":94,"end_character":58},"updated":"2017-10-18 09:18:55.000000000","message":"this is personal taste, as it deduplicates code, but I prefer:\n\noverride \u003d {\u0027record_time\u0027: timestamp}\n\nand then you do \n\nentry._replace(**override)\n\nThat way you only have one place calling replace and you can even put that in L95 together.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            entry \u003d DEFAULT_ENTRY._replace(op\u003dop, obj_type\u003dobj_type,"},{"line_number":89,"context_line":"                                           obj_id\u003dobj_id)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if log_op \u003d\u003d RECORD:"},{"line_number":92,"context_line":"            entry \u003d entry._replace(record_time\u003dtimestamp)"},{"line_number":93,"context_line":"        else:"},{"line_number":94,"context_line":"            entry \u003d entry._replace(process_time\u003dtimestamp)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        entries[entry_id] \u003d entry"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_b8ba56bd","line":94,"range":{"start_line":91,"start_character":8,"end_line":94,"end_character":58},"in_reply_to":"3f4b6375_f8d939f4","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"def _percentile(timings, percent):"},{"line_number":116,"context_line":"    location \u003d int(len(timings) * (percent / 100.0))"},{"line_number":117,"context_line":"    return int(timings[location])"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_383a31e7","line":116,"range":{"start_line":116,"start_character":19,"end_line":116,"end_character":51},"updated":"2017-10-18 09:18:55.000000000","message":"Don\u0027t you need to add a `round()`? It will give you more correct results. With this, if you have 2.9 as a result it will result in 2 instead of 3. \n\nAlso, what happens if percent\u003d0? You need to add a `max(percent, 1)`\n\nPS: Don\u0027t forget to add at least two tests that take into consideration these cases ;)","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"def _percentile(timings, percent):"},{"line_number":116,"context_line":"    location \u003d int(len(timings) * (percent / 100.0))"},{"line_number":117,"context_line":"    return int(timings[location])"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_fa94b438","line":116,"range":{"start_line":116,"start_character":19,"end_line":116,"end_character":51},"in_reply_to":"3f4b6375_383a31e7","updated":"2017-10-31 15:23:17.000000000","message":"I think for now were good, this is not meant to be a really sophisticated mathematical function and the use is not up to the user so if a dev uses 0 it\u0027ll fail some test anyway.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        print_stats(slowest, entries_stats)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        return 0"},{"line_number":147,"context_line":"    except Exception as ex:  # pylint: disable\u003dbroad-except"},{"line_number":148,"context_line":"        print(\"ERROR: %s\" % ex)"},{"line_number":149,"context_line":"        return 1"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_93e2262f","line":149,"range":{"start_line":147,"start_character":3,"end_line":149,"end_character":16},"updated":"2017-10-18 09:18:55.000000000","message":"Why not just let it explode and that\u0027s it? This doesn\u0027t make sense, it will lead to exactly the same result minus the traceback.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        print_stats(slowest, entries_stats)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        return 0"},{"line_number":147,"context_line":"    except Exception as ex:  # pylint: disable\u003dbroad-except"},{"line_number":148,"context_line":"        print(\"ERROR: %s\" % ex)"},{"line_number":149,"context_line":"        return 1"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_5aabc873","line":149,"range":{"start_line":147,"start_character":3,"end_line":149,"end_character":16},"in_reply_to":"3f4b6375_93e2262f","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    conf \u003d setup_conf(sys.argv[1:])"},{"line_number":154,"context_line":"    if conf.file:"},{"line_number":155,"context_line":"        with open(conf.file) as f:"},{"line_number":156,"context_line":"            content \u003d f.readlines()"},{"line_number":157,"context_line":"    else:"},{"line_number":158,"context_line":"        content \u003d sys.stdin"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_d36f7e90","line":156,"range":{"start_line":156,"start_character":12,"end_line":156,"end_character":35},"updated":"2017-10-18 09:18:55.000000000","message":"This is not a good idea with huge logs.\n\nit would be better to do\n\nwith open(conf.file) if conf.file else sys.stdin as f:\n    exit_code \u003d main(f, conf.slowest)\n\nexit(exit_code)\n\nYes, it has the side-effect of closing stdin, which you are not going to use nevertheless after. So it\u0027s ok.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    conf \u003d setup_conf(sys.argv[1:])"},{"line_number":154,"context_line":"    if conf.file:"},{"line_number":155,"context_line":"        with open(conf.file) as f:"},{"line_number":156,"context_line":"            content \u003d f.readlines()"},{"line_number":157,"context_line":"    else:"},{"line_number":158,"context_line":"        content \u003d sys.stdin"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_c5fd66b2","line":156,"range":{"start_line":156,"start_character":12,"end_line":156,"end_character":35},"in_reply_to":"3f4b6375_d36f7e90","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"516ec05cd31d47ab58a6d0c2a303e167b941e0f1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    \u0027EntryStats\u0027, \u0027entry_id time op obj_type obj_id\u0027)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"DEFAULT_ENTRY \u003d Entry(None, None, None, None, None)"},{"line_number":51,"context_line":"RECORD \u003d \u0027Recorded\u0027"},{"line_number":52,"context_line":"PROCESS \u003d \u0027Processed\u0027"},{"line_number":53,"context_line":"LOG_PATTERN \u003d re.compile("},{"line_number":54,"context_line":"    r\u0027.*((%s)|(%s)) \\(entry id: (\\S+)\\) - (\\S+) (\\S+) (\\S+) \u0027"},{"line_number":55,"context_line":"    r\u0027\\(timestamp: (\\S+)\\) *.*\u0027 % (RECORD, PROCESS))"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_9e14ea45","line":52,"range":{"start_line":51,"start_character":0,"end_line":52,"end_character":21},"updated":"2017-10-24 02:30:31.000000000","message":"this needs to match the one in journal.py\nSo please move then to common place and use same constants by both.","commit_id":"7547561ea3728d66a8a283d837b2209806549211"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    \u0027EntryStats\u0027, \u0027entry_id time op obj_type obj_id\u0027)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"DEFAULT_ENTRY \u003d Entry(None, None, None, None, None)"},{"line_number":51,"context_line":"RECORD \u003d \u0027Recorded\u0027"},{"line_number":52,"context_line":"PROCESS \u003d \u0027Processed\u0027"},{"line_number":53,"context_line":"LOG_PATTERN \u003d re.compile("},{"line_number":54,"context_line":"    r\u0027.*((%s)|(%s)) \\(entry id: (\\S+)\\) - (\\S+) (\\S+) (\\S+) \u0027"},{"line_number":55,"context_line":"    r\u0027\\(timestamp: (\\S+)\\) *.*\u0027 % (RECORD, PROCESS))"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_f8c32e56","line":52,"range":{"start_line":51,"start_character":0,"end_line":52,"end_character":21},"in_reply_to":"3f4b6375_9e14ea45","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"7547561ea3728d66a8a283d837b2209806549211"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from oslo_config import cfg"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"from networking_odl._i18n import _"},{"line_number":40,"context_line":"from networking_odl.journal import journal"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"COMMAND_LINE_OPTIONS \u003d ["},{"line_number":43,"context_line":"    cfg.StrOpt(\u0027file\u0027, default\u003dNone,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_3aa9897b","line":40,"range":{"start_line":40,"start_character":0,"end_line":40,"end_character":42},"updated":"2017-11-02 05:55:16.000000000","message":"We should make this script in dependent because we might be presented with logs with having no access to actual machine, we will need networking-odl code for this.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from oslo_config import cfg"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"from networking_odl._i18n import _"},{"line_number":40,"context_line":"from networking_odl.journal import journal"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"COMMAND_LINE_OPTIONS \u003d ["},{"line_number":43,"context_line":"    cfg.StrOpt(\u0027file\u0027, default\u003dNone,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_ce0ab777","line":40,"range":{"start_line":40,"start_character":0,"end_line":40,"end_character":42},"in_reply_to":"3f4b6375_3aa9897b","updated":"2017-11-02 14:57:35.000000000","message":"There\u0027s no such demand currently.\n\nIt can be addressed if it arises in the future.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.IntOpt(\u0027slowest\u0027, default\u003d10,"},{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":49,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":50,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"},{"line_number":51,"context_line":"LOG_MATCHER \u003d re.compile("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_5a2205bb","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":41},"updated":"2017-11-02 05:55:16.000000000","message":"write a comment above it describing it.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.IntOpt(\u0027slowest\u0027, default\u003d10,"},{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":49,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":50,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"},{"line_number":51,"context_line":"LOG_MATCHER \u003d re.compile("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_cae85cb4","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":41},"in_reply_to":"3f4b6375_5a2205bb","updated":"2017-11-02 14:57:35.000000000","message":"Done","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    \"\"\"setup cmdline options.\"\"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    if \u0027-h\u0027 in args or \u0027--help\u0027 in args:"},{"line_number":64,"context_line":"        six.print_(__doc__, file\u003doutput)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    conf \u003d cfg.ConfigOpts()"},{"line_number":67,"context_line":"    conf.register_cli_opts(COMMAND_LINE_OPTIONS)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_776dda30","line":64,"range":{"start_line":64,"start_character":27,"end_line":64,"end_character":39},"updated":"2017-11-02 05:55:16.000000000","message":"I am ok with it, but it is not required. Specifically here because we would like to get printed things on the stdout not in file.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    \"\"\"setup cmdline options.\"\"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    if \u0027-h\u0027 in args or \u0027--help\u0027 in args:"},{"line_number":64,"context_line":"        six.print_(__doc__, file\u003doutput)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    conf \u003d cfg.ConfigOpts()"},{"line_number":67,"context_line":"    conf.register_cli_opts(COMMAND_LINE_OPTIONS)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_6a4cc8c7","line":64,"range":{"start_line":64,"start_character":27,"end_line":64,"end_character":39},"in_reply_to":"3f4b6375_776dda30","updated":"2017-11-02 14:57:35.000000000","message":"This is necessary for proper testing, IOC","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    conf.register_cli_opts(COMMAND_LINE_OPTIONS)"},{"line_number":68,"context_line":"    conf(args\u003dargs)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    if conf.slowest \u003c 1:"},{"line_number":71,"context_line":"        raise ValueError(_(\u0027Slowest entries can\\\u0027t be less than 1.\u0027))"},{"line_number":72,"context_line":"    return conf"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_5753fe6b","line":71,"range":{"start_line":70,"start_character":4,"end_line":71,"end_character":69},"updated":"2017-11-02 05:55:16.000000000","message":"I think, this check can be moved while registering with oslo, so min value can be set https://docs.openstack.org/oslo.config/ocata/types.html#oslo_config.types.Integer","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    conf.register_cli_opts(COMMAND_LINE_OPTIONS)"},{"line_number":68,"context_line":"    conf(args\u003dargs)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    if conf.slowest \u003c 1:"},{"line_number":71,"context_line":"        raise ValueError(_(\u0027Slowest entries can\\\u0027t be less than 1.\u0027))"},{"line_number":72,"context_line":"    return conf"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_aa7760d4","line":71,"range":{"start_line":70,"start_character":4,"end_line":71,"end_character":69},"in_reply_to":"3f4b6375_5753fe6b","updated":"2017-11-02 14:57:35.000000000","message":"Done\n\nThanks!","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    return conf"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def parse_log(content):"},{"line_number":76,"context_line":"    logged_entries \u003d []"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    for line in content:"},{"line_number":79,"context_line":"        matched \u003d LOG_MATCHER.match(line)"},{"line_number":80,"context_line":"        if matched is None:"},{"line_number":81,"context_line":"            continue"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        logged_entries.append(dict(zip(LOG_KEYS, matched.groups())))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    return logged_entries"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"def transform_entries(logged_entries):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_7d3c9bc7","line":85,"range":{"start_line":75,"start_character":0,"end_line":85,"end_character":25},"updated":"2017-11-02 05:55:16.000000000","message":"making it a generator and using in transform_entries, will be a good idea.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    return conf"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def parse_log(content):"},{"line_number":76,"context_line":"    logged_entries \u003d []"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    for line in content:"},{"line_number":79,"context_line":"        matched \u003d LOG_MATCHER.match(line)"},{"line_number":80,"context_line":"        if matched is None:"},{"line_number":81,"context_line":"            continue"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        logged_entries.append(dict(zip(LOG_KEYS, matched.groups())))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    return logged_entries"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"def transform_entries(logged_entries):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_0cafad7d","line":85,"range":{"start_line":75,"start_character":0,"end_line":85,"end_character":25},"in_reply_to":"3f4b6375_7d3c9bc7","updated":"2017-11-02 14:57:35.000000000","message":"Done","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    entries \u003d {}"},{"line_number":90,"context_line":"    for entry_log in logged_entries:"},{"line_number":91,"context_line":"        entry_id \u003d entry_log[\u0027entry_id\u0027]"},{"line_number":92,"context_line":"        entry \u003d entries.get(entry_id, dict(entry_log))"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        log_type \u003d entry_log[\u0027log_type\u0027]"},{"line_number":95,"context_line":"        entry[log_type] \u003d float(entry_log[\u0027timestamp\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_fd764ba4","line":92,"range":{"start_line":92,"start_character":38,"end_line":92,"end_character":53},"updated":"2017-11-02 05:55:16.000000000","message":"is not it a dict?","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    entries \u003d {}"},{"line_number":90,"context_line":"    for entry_log in logged_entries:"},{"line_number":91,"context_line":"        entry_id \u003d entry_log[\u0027entry_id\u0027]"},{"line_number":92,"context_line":"        entry \u003d entries.get(entry_id, dict(entry_log))"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        log_type \u003d entry_log[\u0027log_type\u0027]"},{"line_number":95,"context_line":"        entry[log_type] \u003d float(entry_log[\u0027timestamp\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_c5b96d79","line":92,"range":{"start_line":92,"start_character":38,"end_line":92,"end_character":53},"in_reply_to":"3f4b6375_fd764ba4","updated":"2017-11-02 14:57:35.000000000","message":"Done\n\nIt is, I thought to copy it but then again this doesnt make much sense so dropping it.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    entries_stats \u003d []"},{"line_number":103,"context_line":"    for entry_id, entry in entries.items():"},{"line_number":104,"context_line":"        recorded_time \u003d entry.get(journal.LOG_RECORDED, None)"},{"line_number":105,"context_line":"        cempleted_time \u003d entry.get(journal.LOG_COMPLETED, None)"},{"line_number":106,"context_line":"        if recorded_time is None or cempleted_time is None:"},{"line_number":107,"context_line":"            continue"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_bd7a1374","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":22},"updated":"2017-11-02 05:55:16.000000000","message":"completed_time?","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    entries_stats \u003d []"},{"line_number":103,"context_line":"    for entry_id, entry in entries.items():"},{"line_number":104,"context_line":"        recorded_time \u003d entry.get(journal.LOG_RECORDED, None)"},{"line_number":105,"context_line":"        cempleted_time \u003d entry.get(journal.LOG_COMPLETED, None)"},{"line_number":106,"context_line":"        if recorded_time is None or cempleted_time is None:"},{"line_number":107,"context_line":"            continue"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_ecb331e8","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":22},"in_reply_to":"3f4b6375_bd7a1374","updated":"2017-11-02 14:57:35.000000000","message":"Done","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    entries \u003d transform_entries(logged_entries)"},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    print_stats(output, slowest, entries_stats)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_7dddbb6e","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":68},"updated":"2017-11-02 05:55:16.000000000","message":"is it needed? is not message on screen is enough?","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0e5f9d31123b7cb3cc28581bd845c846c3e55a5f","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    entries \u003d transform_entries(logged_entries)"},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    print_stats(output, slowest, entries_stats)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_a2c23d84","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":68},"in_reply_to":"3f4b6375_0ce44ddf","updated":"2017-11-13 09:26:22.000000000","message":"Why would you like to show stack trace here? A simple message providing information should be ok.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    entries \u003d transform_entries(logged_entries)"},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    print_stats(output, slowest, entries_stats)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_0ce44ddf","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":68},"in_reply_to":"3f4b6375_7dddbb6e","updated":"2017-11-02 14:57:35.000000000","message":"Yes it will show a message on the screen","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_17a6a6ac","line":158,"range":{"start_line":158,"start_character":0,"end_line":158,"end_character":64},"updated":"2017-11-02 05:55:16.000000000","message":"could you break it in two statement, it is cryptic.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4bbf7ee734ad6d0e236946b1d8eb1713351c3fac","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_82fa54ba","line":158,"range":{"start_line":158,"start_character":0,"end_line":158,"end_character":64},"in_reply_to":"1f485f77_a270fd73","updated":"2017-11-15 16:03:31.000000000","message":"No, because sys.stdin is already open.","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_4c2c8501","line":158,"range":{"start_line":158,"start_character":0,"end_line":158,"end_character":64},"in_reply_to":"3f4b6375_17a6a6ac","updated":"2017-11-02 14:57:35.000000000","message":"That\u0027s the pythonic way to do  this, how would you do this otherwise?","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0e5f9d31123b7cb3cc28581bd845c846c3e55a5f","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_a270fd73","line":158,"range":{"start_line":158,"start_character":0,"end_line":158,"end_character":64},"in_reply_to":"3f4b6375_4c2c8501","updated":"2017-11-13 09:26:22.000000000","message":"so we can have something like following\n\ninput_file \u003d conf.file or sys.stdin\nwith open(input_file) as content:\n    process normally","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b4498e68ea36dda0185411f3032fe5e595f0aa4e","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_f7054ac3","line":159,"range":{"start_line":157,"start_character":0,"end_line":159,"end_character":59},"updated":"2017-11-02 05:55:16.000000000","message":"Could you please be consistent with other script and move this part to main?","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"12fbe8aa982ece38d5b8fbd2637b2aa616a3cea1","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":157,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":158,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":159,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_cc3f5523","line":159,"range":{"start_line":157,"start_character":0,"end_line":159,"end_character":59},"in_reply_to":"3f4b6375_f7054ac3","updated":"2017-11-02 14:57:35.000000000","message":"Why?\n\nThis makes the code easy to test, there\u0027s no added value to move this","commit_id":"0546f88b9fbd57b6fcfa6d8d6a4bba337cc1ae1e"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7683bd9365bfbdb164d985d9ec1d4a8fa57416c1","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    six.print_(\u002799.9th percentile: %ss\u0027 % _percentile(timings, 99.9),"},{"line_number":126,"context_line":"               file\u003doutput)"},{"line_number":127,"context_line":"    six.print_(\u0027%s slowest entries:\u0027 % slowest, file\u003doutput)"},{"line_number":128,"context_line":"    slowest \u003d entries_stats[-slowest:]"},{"line_number":129,"context_line":"    for entry_stats in slowest:"},{"line_number":130,"context_line":"        six.print_(ENTRY_LOG_TEMPLATE % entry_stats, file\u003doutput)"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_1206971d","line":128,"range":{"start_line":128,"start_character":14,"end_line":128,"end_character":38},"updated":"2017-11-02 21:29:17.000000000","message":"reverse order to show slowest at top?\nMaybe it\u0027s a matter of preference.","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"cdfca0773f5ea0f5bba7c280506d376bd1da49c2","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    six.print_(\u002799.9th percentile: %ss\u0027 % _percentile(timings, 99.9),"},{"line_number":126,"context_line":"               file\u003doutput)"},{"line_number":127,"context_line":"    six.print_(\u0027%s slowest entries:\u0027 % slowest, file\u003doutput)"},{"line_number":128,"context_line":"    slowest \u003d entries_stats[-slowest:]"},{"line_number":129,"context_line":"    for entry_stats in slowest:"},{"line_number":130,"context_line":"        six.print_(ENTRY_LOG_TEMPLATE % entry_stats, file\u003doutput)"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_a72cdd98","line":128,"range":{"start_line":128,"start_character":14,"end_line":128,"end_character":38},"in_reply_to":"3f4b6375_1206971d","updated":"2017-11-08 11:46:37.000000000","message":"Done","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0e5f9d31123b7cb3cc28581bd845c846c3e55a5f","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    entries \u003d parse_log(content)"},{"line_number":139,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    if not entries_stats:"},{"line_number":142,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    print_stats(output, slowest, entries_stats)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_ad617ad5","line":142,"range":{"start_line":141,"start_character":0,"end_line":142,"end_character":68},"updated":"2017-11-13 09:26:22.000000000","message":"Better idea will be to show message not the stack trace on console.","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0e5f9d31123b7cb3cc28581bd845c846c3e55a5f","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":150,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":151,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":152,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_8d4d9e3c","line":151,"range":{"start_line":151,"start_character":0,"end_line":151,"end_character":64},"updated":"2017-11-13 09:26:22.000000000","message":"conf_file \u003d conf.file or sys.stdin\nwith open(conf_file) as content:\n    exit_code \u003d main(sys.stdout, content, conf.slowest)\n\nIf you think, current one is better readable then i am ok with it as well.","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7683bd9365bfbdb164d985d9ec1d4a8fa57416c1","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    return 0"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":150,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":151,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":152,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_77425dad","line":154,"range":{"start_line":149,"start_character":0,"end_line":154,"end_character":19},"updated":"2017-11-02 21:29:17.000000000","message":"this logic needs to be pushed down into main() because pbr generated code will be if __name__ \u003d\u003d \"__main__\": sys.exit(main())","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"cdfca0773f5ea0f5bba7c280506d376bd1da49c2","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    return 0"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":150,"context_line":"    conf \u003d setup_conf(sys.stdout, sys.argv[1:])"},{"line_number":151,"context_line":"    with open(conf.file) if conf.file else sys.stdin as content:"},{"line_number":152,"context_line":"        exit_code \u003d main(sys.stdout, content, conf.slowest)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    exit(exit_code)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f4b6375_47de496d","line":154,"range":{"start_line":149,"start_character":0,"end_line":154,"end_character":19},"in_reply_to":"3f4b6375_77425dad","updated":"2017-11-08 11:46:37.000000000","message":"Done","commit_id":"816a8bc8750a6ecb58600f882cab923c57be7a84"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"63afd98feb3f7209b42a0010616ce63a38cfd583","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    pass"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"def get_content(file_name):"},{"line_number":138,"context_line":"    return open(file_name) if file_name else sys.stdin"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"def main(output\u003dsys.stdout):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_16526f14","line":138,"range":{"start_line":137,"start_character":0,"end_line":138,"end_character":54},"updated":"2017-11-13 11:33:26.000000000","message":"is get_content correct a correct name because? it does not return content but object. And why this function is needed separately? i think, it can be merged with reading logic.","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"1f37a6af71674f7261149a3576735349047a216c","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    pass"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"def get_content(file_name):"},{"line_number":138,"context_line":"    return open(file_name) if file_name else sys.stdin"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"def main(output\u003dsys.stdout):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_2995f240","line":138,"range":{"start_line":137,"start_character":0,"end_line":138,"end_character":54},"in_reply_to":"1f485f77_16526f14","updated":"2017-11-14 14:06:51.000000000","message":"I think the name is OK, every method returns some object (or None).\n\nThe separation is to ease testing this otherwise it\u0027s very complicated to mock either file open or the sys in (which could also interfere with debugging).","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"63afd98feb3f7209b42a0010616ce63a38cfd583","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"def main(output\u003dsys.stdout):"},{"line_number":142,"context_line":"    conf \u003d setup_conf(output, sys.argv[1:])"},{"line_number":143,"context_line":"    with get_content(conf.file) as content:"},{"line_number":144,"context_line":"        entries \u003d parse_log(content)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_9b0a0824","line":146,"range":{"start_line":142,"start_character":0,"end_line":146,"end_character":44},"updated":"2017-11-13 11:33:26.000000000","message":"If we move this part in a separate function then call that function from here will be a good idea.\n\nif someone wants to write a wrapper script to fetch stats for monitoring purpose or their own use then it won\u0027t be possible because we will have to parse console or call parse_log and then call analyze_entries. The better idea will be to move away in a function and call that function on demand to get stats.","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"1f37a6af71674f7261149a3576735349047a216c","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"def main(output\u003dsys.stdout):"},{"line_number":142,"context_line":"    conf \u003d setup_conf(output, sys.argv[1:])"},{"line_number":143,"context_line":"    with get_content(conf.file) as content:"},{"line_number":144,"context_line":"        entries \u003d parse_log(content)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_e977da39","line":146,"range":{"start_line":142,"start_character":0,"end_line":146,"end_character":44},"in_reply_to":"1f485f77_9b0a0824","updated":"2017-11-14 14:06:51.000000000","message":"If such a need arises we can move it then","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"63afd98feb3f7209b42a0010616ce63a38cfd583","unresolved":false,"context_lines":[{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    print_stats(output, conf.slowest, entries_stats)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_b6127b57","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":68},"updated":"2017-11-13 11:33:26.000000000","message":"It will generate stack trace on console, and this stack trace won\u0027t be helpful. A single line stating that entries does not exist will be a good idea.","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"1f37a6af71674f7261149a3576735349047a216c","unresolved":false,"context_lines":[{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    entries_stats \u003d analyze_entries(entries)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if not entries_stats:"},{"line_number":149,"context_line":"        raise NoEntryStatsException(_(\u0027No entry statistics found.\u0027))"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    print_stats(output, conf.slowest, entries_stats)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_c972de49","line":149,"range":{"start_line":148,"start_character":0,"end_line":149,"end_character":68},"in_reply_to":"1f485f77_b6127b57","updated":"2017-11-14 14:06:51.000000000","message":"Done","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4bbf7ee734ad6d0e236946b1d8eb1713351c3fac","unresolved":false,"context_lines":[{"line_number":63,"context_line":"def setup_conf(output, args):"},{"line_number":64,"context_line":"    \"\"\"setup cmdline options.\"\"\""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    if \u0027-h\u0027 in args or \u0027--help\u0027 in args:"},{"line_number":67,"context_line":"        six.print_(__doc__, file\u003doutput)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    conf \u003d cfg.ConfigOpts()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1f485f77_224f2035","line":66,"range":{"start_line":66,"start_character":7,"end_line":66,"end_character":39},"updated":"2017-11-15 16:03:31.000000000","message":"(non-voting)\n\nany(option in args for option in (\u0027-h\u0027, \u0027--help\u0027))","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"b5097a7b17416bc5786d2b1ee84e4c1b8c9ac090","unresolved":false,"context_lines":[{"line_number":63,"context_line":"def setup_conf(output, args):"},{"line_number":64,"context_line":"    \"\"\"setup cmdline options.\"\"\""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    if \u0027-h\u0027 in args or \u0027--help\u0027 in args:"},{"line_number":67,"context_line":"        six.print_(__doc__, file\u003doutput)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    conf \u003d cfg.ConfigOpts()"}],"source_content_type":"text/x-python","patch_set":7,"id":"ff82abbf_c4103103","line":66,"range":{"start_line":66,"start_character":7,"end_line":66,"end_character":39},"in_reply_to":"1f485f77_224f2035","updated":"2017-11-29 09:32:14.000000000","message":"Done","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"2462728575219a275da322e2eae56e36aba5b452","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"\"\"\""},{"line_number":20,"context_line":"Command line script to analyze journal entry processing time based on logs."},{"line_number":21,"context_line":"By default the input is read through pipe, unless a log file is specified."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Examples:"},{"line_number":24,"context_line":"    Analyzing devstack\u0027s Neutron log:"},{"line_number":25,"context_line":"        journalctl -u devstack@q-svc | python analyze_journal.py"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    Analyzing an arbitrary log file:"},{"line_number":28,"context_line":"        python analyze_journal.py --file /path/to/file.log"},{"line_number":29,"context_line":"\"\"\""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"import collections"}],"source_content_type":"text/x-python","patch_set":8,"id":"ff82abbf_eabdc902","line":28,"range":{"start_line":20,"start_character":0,"end_line":28,"end_character":58},"updated":"2017-12-04 18:26:01.000000000","message":"I suggest to add a little documentation on use of this. with example results as well, that can be a followup patch too.","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"2462728575219a275da322e2eae56e36aba5b452","unresolved":false,"context_lines":[{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# This regex will match any replacement key in the log message and extract"},{"line_number":50,"context_line":"# the key name."},{"line_number":51,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":52,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":53,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"df87a7cf_ba129357","line":50,"range":{"start_line":49,"start_character":0,"end_line":50,"end_character":15},"updated":"2017-12-04 18:26:01.000000000","message":"i\u0027d suggest # NOTE(nick) comment data\n\nmake life little easy to figure out who to ask in future if there\u0027s any issue or code changes happens over the time.","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"b21e6559786017babd414c8b978332cb7362de0a","unresolved":false,"context_lines":[{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# This regex will match any replacement key in the log message and extract"},{"line_number":50,"context_line":"# the key name."},{"line_number":51,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":52,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":53,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"df87a7cf_51df0e68","line":50,"range":{"start_line":49,"start_character":0,"end_line":50,"end_character":15},"in_reply_to":"df87a7cf_123afa97","updated":"2017-12-11 12:29:22.000000000","message":"This is redundant, git blame is your friend","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a602b3098feee82e37b3d423659b92d3f2da1220","unresolved":false,"context_lines":[{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# This regex will match any replacement key in the log message and extract"},{"line_number":50,"context_line":"# the key name."},{"line_number":51,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":52,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":53,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"df87a7cf_ef7a2422","line":50,"range":{"start_line":49,"start_character":0,"end_line":50,"end_character":15},"in_reply_to":"df87a7cf_51df0e68","updated":"2017-12-19 17:30:55.000000000","message":"it is fine, but with its like a cache hit and git blame is like a cache miss...","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"e40dd63199f11397e988a2d5d9bd130819183b4f","unresolved":false,"context_lines":[{"line_number":46,"context_line":"               help\u003d_(\"Prints the N slowest entries (10 by default).\")),"},{"line_number":47,"context_line":"]"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# This regex will match any replacement key in the log message and extract"},{"line_number":50,"context_line":"# the key name."},{"line_number":51,"context_line":"KEY_MATCHER \u003d re.compile(r\u0027\\%\\((\\S+)\\)s\u0027)"},{"line_number":52,"context_line":"LOG_KEYS \u003d KEY_MATCHER.findall(journal.LOG_ENTRY_TEMPLATE)"},{"line_number":53,"context_line":"KEY_TEMP_PATTERN \u003d \u0027KEYPATTERN\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"df87a7cf_123afa97","line":50,"range":{"start_line":49,"start_character":0,"end_line":50,"end_character":15},"in_reply_to":"df87a7cf_ba129357","updated":"2017-12-09 21:15:47.000000000","message":"+1 (as it is part of the OpenStack guidelines)","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"4d02d490d8bb8dfbecbc48322f39adde71640054","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            continue"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        entry_log \u003d dict(zip(LOG_KEYS, matched.groups()))"},{"line_number":83,"context_line":"        entry_id \u003d entry_log[\u0027entry_id\u0027]"},{"line_number":84,"context_line":"        entry \u003d entries.get(entry_id, entry_log)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        log_type \u003d entry_log[\u0027log_type\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"df87a7cf_b1477a77","line":83,"range":{"start_line":83,"start_character":19,"end_line":83,"end_character":40},"updated":"2017-12-11 12:59:24.000000000","message":"Things like this is what I was saying: \n\n- The whole function is very dependent on journal.LOG_ENTRY_TEMPLATE and in the case of timestamp it also expect a specific format.\n- What if it\u0027s missing any of those (on the template or the log)? \n- What if the file given is not wellformed log? It would return an ugly traceback without being clear about what happened.","commit_id":"6441b7848c928a679d93d10277fd49960a849a8f"}],"networking_odl/db/db.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"d6c2568a3b8e70069e95757656bc946bf5df62a6","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from sqlalchemy import func"},{"line_number":19,"context_line":"from sqlalchemy import or_"},{"line_number":20,"context_line":"from sqlalchemy.orm import aliased"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron.db import api as db_api"},{"line_number":23,"context_line":"from oslo_log import log as logging"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_8454c222","line":21,"updated":"2017-11-01 08:31:50.000000000","message":"this extra line should not be here (just precautions to avoid linter errors in the future)\n\nYou\u0027ll need to alphabetically reorder the imports.","commit_id":"7556e4b4d81c1f0b7d922bcb224851ee0015ea07"}],"networking_odl/journal/journal.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"b44684e4d69d33418091977a04a2d3690285dc3f","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                db.delete_dependency(session, entry)"},{"line_number":272,"context_line":"                self._retry_reset()"},{"line_number":273,"context_line":"                log_dict[\u0027timestamp\u0027] \u003d _timestamp()"},{"line_number":274,"context_line":"                LOG.info(\"Processed (entry id: %(entry_id)s) - %(op)s \""},{"line_number":275,"context_line":"                         \"%(type)s %(id)s (timestamp: %(timestamp)s)\","},{"line_number":276,"context_line":"                         log_dict)"},{"line_number":277,"context_line":"        except exceptions.ConnectionError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_f36b9a1c","line":274,"updated":"2017-10-18 09:18:55.000000000","message":"Why here and L259 with named replacements and in L112 not?","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                db.delete_dependency(session, entry)"},{"line_number":272,"context_line":"                self._retry_reset()"},{"line_number":273,"context_line":"                log_dict[\u0027timestamp\u0027] \u003d _timestamp()"},{"line_number":274,"context_line":"                LOG.info(\"Processed (entry id: %(entry_id)s) - %(op)s \""},{"line_number":275,"context_line":"                         \"%(type)s %(id)s (timestamp: %(timestamp)s)\","},{"line_number":276,"context_line":"                         log_dict)"},{"line_number":277,"context_line":"        except exceptions.ConnectionError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_6526b26b","line":274,"in_reply_to":"3f4b6375_f36b9a1c","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"}],"networking_odl/tests/unit/cmd/test_analyze_journal.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"48ccf8c63f6e8e7c8a8e32c01dada40129b02aac","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import random"},{"line_number":17,"context_line":"from StringIO import StringIO"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import mock"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_3ed0d9c9","line":17,"updated":"2017-10-18 09:57:14.000000000","message":"Oh, missed this. You are trying to import StringIO which in python3 is not a module.","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"909d49ac3f8f0c3154c2b772c35298b90afda5ff","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import random"},{"line_number":17,"context_line":"from StringIO import StringIO"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import mock"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_c51686f2","line":17,"in_reply_to":"3f4b6375_3ed0d9c9","updated":"2017-10-31 15:23:17.000000000","message":"Done","commit_id":"6f6b8f7e6027ee430b8b4d71440845e0725bd117"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"d6c2568a3b8e70069e95757656bc946bf5df62a6","unresolved":false,"context_lines":[{"line_number":26,"context_line":"from networking_odl.tests import base"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"def _random_string():"},{"line_number":30,"context_line":"    letters \u003d string.ascii_lowercase"},{"line_number":31,"context_line":"    return \u0027\u0027.join(random.choice(letters)"},{"line_number":32,"context_line":"                   for _ in range(random.randint(1, 10)))"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def _generate_log_entry(log_type\u003dNone, entry_id\u003dNone):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_1f57fb04","line":32,"range":{"start_line":29,"start_character":0,"end_line":32,"end_character":57},"updated":"2017-11-01 08:31:50.000000000","message":"(non-voting)\n\nthere exist a variety of helpers to do what you want to do.\n\nFor example, there are helpers that generate temp files if you need; or in oslo to generate fake uuid\u0027s.","commit_id":"7556e4b4d81c1f0b7d922bcb224851ee0015ea07"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"bfa11b37a4f2317917534ee3245ab9cf9f436fe6","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _assert_something_printed(self, expected\u003dNone):"},{"line_number":59,"context_line":"        self.assertNotEqual(\u0027\u0027, self.output.getvalue())"},{"line_number":60,"context_line":"        if expected:"},{"line_number":61,"context_line":"            self.assertTrue(str(expected) in self.output.getvalue(),"},{"line_number":62,"context_line":"                            msg\u003d\"%s not printed.\" % expected)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_setup_conf_no_args(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_7184f65e","line":61,"range":{"start_line":61,"start_character":17,"end_line":61,"end_character":27},"updated":"2017-11-14 05:31:48.000000000","message":"nitpick: assertIn()","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"1f37a6af71674f7261149a3576735349047a216c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _assert_something_printed(self, expected\u003dNone):"},{"line_number":59,"context_line":"        self.assertNotEqual(\u0027\u0027, self.output.getvalue())"},{"line_number":60,"context_line":"        if expected:"},{"line_number":61,"context_line":"            self.assertTrue(str(expected) in self.output.getvalue(),"},{"line_number":62,"context_line":"                            msg\u003d\"%s not printed.\" % expected)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_setup_conf_no_args(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f485f77_8b6056a7","line":61,"range":{"start_line":61,"start_character":17,"end_line":61,"end_character":27},"in_reply_to":"1f485f77_7184f65e","updated":"2017-11-14 14:06:51.000000000","message":"Done","commit_id":"67db9fde60119fc0e8d50b0f2cf5c9c482386a33"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"bbf717499d04397c2ea3214b7f64ea5cc5d1c978","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    def test_print_stats(self):"},{"line_number":184,"context_line":"        entries_stats \u003d []"},{"line_number":185,"context_line":"        entries_count \u003d random.randint(10, 10000)"},{"line_number":186,"context_line":"        slowest \u003d random.randint(1, int(entries_count / 2))"},{"line_number":187,"context_line":"        for i in range(entries_count):"},{"line_number":188,"context_line":"            entry \u003d self._generate_random_entry()"},{"line_number":189,"context_line":"            entries_stats.append("}],"source_content_type":"text/x-python","patch_set":7,"id":"1f485f77_117c501d","line":186,"range":{"start_line":185,"start_character":8,"end_line":186,"end_character":59},"updated":"2017-11-16 15:19:56.000000000","message":"being random makes that when things fail the test result is crazy...\n\nie:\n\n                                                                                                                                                                                                                   \n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d                                                                                                                                                                                     \nFailed 1 tests - output below:                                                                                                                                                                                     \n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d                                                                                                                                                                                     \n                                                                                                                                                                                                                   \nnetworking_odl.tests.unit.cmd.test_analyze_journal.TestAnalyzeJournal.test_print_stats                                                                                                                             \n--------------------------------------------------------------------------------------                                                                                                                             \n                                                                                                                                                                                                                   \nCaptured traceback:                                                                                                                                                                                                \n~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                \n    b\u0027Traceback (most recent call last):\u0027                                                                                                                                                                          \n    b\u0027  File \"/home/mpeterso/src/networking-odl/.tox/py35/src/neutron/neutron/tests/base.py\", line 118, in func\u0027                                                                                                   \n    b\u0027    return f(self, *args, **kwargs)\u0027                                                                                                                                                                         \n    b\u0027  File \"/home/mpeterso/src/networking-odl/networking_odl/tests/unit/cmd/test_analyze_journal.py\", line 210, in test_print_stats\u0027                                                                             \n    b\u0027    self._assert_something_printed(expected)\u0027                                                                                                                                                                \n    b\u0027  File \"/home/mpeterso/src/networking-odl/networking_odl/tests/unit/cmd/test_analyze_journal.py\", line 61, in _assert_something_printed\u0027                                                                     \n    b\u0027    self.assertIn(str(expected), self.output.getvalue())\u0027                                                                                                                                                    \n    b\u0027  File \"/home/mpeterso/src/networking-odl/.tox/py35/lib/python3.5/site-packages/testtools/testcase.py\", line 417, in assertIn\u0027                                                                               \n    b\u0027    self.assertThat(haystack, Contains(needle), message)\u0027                                                                                                                                                    \n    b\u0027  File \"/home/mpeterso/src/networking-odl/.tox/py35/lib/python3.5/site-packages/testtools/testcase.py\", line 498, in assertThat\u0027                                                                             \n    b\u0027    raise mismatch_error\u0027                                                                                                                                                                                    \n    b\"testtools.matchers._impl.MismatchError: \u0027 * Entry id: ubg, processing time: 2111.000s; cykmh fygyn flhpa\u0027 not in \u0027Average processing time: 1514.5s\\\\n90th percentile: 2727s\\\\n99th percentile: 2999s\\\\n99.9th\n percentile: 3026s\\\\n * Entry id: tqrbifc, processing time: 3029.000s; ctc uuzcta wse\\\\n * Entry id: dwwfhhgmqi, processing time: 3028.000s; bwd au eubmawa\\\\n * Entry id: va, processing time: 3027.000s; rg zfcxo\ne uhmhbvbh\\\\n * Entry id: on, processing time: 3026.000s; zweeowisus vfeejmmk nhxpthx\\\\n * Entry id: pse, processing time: 3025.000s; qrfvah izfouku garced\\\\n * Entry id: djpralhxbw, processing time: 3024.000s; \nyyutjpwp qqxhunru mnuzimznd\\\\n * Entry id: eqzowdeosb, processing time: 3023.000s; xxhgimeg sg aund\\\\n * Entry id: drvehggl, processing time: 3022.000s; qyfttmrkh fzxjigyb zakp\\\\n * Entry id: zqapfyib, processin\ng time: 3021.000s; twgeuyz m xpj\\\\n * Entry id: jbua, processing time: 3020.000s; ntyxvkgpq qv n\\\\n * Entry id: taavebpqcl, processing time: 3019.000s; cdzjuenzr immanfiwx wthdmjwpd\\\\n * Entry id: lojbmf, proces\nsing time: 3018.000s; wht lezify gqayik\\\\n * Entry id: smppgpbkh, processing time: 3017.000s; jcurkihyvx ajzh nkgfiyqf\\\\n * Entry id: fonajryr, processing time: 3016.000s; vdplg fzheluyot omjjl\\\\n * Entry id: g,\n processing time: 3015.000s; byf jfxm ddp\\\\n * Entry id: dncxmq, processing time: 3014.000s; afvsdozbw vtmatxb wheagbud\\\\n * Entry id: gjotpvnaa, processing time: 3013.000s; ngqocyo as yjaj\\\\n * Entry id: cn, pr\nocessing time: 3012.000s; diarvox xhfrlpy gcrmogh\\\\n * Entry id: imaqkj, processing time: 3011.000s; lejekcomi n uq\\\\n * Entry id: nshwehs, processing time: 3010.000s; hrpg stgjdfhems xqws\\\\n * Entry id: xbczen,\n processing time: 3009.000s; xzlvtbvxar o or\\\\n * Entry id: ozpkusoaf, processing time: 3008.000s; bzm efhsdol kpvyplszj\\\\n * Entry id: dpclvdqkk, processing time: 3007.000s; pd nwwsk ofv\\\\n * Entry id: ggm, pro\ncessing time: 3006.000s; oyobebxnpp fi qhyyjeo\\\\n * Entry id: xpugnrkbj, processing time: 3005.000s; hjl thllolobrm efexcoq\\\\n * Entry id: piovvzy, processing time: 3004.000s; va liz pwgcobd\\\\n * Entry id: pa, p\nrocessing time: 3003.000s; mcdorsqnaq h fhpbzialxq\\\\n * Entry id: voct, processing time: 3002.000s; nosnyfgglw xhlthlido rmkfqeii\\\\n * Entry id: iryhr, processing time: 3001.000s; oqqnu wsiddnc rsy\\\\n * Entry id\n: iimqzv, processing time: 3000.000s; ntdnwlqcz oalhk dyyp\\\\n * Entry id: uqbygako, processing time: 2999.000s; qs qwhyz lw\\\\n * Entry id: wuwngo, processing time: 2998.000s; vvs clppludm yjskjn\\\\n * Entry id: k\nohoys, processing time: 2997.000s; bu xjznjvfs enfasa\\\\n * Entry id: vzxtaa, processing time: 2996.000s; jzdk xlehlaede qhi\\\\n * Entry id: bhxmdfebkt, processing time: 2995.000s; mcayvhb duhi yidzlkdsmb\\\\n * Ent\nry id: mmwlcg, processing time: 2994.000s; mdshl bcf bcgdpfagik\\\\n * Entry id: noz, processing time: 2993.000s; ownaduze f qdpfjyf\\\\n * Entry id: yibxl, processing time: 2992.000s; gqbjvsgert yrq caombownnf\\\\n *\n Entry id: qsumoy, processing time: 2991.000s; fauofrn xfy rqekovene\\\\n * Entry id: ov, processing time: 2990.000s; tsyj pjlxkqqeo laj\\\\n * Entry id: f, processing time: 2989.000s; kb ya n\\\\n * Entry id: wjdwfbe\nnf, processing time: 2988.000s; cfrzbd hkr udnrzzmn\\\\n * Entry id: lqypbmxmi, processing time: 2987.000s; g t jjzb\\\\n * Entry id: ipxyphe, processing time: 2986.000s; cayyk uemctd hvxml\\\\n * Entry id: uzaowtc, p\nrocessing time: 2985.000s; kb e aehbzlrkhw\\\\n * Entry id: yssihqb, processing time: 2984.000s; j ioqym rsoxchs\\\\n * Entry id: tujnwukw, processing time: 2983.000s; ikgkjiaya j xzfyqnbig\\\\n * Entry id: rdhwv, pro\ncessing time: 2982.000s; yvwbgb oaeuej iufnjrdqkl\\\\n * Entry id: flstj, processing time: 2981.000s; npgtt fits bwjftgml\\\\n * Entry id: zzn, processing time: 2980.000s; cm imjyg cbonzmbkei\\\\n * Entry id: merntunf\na, processing time: 2979.000s; rvchkdf xxh gbzhgxo\\\\n * Entry id: emhj, processing time: 2978.000s; alvrd gpuqjsc bkg\\\\n * Entry id: nxyo, processing time: 2977.000s; xznkxtjlx fdunsrvtxq mcqb\\\\n * Entry id: dld\nzzz, processing time: 2976.000s; trr xjtpnqnrd pag\\\\n * Entry id: ybiz, processing time: 2975.000s; qhu hckoj inrx\\\\n * Entry id: jqiat, processing time: 2974.000s; fhhsrqnx a xldsllw\\\\n * Entry id: sg, processi\nng time: 2973.000s; gyvrn rqbhdfoszk bxwz\\\\n * Entry id: lxtrzb, processing time: 2972.000s; yyy wc gtrztxz\\\\n * Entry id: mh, processing time: 2971.000s; lgmu kfqx idipokqid\\\\n * Entry id: awn, processing time:\n 2970.000s; oznc jhdu hbyqidawpy\\\\n * Entry id: kueuyxgko\n\n\n\n\n\nand that continues for a good amount lines... \n\nIMHO tests should be very clear about what the problem is, this is the contrary of clear when it fails.","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"b5097a7b17416bc5786d2b1ee84e4c1b8c9ac090","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    def test_print_stats(self):"},{"line_number":184,"context_line":"        entries_stats \u003d []"},{"line_number":185,"context_line":"        entries_count \u003d random.randint(10, 10000)"},{"line_number":186,"context_line":"        slowest \u003d random.randint(1, int(entries_count / 2))"},{"line_number":187,"context_line":"        for i in range(entries_count):"},{"line_number":188,"context_line":"            entry \u003d self._generate_random_entry()"},{"line_number":189,"context_line":"            entries_stats.append("}],"source_content_type":"text/x-python","patch_set":7,"id":"ff82abbf_44e0a126","line":186,"range":{"start_line":185,"start_character":8,"end_line":186,"end_character":59},"in_reply_to":"1f485f77_117c501d","updated":"2017-11-29 09:32:14.000000000","message":"You\u0027re right it\u0027s not very clear with a big number.\nI limited the count, should be more clear","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"bbf717499d04397c2ea3214b7f64ea5cc5d1c978","unresolved":false,"context_lines":[{"line_number":210,"context_line":"            self._assert_something_printed(expected)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    @contextlib.contextmanager"},{"line_number":213,"context_line":"    def _setup_mocks_for_main(self, content):"},{"line_number":214,"context_line":"        with mock.patch.object(analyze_journal, \u0027get_content\u0027) as mgc, \\"},{"line_number":215,"context_line":"                mock.patch.object(analyze_journal, \u0027setup_conf\u0027) as msc:"},{"line_number":216,"context_line":"            m \u003d mock.MagicMock()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1f485f77_c38f0dcb","line":213,"updated":"2017-11-16 15:19:56.000000000","message":"I loved this :) I think it\u0027s a great idea what you did here.","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"b5097a7b17416bc5786d2b1ee84e4c1b8c9ac090","unresolved":false,"context_lines":[{"line_number":210,"context_line":"            self._assert_something_printed(expected)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    @contextlib.contextmanager"},{"line_number":213,"context_line":"    def _setup_mocks_for_main(self, content):"},{"line_number":214,"context_line":"        with mock.patch.object(analyze_journal, \u0027get_content\u0027) as mgc, \\"},{"line_number":215,"context_line":"                mock.patch.object(analyze_journal, \u0027setup_conf\u0027) as msc:"},{"line_number":216,"context_line":"            m \u003d mock.MagicMock()"}],"source_content_type":"text/x-python","patch_set":7,"id":"ff82abbf_2449dd5e","line":213,"in_reply_to":"1f485f77_c38f0dcb","updated":"2017-11-29 09:32:14.000000000","message":"Thanks, I felt Guido\u0027s spirit guiding me when I wrote this.\nHe\u0027s probably doing astral projection...","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"}],"releasenotes/notes/add-analyze-journal-cmd-189eae2cac4d60a5.yaml":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"5e1c28accc923c70ee677e617afae91c2c6c4568","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"ff82abbf_67ab0b1d","updated":"2017-12-12 01:12:13.000000000","message":"If possible, document please. it can be another patch.","commit_id":"32850a82f604407aca8577721a5a972e77fe433a"}]}
