)]}'
{"ovsdbapp/backend/ovs_idl/event.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 Red Hat, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_82a4b1ba","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"updated":"2017-07-25 15:10:09.000000000","message":"I wish it was 2015 :)","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b249e1b8e5a06c3f3c1011b2e83f71fdc6f4dff3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 Red Hat, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_29ae0898","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"in_reply_to":"ff346bd7_82a4b1ba","updated":"2017-07-25 17:07:55.000000000","message":"The code actually is copied from the networking-ovn tree so I didn\u0027t change the copyright. :) I can just remove it though.","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                return False"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        LOG.debug(\"%s : Matched %s, %s, %s %s\", self.event_name, self.table,"},{"line_number":42,"context_line":"                  str(self.events), str(self.conditions),"},{"line_number":43,"context_line":"                  str(self.old_conditions))"},{"line_number":44,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_5546857e","line":42,"range":{"start_line":42,"start_character":18,"end_line":42,"end_character":22},"updated":"2017-07-25 15:10:09.000000000","message":"Isn\u0027t the str() called due to specifying %s in the message? I thought it is :) But I\u0027m wrong most of the time.","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b249e1b8e5a06c3f3c1011b2e83f71fdc6f4dff3","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                return False"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        LOG.debug(\"%s : Matched %s, %s, %s %s\", self.event_name, self.table,"},{"line_number":42,"context_line":"                  str(self.events), str(self.conditions),"},{"line_number":43,"context_line":"                  str(self.old_conditions))"},{"line_number":44,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_e98360a8","line":42,"range":{"start_line":42,"start_character":18,"end_line":42,"end_character":22},"in_reply_to":"ff346bd7_5546857e","updated":"2017-07-25 17:07:55.000000000","message":"Yeah, pretty sure I can drop str() here. I\u0027ve had issues in the past when expanding a format string w/ tuple parameters it getting confused, so I just started being extra cautious. :p","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"}],"ovsdbapp/event.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        self.conditions \u003d conditions"},{"line_number":39,"context_line":"        self.old_conditions \u003d old_conditions"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _key(self):"},{"line_number":42,"context_line":"        return (self.__class__, self.table, self.events, self.conditions)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __hash__(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_42b5a9cc","line":41,"updated":"2017-07-25 15:10:09.000000000","message":"Nit: That looks like a property","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b249e1b8e5a06c3f3c1011b2e83f71fdc6f4dff3","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        self.conditions \u003d conditions"},{"line_number":39,"context_line":"        self.old_conditions \u003d old_conditions"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _key(self):"},{"line_number":42,"context_line":"        return (self.__class__, self.table, self.events, self.conditions)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __hash__(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_6966502c","line":41,"in_reply_to":"ff346bd7_42b5a9cc","updated":"2017-07-25 17:07:55.000000000","message":"Yeah, probably better as a property w/ no setter.","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"f44da718fefd976474d49b7764817de4ec3c5f79","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        return self._key() \u003d\u003d other._key()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def __ne__(self, other):"},{"line_number":51,"context_line":"        return not self.__eq__(other)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    @abc.abstractmethod"},{"line_number":54,"context_line":"    def matches(self, event, row, old\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_0ff6ef90","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":37},"updated":"2017-07-23 12:47:12.000000000","message":"Isn\u0027t\n    return not self \u003d\u003d other\nbetter?","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"751b24578c57404c1e4214806e5a41ff58f7f05b","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        return self._key() \u003d\u003d other._key()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def __ne__(self, other):"},{"line_number":51,"context_line":"        return not self.__eq__(other)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    @abc.abstractmethod"},{"line_number":54,"context_line":"    def matches(self, event, row, old\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_ab08e227","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":37},"in_reply_to":"ff346bd7_0ff6ef90","updated":"2017-07-24 12:33:59.000000000","message":"Probably.","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def unwatch_event(self, event):"},{"line_number":97,"context_line":"        with self.__lock:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                self.__watched_events.remove(event)"},{"line_number":100,"context_line":"            except KeyError:"},{"line_number":101,"context_line":"                # For ONETIME events, they should normally clear on their own"},{"line_number":102,"context_line":"                pass"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_75e069cd","line":99,"range":{"start_line":99,"start_character":38,"end_line":99,"end_character":44},"updated":"2017-07-25 15:10:09.000000000","message":"set has discard()","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b249e1b8e5a06c3f3c1011b2e83f71fdc6f4dff3","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def unwatch_event(self, event):"},{"line_number":97,"context_line":"        with self.__lock:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                self.__watched_events.remove(event)"},{"line_number":100,"context_line":"            except KeyError:"},{"line_number":101,"context_line":"                # For ONETIME events, they should normally clear on their own"},{"line_number":102,"context_line":"                pass"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_2949688a","line":99,"range":{"start_line":99,"start_character":38,"end_line":99,"end_character":44},"in_reply_to":"ff346bd7_75e069cd","updated":"2017-07-25 17:07:55.000000000","message":"well, look at that. :)","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def unwatch_events(self, events):"},{"line_number":105,"context_line":"        with self.__lock:"},{"line_number":106,"context_line":"            for event in events:"},{"line_number":107,"context_line":"                try:"},{"line_number":108,"context_line":"                    self.__watched_events.remove(event)"},{"line_number":109,"context_line":"                except KeyError:"},{"line_number":110,"context_line":"                    # For ONETIME events, they should normally clear on"},{"line_number":111,"context_line":"                    # their own"},{"line_number":112,"context_line":"                    pass"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def shutdown(self):"},{"line_number":115,"context_line":"        self.notifications.put(STOP_EVENT)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_751749a5","line":112,"range":{"start_line":107,"start_character":0,"end_line":112,"end_character":24},"updated":"2017-07-25 15:10:09.000000000","message":"ditto:\n\n self.__watched_events.discard(event)","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"383a40f0df33e4047758f3554c3adf83f0569ed4","unresolved":false,"context_lines":[{"line_number":118,"context_line":"        while True:"},{"line_number":119,"context_line":"            try:"},{"line_number":120,"context_line":"                match, event, row, updates \u003d self.notifications.get()"},{"line_number":121,"context_line":"                if (not isinstance(match, RowEvent) and"},{"line_number":122,"context_line":"                        (match, event, row, updates) \u003d\u003d STOP_EVENT):"},{"line_number":123,"context_line":"                    self.notifications.task_done()"},{"line_number":124,"context_line":"                    break"},{"line_number":125,"context_line":"                match.run(event, row, updates)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_b53011ea","line":122,"range":{"start_line":121,"start_character":20,"end_line":122,"end_character":67},"updated":"2017-07-25 15:10:09.000000000","message":"Isn\u0027t \"(match, event, row, updates) \u003d\u003d STOP_EVENT\" sufficient?\n\nif match is \"STOP\" (string) it\u0027s never instance of RowEvent and thus the isinstance() is a subset of comparison to STOP_EVENT.","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b249e1b8e5a06c3f3c1011b2e83f71fdc6f4dff3","unresolved":false,"context_lines":[{"line_number":118,"context_line":"        while True:"},{"line_number":119,"context_line":"            try:"},{"line_number":120,"context_line":"                match, event, row, updates \u003d self.notifications.get()"},{"line_number":121,"context_line":"                if (not isinstance(match, RowEvent) and"},{"line_number":122,"context_line":"                        (match, event, row, updates) \u003d\u003d STOP_EVENT):"},{"line_number":123,"context_line":"                    self.notifications.task_done()"},{"line_number":124,"context_line":"                    break"},{"line_number":125,"context_line":"                match.run(event, row, updates)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_092584c2","line":122,"range":{"start_line":121,"start_character":20,"end_line":122,"end_character":67},"in_reply_to":"ff346bd7_b53011ea","updated":"2017-07-25 17:07:55.000000000","message":"Ok!","commit_id":"8feef8d878879195459359367bb23541f2f97d0f"}]}
