)]}'
{"ceilometer/transformer/arithmetic.py":[{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"e260243d7bedb06170046d455876f60851cbc20c","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    def flush(self):"},{"line_number":104,"context_line":"        new_samples \u003d []"},{"line_number":105,"context_line":"        if not self.misconfigured:"},{"line_number":106,"context_line":"            # NOTE(xiexianbin) when loop self.cache, the dict could"},{"line_number":107,"context_line":"            # not be change by others. if changed, will raise \"RuntimeError:"},{"line_number":108,"context_line":"            # dictionary changed size during iteration\". so we make a copy"},{"line_number":109,"context_line":"            # and just loop the copy(tmp_cache)."}],"source_content_type":"text/x-python","patch_set":2,"id":"3f1d235d_a31cc4c1","line":106,"range":{"start_line":106,"start_character":14,"end_line":106,"end_character":30},"updated":"2017-07-07 14:45:28.000000000","message":"NOTE(xiexianbin):","commit_id":"6b710ea96fb211ce0f85b461bceceb66cb51e977"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"e260243d7bedb06170046d455876f60851cbc20c","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            # NOTE(xiexianbin) when loop self.cache, the dict could"},{"line_number":107,"context_line":"            # not be change by others. if changed, will raise \"RuntimeError:"},{"line_number":108,"context_line":"            # dictionary changed size during iteration\". so we make a copy"},{"line_number":109,"context_line":"            # and just loop the copy(tmp_cache)."},{"line_number":110,"context_line":"            tmp_cache \u003d copy.copy(self.cache)"},{"line_number":111,"context_line":"            for resource_id in tmp_cache:"},{"line_number":112,"context_line":"                if self._check_requirements(resource_id):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f1d235d_23d434bd","line":109,"range":{"start_line":109,"start_character":37,"end_line":109,"end_character":46},"updated":"2017-07-07 14:45:28.000000000","message":"self.cache","commit_id":"6b710ea96fb211ce0f85b461bceceb66cb51e977"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"e260243d7bedb06170046d455876f60851cbc20c","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            for resource_id in tmp_cache:"},{"line_number":112,"context_line":"                if self._check_requirements(resource_id):"},{"line_number":113,"context_line":"                    new_samples.append(self._calculate(resource_id))"},{"line_number":114,"context_line":"                    # NOTE(xiexianbin) direct pop from self.cache dict."},{"line_number":115,"context_line":"                    if resource_id in self.cache:"},{"line_number":116,"context_line":"                        self.cache.pop(resource_id)"},{"line_number":117,"context_line":"        return new_samples"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f1d235d_83c5480d","line":114,"range":{"start_line":114,"start_character":20,"end_line":114,"end_character":71},"updated":"2017-07-07 14:45:28.000000000","message":"this is useless.","commit_id":"6b710ea96fb211ce0f85b461bceceb66cb51e977"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"791b3151257859c68f3c183c1327857bd31cff23","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    def flush(self):"},{"line_number":104,"context_line":"        new_samples \u003d []"},{"line_number":105,"context_line":"        if not self.misconfigured:"},{"line_number":106,"context_line":"            # When loop self.cache, the dict could not be change by others."},{"line_number":107,"context_line":"            # If changed, will raise \"RuntimeError: dictionary changed size"},{"line_number":108,"context_line":"            # during iteration\". so we make a tmp copy and just loop it."},{"line_number":109,"context_line":"            tmp_cache \u003d copy.copy(self.cache)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f1d235d_ed2cd84b","line":106,"updated":"2017-07-08 13:35:04.000000000","message":"sorry, I meant it misses a colon. you change is ok\n# NOTE(xiexianbin):","commit_id":"91d11e7c7915fe8806af3e19064af0cd71b8fe76"}]}
