)]}'
{"etc/stackalytics.conf":[{"author":{"_account_id":5950,"name":"Ilya Shakhat","email":"shakhat@gmail.com","username":"shakhat"},"change_message_id":"9a22d621a590b4d39b0978ccd8630c22b306e86c","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# review_uri \u003d gerrit://review.openstack.org"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# git base location"},{"line_number":30,"context_line":"# git_base \u003d git://git.openstack.org"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"# SSH key for gerrit review system access"},{"line_number":33,"context_line":"# ssh_key_filename \u003d /home/user/.ssh/id_rsa"}],"source_content_type":"text/plain","patch_set":3,"id":"1ae5cdf2_21fd6a09","line":30,"updated":"2014-06-15 20:27:31.000000000","message":"The config parameter needs also be registered in python code (config.py), ex:\n    cfg.StrOpt(\u0027git-base\u0027, default\u003d\u0027git://git.openstack.org \u0027,\n               help\u003d\u0027git base location\u0027),","commit_id":"04813650e12074d22cb86a367a89aa0698cd8321"}],"stackalytics/processor/default_data_processor.py":[{"author":{"_account_id":8041,"name":"Petr Blaho","email":"pblaho@redhat.com","username":"pblaho"},"change_message_id":"56ddb48876b0e35622f8c1bec7dff834df62aa86","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                    \u0027branches\u0027: [\u0027master\u0027],"},{"line_number":71,"context_line":"                    \u0027module\u0027: name,"},{"line_number":72,"context_line":"                    \u0027organization\u0027: org,"},{"line_number":73,"context_line":"                    \u0027uri\u0027: uri,"},{"line_number":74,"context_line":"                    \u0027releases\u0027: []"},{"line_number":75,"context_line":"                }"},{"line_number":76,"context_line":"                repos.append(r)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_cae95f80","line":73,"updated":"2014-06-13 15:00:02.000000000","message":"This should probably be\n\n   \u0027uri\u0027: url\n\nor \u0027url\u0027 variable on line 67 should be renamed to \u0027uri\u0027.","commit_id":"aab6166987c902e0d6b9d18152960d2d36cf9502"},{"author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"change_message_id":"574da8200e1f3cad872b7ad1d2386467c0ec936e","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                    \u0027branches\u0027: [\u0027master\u0027],"},{"line_number":71,"context_line":"                    \u0027module\u0027: name,"},{"line_number":72,"context_line":"                    \u0027organization\u0027: org,"},{"line_number":73,"context_line":"                    \u0027uri\u0027: uri,"},{"line_number":74,"context_line":"                    \u0027releases\u0027: []"},{"line_number":75,"context_line":"                }"},{"line_number":76,"context_line":"                repos.append(r)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_8eb75584","line":73,"in_reply_to":"1ae5cdf2_cae95f80","updated":"2014-06-14 17:35:44.000000000","message":"Done","commit_id":"aab6166987c902e0d6b9d18152960d2d36cf9502"}],"stackalytics/processor/rcs.py":[{"author":{"_account_id":8041,"name":"Petr Blaho","email":"pblaho@redhat.com","username":"pblaho"},"change_message_id":"56ddb48876b0e35622f8c1bec7dff834df62aa86","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    def get_project_list(self):"},{"line_number":139,"context_line":"        exec_result \u003d self._exec_command(\u0027gerrit ls-projects\u0027)"},{"line_number":140,"context_line":"        if not exec_result:"},{"line_number":141,"context_line":"            break"},{"line_number":142,"context_line":"        stdin, stdout, stderr \u003d exec_result"},{"line_number":143,"context_line":"        return stdout.split(\u0027\\n\u0027)"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_ad550dfb","line":141,"updated":"2014-06-13 15:00:02.000000000","message":"This probably shoud be\n\n   return","commit_id":"aab6166987c902e0d6b9d18152960d2d36cf9502"},{"author":{"_account_id":5950,"name":"Ilya Shakhat","email":"shakhat@gmail.com","username":"shakhat"},"change_message_id":"9a22d621a590b4d39b0978ccd8630c22b306e86c","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            if not proceed:"},{"line_number":136,"context_line":"                break"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def get_project_list(self):"},{"line_number":139,"context_line":"        exec_result \u003d self._exec_command(\u0027gerrit ls-projects\u0027)"},{"line_number":140,"context_line":"        if not exec_result:"},{"line_number":141,"context_line":"            raise Exception(\"Unable to retrieve list of projects from gerrit.\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_c10da637","line":138,"updated":"2014-06-15 20:27:31.000000000","message":"this method needs to call self._connect() before starting any operations and self.client.close() at the end, see example in log() function (seems like this needs to be refactored not to copy code in every function)","commit_id":"04813650e12074d22cb86a367a89aa0698cd8321"},{"author":{"_account_id":5950,"name":"Ilya Shakhat","email":"shakhat@gmail.com","username":"shakhat"},"change_message_id":"9a22d621a590b4d39b0978ccd8630c22b306e86c","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        if not exec_result:"},{"line_number":141,"context_line":"            raise Exception(\"Unable to retrieve list of projects from gerrit.\")"},{"line_number":142,"context_line":"        stdin, stdout, stderr \u003d exec_result"},{"line_number":143,"context_line":"        return stdout.split(\u0027\\n\u0027)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"    def log(self, branch, last_id):"},{"line_number":146,"context_line":"        if not self._connect():"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_41299688","line":143,"updated":"2014-06-15 20:27:31.000000000","message":"stdout is Channel object and not casted to string automatically, consider replacing with something like \u0027[line.strip() for line in stdout]\u0027","commit_id":"04813650e12074d22cb86a367a89aa0698cd8321"}],"tests/unit/test_default_data_processor.py":[{"author":{"_account_id":8041,"name":"Petr Blaho","email":"pblaho@redhat.com","username":"pblaho"},"change_message_id":"56ddb48876b0e35622f8c1bec7dff834df62aa86","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                                     \u0027module_group_name\u0027: \u0027OpenStack\u0027}],"},{"line_number":76,"context_line":"                \u0027module_groups\u0027: [],"},{"line_number":77,"context_line":"            }"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"            default_data_processor._update_project_list(dd)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"            self.assertEqual(3, len(dd[\u0027repos\u0027]))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_0d10c14c","line":78,"updated":"2014-06-13 15:00:02.000000000","message":"Definition is changed to\n\n   def _update_project_list(default_data, git_base, gerrit)\n\nso we can call it like\n\n   default_data_processor._update_project_list(dd, None, None)\n\nIt is ugly and dirty but due to mock on line 57 it works :-)","commit_id":"aab6166987c902e0d6b9d18152960d2d36cf9502"}]}
