)]}'
{"tools/zanata/projects-sample.yaml":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4b69305ef437939b2458bbc0a73c0763f8eeec1e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"7a5de9d1_d4f1fe02","updated":"2016-02-02 13:42:25.000000000","message":"Can\u0027t we retrieve the project list from Zanata?\nOr do you want to limit the project list to a specific set?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"099ce9468e782c8eefe3dce8847078caffc660e6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_f67c0974","in_reply_to":"5a5ae5dd_22c81c22","updated":"2016-02-04 04:32:45.000000000","message":"I have thought the purpose of this file is to calculate statistics with limited number of projects or different set of projects (e.g., some projects should not be excluded in the total set). +1 for Kato\u0027s suggestion if actually a few projects will be target arguments for the program.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"ffad914501a509e74f6a9bf68cc8460f7bb47fd1","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_b876a13c","in_reply_to":"5a5ae5dd_42c8f374","updated":"2016-02-03 15:03:59.000000000","message":"How about using command args to pass the target projects instead of file?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"934825446c3bf2adb3ff2211d3af3289e783979b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_22c81c22","in_reply_to":"5a5ae5dd_824550b4","updated":"2016-02-04 04:19:40.000000000","message":"In my understand, this is mainly a test propose. So, I guess we use only a few projects. I meant, if omit, the tool works for all projects for real stats.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"b3ecb096a9c149ea0c852fefa41fe50c6be1a4c8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_824550b4","in_reply_to":"5a5ae5dd_b876a13c","updated":"2016-02-04 04:15:29.000000000","message":"I think commands args would not be good to input many number of projects (e.g., ~100 projects).\nThen, how about adding explanatory comment lines before the first line like:\n\"\n# Example of project yaml file for zanata_stats.py\n# This yaml file can be used to calculate statistics with a specific project list\n#   with -p (--projectyaml) option.\n\"\n?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bc1b92fcbd1df8b1bd1b51cbd31d11115b8aea89","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_198796d8","in_reply_to":"5a5ae5dd_f67c0974","updated":"2016-02-04 05:21:00.000000000","message":"In patch set 5, I changed the project option.\nNow we can do:\n\n  --project horizon\n\nor\n\n  --project horizon,openstack-manuals\n\n(Comma-separated list is supported)","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":3108,"name":"daisy-ycguo","email":"guoyingc@cn.ibm.com","username":"daisy-ycguo"},"change_message_id":"29a09e41759400582579f2f478d058f45c174381","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"7a5de9d1_e901bb6b","in_reply_to":"7a5de9d1_d4f1fe02","updated":"2016-02-02 15:36:38.000000000","message":"We can retrieve project list from Zanata.\nThis file is a sample file about how to set a specific project list. The specific project list is only to cut down the running time.\nThere are around 100 projects in Zanata. If we use the whole list, it will take several hours to finish. \nIf people don\u0027t want to wait for a long time and people only want to understand the data in a small scope, they could config it there.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_42c8f374","in_reply_to":"7a5de9d1_e901bb6b","updated":"2016-02-03 06:42:34.000000000","message":"Thanks for the clarification.\nIf so, it seems better to move this in examples directory.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"}],"tools/zanata/translation_team.yaml":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4b69305ef437939b2458bbc0a73c0763f8eeec1e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"7a5de9d1_32c3c53a","updated":"2016-02-02 13:42:25.000000000","message":"Do we need to maintain this file?\nCan\u0027t we retrieve this list from Zanata?\n\nI don\u0027t think it is a good idea to maintain a list in two places.\nActually, Japanese team list is out of sync.\n\nIn addition, I guess only adminstrator can collect email addresses.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"ffad914501a509e74f6a9bf68cc8460f7bb47fd1","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_9852c512","in_reply_to":"5a5ae5dd_91239f05","updated":"2016-02-03 15:03:59.000000000","message":"+1 to keep only user IDs","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"b3ecb096a9c149ea0c852fefa41fe50c6be1a4c8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_c2cd885e","in_reply_to":"5a5ae5dd_9852c512","updated":"2016-02-04 04:15:29.000000000","message":"Also +1 to keep only user IDs","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":3108,"name":"daisy-ycguo","email":"guoyingc@cn.ibm.com","username":"daisy-ycguo"},"change_message_id":"29a09e41759400582579f2f478d058f45c174381","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"7a5de9d1_49e48fab","in_reply_to":"7a5de9d1_32c3c53a","updated":"2016-02-02 15:36:38.000000000","message":"We cannot retrieve the translators list for a language team from Zanata. So we have to keep this file. The data is exported by me manually from Zanata. The email is not important. Only the ID list is used by the program.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_91239f05","in_reply_to":"7a5de9d1_49e48fab","updated":"2016-02-03 06:42:34.000000000","message":"If so, let\u0027s keep only user IDs here.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    - huyupeng [huyp@inspur.com]"},{"line_number":35,"context_line":"    - zhangjingwen [zhangjingwen@cn.fujitsu.com]"},{"line_number":36,"context_line":"    - zhaochao [zhaochao1984@gmail.com]"},{"line_number":37,"context_line":"    - johnwoo_lee [lijiangsheng1@gmail.com]    "},{"line_number":38,"context_line":"  reviewers:"},{"line_number":39,"context_line":"    - daisyycguo"},{"line_number":40,"context_line":"ja:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5a5ae5dd_c2aaa385","line":37,"updated":"2016-02-03 06:42:34.000000000","message":"Trailing space","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"7c5badea54a69983042ddb44d2e98425b58aee16","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    - ujuc [gang.sungjin@gmail.com]"},{"line_number":90,"context_line":"    - frontjang [frontjang@naver.com]"},{"line_number":91,"context_line":"    - wonki [chuirang@naver.com]"},{"line_number":92,"context_line":"  reviewers:"},{"line_number":93,"context_line":"    - ujuc [gang.sungjin@gmail.com]"},{"line_number":94,"context_line":"fr:"},{"line_number":95,"context_line":"  coordinators:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"5a5ae5dd_e591a953","line":92,"updated":"2016-02-04 07:28:34.000000000","message":"Is it the list of reviewers in Zanata? There are currently four reviewers in Zanata, but here only one reviewer information is included. Is it okay?","commit_id":"a3d760792939fa71d56baf70e0c05715a168d043"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ec88b5556c237897860de4e81b9e720b2837a367","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    - ujuc [gang.sungjin@gmail.com]"},{"line_number":90,"context_line":"    - frontjang [frontjang@naver.com]"},{"line_number":91,"context_line":"    - wonki [chuirang@naver.com]"},{"line_number":92,"context_line":"  reviewers:"},{"line_number":93,"context_line":"    - ujuc [gang.sungjin@gmail.com]"},{"line_number":94,"context_line":"fr:"},{"line_number":95,"context_line":"  coordinators:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"5a5ae5dd_bb73d27f","line":92,"in_reply_to":"5a5ae5dd_e591a953","updated":"2016-02-04 08:23:20.000000000","message":"At now, only translators information is used.\nYou can update it later.","commit_id":"a3d760792939fa71d56baf70e0c05715a168d043"}],"tools/zanata/zanata_stats.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4b69305ef437939b2458bbc0a73c0763f8eeec1e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"7a5de9d1_f4cd1ab8","updated":"2016-02-02 13:42:25.000000000","message":"We now have python code in our repo.\nWe must setup pep8 tox env before merging this patch or in this patch.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bc1b92fcbd1df8b1bd1b51cbd31d11115b8aea89","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5a5ae5dd_7352a2df","in_reply_to":"7a5de9d1_f4cd1ab8","updated":"2016-02-04 05:21:00.000000000","message":"Proposed in a different patch.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4b69305ef437939b2458bbc0a73c0763f8eeec1e","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from six.moves import http_client"},{"line_number":26,"context_line":"from six.moves.urllib import parse"},{"line_number":27,"context_line":"from optparse import OptionParser  "},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"ZANATA_URI \u003d \u0027https://translate.openstack.org/rest/%s\u0027"},{"line_number":30,"context_line":"DATA_FORMAT \u003d \"%Y-%m-%d\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a5de9d1_b256d5cc","line":27,"updated":"2016-02-02 13:42:25.000000000","message":"optparse is deprecated. Consider using argparse instead.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bc1b92fcbd1df8b1bd1b51cbd31d11115b8aea89","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from six.moves import http_client"},{"line_number":26,"context_line":"from six.moves.urllib import parse"},{"line_number":27,"context_line":"from optparse import OptionParser  "},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"ZANATA_URI \u003d \u0027https://translate.openstack.org/rest/%s\u0027"},{"line_number":30,"context_line":"DATA_FORMAT \u003d \"%Y-%m-%d\""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_135ecee9","line":27,"in_reply_to":"7a5de9d1_b256d5cc","updated":"2016-02-04 05:21:00.000000000","message":"Done","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from optparse import OptionParser  "},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"ZANATA_URI \u003d \u0027https://translate.openstack.org/rest/%s\u0027"},{"line_number":30,"context_line":"DATA_FORMAT \u003d \"%Y-%m-%d\""},{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class ZanataUtility():"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_51ef67b0","line":30,"range":{"start_line":30,"start_character":0,"end_line":30,"end_character":4},"updated":"2016-02-03 06:42:34.000000000","message":"DATE?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bc1b92fcbd1df8b1bd1b51cbd31d11115b8aea89","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from optparse import OptionParser  "},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"ZANATA_URI \u003d \u0027https://translate.openstack.org/rest/%s\u0027"},{"line_number":30,"context_line":"DATA_FORMAT \u003d \"%Y-%m-%d\""},{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class ZanataUtility():"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_b36fba91","line":30,"range":{"start_line":30,"start_character":0,"end_line":30,"end_character":4},"in_reply_to":"5a5ae5dd_51ef67b0","updated":"2016-02-04 05:21:00.000000000","message":"Unused. Removed in the next patch set.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    \"\"\""},{"line_number":35,"context_line":"    Utilities to invoke Zanata REST API."},{"line_number":36,"context_line":"    \"\"\""},{"line_number":37,"context_line":"    user_agents \u003d ["},{"line_number":38,"context_line":"        \u0027Mozilla/5.0 (X11; Ubuntu; Linux x86_64) Gecko/20100101 Firefox/32.0\u0027,"},{"line_number":39,"context_line":"        \u0027Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_6) AppleWebKit/537.78.2\u0027,"},{"line_number":40,"context_line":"        \u0027Mozilla/5.0 (Windows NT 6.3; WOW64) Gecko/20100101 Firefox/32.0\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_629c0f6a","line":37,"updated":"2016-02-03 06:42:34.000000000","message":"I wonder why we need this kind of list....","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4b69305ef437939b2458bbc0a73c0763f8eeec1e","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        \u0027Mozilla/5.0 (Macintosh; Intel Mac OS X) Chrome/37.0.2062.120\u0027,"},{"line_number":42,"context_line":"        \u0027Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko\u0027"},{"line_number":43,"context_line":"    ]"},{"line_number":44,"context_line":"    "},{"line_number":45,"context_line":"    def read_uri(self, uri, headers):"},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            headers[\u0027User-Agent\u0027] \u003d random.choice(ZanataUtility.user_agents)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a5de9d1_72713d77","line":44,"updated":"2016-02-02 13:42:25.000000000","message":"white space...","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9a88fc15b25cedf6152fdceb38f8f94b7ccf09f2","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        \u0027Mozilla/5.0 (Macintosh; Intel Mac OS X) Chrome/37.0.2062.120\u0027,"},{"line_number":42,"context_line":"        \u0027Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko\u0027"},{"line_number":43,"context_line":"    ]"},{"line_number":44,"context_line":"    "},{"line_number":45,"context_line":"    def read_uri(self, uri, headers):"},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            headers[\u0027User-Agent\u0027] \u003d random.choice(ZanataUtility.user_agents)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_b9552251","line":44,"in_reply_to":"7a5de9d1_72713d77","updated":"2016-02-04 05:51:39.000000000","message":"Done in patch set 3.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    "},{"line_number":45,"context_line":"    def read_uri(self, uri, headers):"},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            headers[\u0027User-Agent\u0027] \u003d random.choice(ZanataUtility.user_agents)"},{"line_number":48,"context_line":"            req \u003d six.moves.urllib.request.Request(url\u003duri, headers\u003dheaders)"},{"line_number":49,"context_line":"            fd \u003d six.moves.urllib.request.urlopen(req)"},{"line_number":50,"context_line":"            raw \u003d fd.read()"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_d1391743","line":47,"range":{"start_line":47,"start_character":36,"end_line":47,"end_character":49},"updated":"2016-02-03 06:42:34.000000000","message":"What do you want to do by random.choice?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            headers[\u0027User-Agent\u0027] \u003d random.choice(ZanataUtility.user_agents)"},{"line_number":48,"context_line":"            req \u003d six.moves.urllib.request.Request(url\u003duri, headers\u003dheaders)"},{"line_number":49,"context_line":"            fd \u003d six.moves.urllib.request.urlopen(req)"},{"line_number":50,"context_line":"            raw \u003d fd.read()"},{"line_number":51,"context_line":"            fd.close()"},{"line_number":52,"context_line":"            return raw"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_1117afa4","line":49,"updated":"2016-02-03 06:42:34.000000000","message":"I think requests library is better than urllib.\nIt is used in most client library projects.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"97dd97f43f55aa90b0a1ffb808f4c4c0538341f9","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    "},{"line_number":58,"context_line":"    def read_json_from_uri(self, uri):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            return json.loads(ZanataUtility.read_uri(self,uri, {\u0027Accept\u0027: \u0027application/json\u0027}))"},{"line_number":61,"context_line":"        except Exception as e:"},{"line_number":62,"context_line":"            LOG.warn(\u0027Error \"%(error)s\" parsing json from uri %(uri)s\u0027,"},{"line_number":63,"context_line":"                     {\u0027error\u0027: e, \u0027uri\u0027: uri})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_827cab21","line":60,"range":{"start_line":60,"start_character":30,"end_line":60,"end_character":57},"updated":"2016-02-03 06:42:34.000000000","message":"Instead use an instance method: self.read_uri","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9a88fc15b25cedf6152fdceb38f8f94b7ccf09f2","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    "},{"line_number":58,"context_line":"    def read_json_from_uri(self, uri):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            return json.loads(ZanataUtility.read_uri(self,uri, {\u0027Accept\u0027: \u0027application/json\u0027}))"},{"line_number":61,"context_line":"        except Exception as e:"},{"line_number":62,"context_line":"            LOG.warn(\u0027Error \"%(error)s\" parsing json from uri %(uri)s\u0027,"},{"line_number":63,"context_line":"                     {\u0027error\u0027: e, \u0027uri\u0027: uri})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_794faabd","line":60,"range":{"start_line":60,"start_character":30,"end_line":60,"end_character":57},"in_reply_to":"5a5ae5dd_827cab21","updated":"2016-02-04 05:51:39.000000000","message":"Done in patch set 5.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"064d59d60a578a8ce24c0d958826a09d2d088b1a","unresolved":false,"context_lines":[{"line_number":194,"context_line":"                    help\u003d\"Specify the project yaml file\"  "},{"line_number":195,"context_line":"                    )  "},{"line_number":196,"context_line":"    "},{"line_number":197,"context_line":"    start_date \u003d \u00272015-08-01\u0027"},{"line_number":198,"context_line":"    end_date \u003d \u00272016-01-21\u0027"},{"line_number":199,"context_line":"    user_yaml \u003d \u0027\u0027"},{"line_number":200,"context_line":"    output_file \u003d \u0027zanata_stats_output.csv\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_c8040fc8","line":197,"updated":"2016-02-02 23:53:04.000000000","message":"Constants for start_date and end_date in the code would not be a good idea I think. Changing -s and -e options as required options, or auto-assignment using end date as current date and start date as the date sin months ago would be better I think.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b0dbd5954f2a7c6045bd67fd5beb8b939a2d2055","unresolved":false,"context_lines":[{"line_number":194,"context_line":"                    help\u003d\"Specify the project yaml file\"  "},{"line_number":195,"context_line":"                    )  "},{"line_number":196,"context_line":"    "},{"line_number":197,"context_line":"    start_date \u003d \u00272015-08-01\u0027"},{"line_number":198,"context_line":"    end_date \u003d \u00272016-01-21\u0027"},{"line_number":199,"context_line":"    user_yaml \u003d \u0027\u0027"},{"line_number":200,"context_line":"    output_file \u003d \u0027zanata_stats_output.csv\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_5b309e9e","line":197,"in_reply_to":"5a5ae5dd_59cbce1e","updated":"2016-02-04 08:24:15.000000000","message":"Done in patch set 7.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9a88fc15b25cedf6152fdceb38f8f94b7ccf09f2","unresolved":false,"context_lines":[{"line_number":194,"context_line":"                    help\u003d\"Specify the project yaml file\"  "},{"line_number":195,"context_line":"                    )  "},{"line_number":196,"context_line":"    "},{"line_number":197,"context_line":"    start_date \u003d \u00272015-08-01\u0027"},{"line_number":198,"context_line":"    end_date \u003d \u00272016-01-21\u0027"},{"line_number":199,"context_line":"    user_yaml \u003d \u0027\u0027"},{"line_number":200,"context_line":"    output_file \u003d \u0027zanata_stats_output.csv\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_59cbce1e","line":197,"in_reply_to":"5a5ae5dd_c8040fc8","updated":"2016-02-04 05:51:39.000000000","message":"I am thinking the similar thing.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":14482,"name":"Ian Y. Choi","email":"ianyrchoi@gmail.com","username":"ianychoi"},"change_message_id":"064d59d60a578a8ce24c0d958826a09d2d088b1a","unresolved":false,"context_lines":[{"line_number":221,"context_line":"    # Write file"},{"line_number":222,"context_line":"    csvfile \u003d file(output_file, \u0027wb\u0027)"},{"line_number":223,"context_line":"    writer \u003d csv.writer(csvfile)"},{"line_number":224,"context_line":"    for user_id in users:"},{"line_number":225,"context_line":"        user \u003d users.get(user_id)"},{"line_number":226,"context_line":"        writer.writerow([user_id,user[\u0027email\u0027],user[\u0027lang\u0027],user[\u0027translated\u0027],user[\u0027approved\u0027],user[\u0027rejected\u0027]])"},{"line_number":227,"context_line":"        #print user"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_28c5a35a","line":224,"updated":"2016-02-02 23:53:04.000000000","message":"How about adding a csv header print like:\n\n\u0027writer.writerow(\"userid,email,lang,translated,approved,rejected\")\u0027\n\n?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9a88fc15b25cedf6152fdceb38f8f94b7ccf09f2","unresolved":false,"context_lines":[{"line_number":221,"context_line":"    # Write file"},{"line_number":222,"context_line":"    csvfile \u003d file(output_file, \u0027wb\u0027)"},{"line_number":223,"context_line":"    writer \u003d csv.writer(csvfile)"},{"line_number":224,"context_line":"    for user_id in users:"},{"line_number":225,"context_line":"        user \u003d users.get(user_id)"},{"line_number":226,"context_line":"        writer.writerow([user_id,user[\u0027email\u0027],user[\u0027lang\u0027],user[\u0027translated\u0027],user[\u0027approved\u0027],user[\u0027rejected\u0027]])"},{"line_number":227,"context_line":"        #print user"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_6cf286d4","line":224,"in_reply_to":"5a5ae5dd_28c5a35a","updated":"2016-02-04 05:51:39.000000000","message":"Done in patch set 6.","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bc1b92fcbd1df8b1bd1b51cbd31d11115b8aea89","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    writer \u003d csv.writer(csvfile)"},{"line_number":224,"context_line":"    for user_id in users:"},{"line_number":225,"context_line":"        user \u003d users.get(user_id)"},{"line_number":226,"context_line":"        writer.writerow([user_id,user[\u0027email\u0027],user[\u0027lang\u0027],user[\u0027translated\u0027],user[\u0027approved\u0027],user[\u0027rejected\u0027]])"},{"line_number":227,"context_line":"        #print user"},{"line_number":228,"context_line":"    csvfile.close()"},{"line_number":229,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_53e76640","line":226,"range":{"start_line":226,"start_character":79,"end_line":226,"end_character":112},"updated":"2016-02-04 05:21:00.000000000","message":"Are only approved or rejected counted into \u0027review\u0027?\nNo comment stats?","commit_id":"f556fce4e7e654efb60ae55137a65a99d8748f33"},{"author":{"_account_id":6882,"name":"Sungjin Kang","display_name":"ujuc","email":"community@ujuc.me","username":"sungjin"},"change_message_id":"4e6c27ecfe306ccecc73a2719a5ff5ba39b1b836","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    users \u003d get_zanata_stats(start_date, end_date,"},{"line_number":224,"context_line":"                             language_teams, project_list)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"    # Write file"},{"line_number":227,"context_line":"    csvfile \u003d file(output_file, \u0027wb\u0027)"},{"line_number":228,"context_line":"    writer \u003d csv.writer(csvfile)"},{"line_number":229,"context_line":"    for user_id in users:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a5ae5dd_01cf3957","line":226,"updated":"2016-02-03 17:06:48.000000000","message":"this code changed:\n\n```\nwith open(output_file, \u0027wb\u0027) as csvfile:\n    writer \u003d csv.wirter(csvfile)\n    for user_id in users:\n        user \u003d users.get(user_id)\n        writer.writerow([user_id, user[\u0027email\u0027], user[\u0027lang\u0027],\n                                    user[\u0027translated\u0027], user[\u0027approved\u0027],\n                                    user[\u0027rejected\u0027]])\n```","commit_id":"9b80497db322157b27fa4b05bad03390fa591f7b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7b4bc7fea56029fae18d2fc74ce1e6a79f6b7818","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        project_data \u003d ZanataUtility.read_json_from_uri(self, uri)"},{"line_number":75,"context_line":"        if (\u0027iterations\u0027 in project_data):"},{"line_number":76,"context_line":"            for interation_data in project_data[\u0027iterations\u0027]:"},{"line_number":77,"context_line":"                if interation_data[\u0027status\u0027] \u003d\u003d \u0027ACTIVE\u0027:"},{"line_number":78,"context_line":"                    yield interation_data[\u0027id\u0027]"},{"line_number":79,"context_line":"        else:"},{"line_number":80,"context_line":"            yield None"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a5ae5dd_d9c6de48","line":77,"range":{"start_line":77,"start_character":16,"end_line":77,"end_character":57},"updated":"2016-02-04 05:17:39.000000000","message":"This check looks unnecessary.\nWe recently disabled django_openstack_auth stable-liberty and this check will skips liberty django_openstack_auth stats.\n\nWhy do we need to check?\n\nIf we need to skip some testing versions, I think we should use a different approach.","commit_id":"661f33e0ffc659af96c7a0109dca643578ccf8e8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d10e479e1a29eaa9120ed4ca3f41b2b228924c0c","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        project_data \u003d ZanataUtility.read_json_from_uri(self, uri)"},{"line_number":75,"context_line":"        if (\u0027iterations\u0027 in project_data):"},{"line_number":76,"context_line":"            for interation_data in project_data[\u0027iterations\u0027]:"},{"line_number":77,"context_line":"                if interation_data[\u0027status\u0027] \u003d\u003d \u0027ACTIVE\u0027:"},{"line_number":78,"context_line":"                    yield interation_data[\u0027id\u0027]"},{"line_number":79,"context_line":"        else:"},{"line_number":80,"context_line":"            yield None"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a5ae5dd_8cc4a25f","line":77,"range":{"start_line":77,"start_character":16,"end_line":77,"end_character":57},"in_reply_to":"5a5ae5dd_d9c6de48","updated":"2016-02-04 05:52:13.000000000","message":"Another idea proposed in patch set 6.","commit_id":"661f33e0ffc659af96c7a0109dca643578ccf8e8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"33b1d992a7ff7942f3bce33b2571a76c17d5da41","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    if not project_list:"},{"line_number":152,"context_line":"        project_list \u003d zanataUtil.zanata_get_projects()"},{"line_number":153,"context_line":"    print(\u0027%s\u0027 % project_list)"},{"line_number":154,"context_line":"    for project_id in project_list:"},{"line_number":155,"context_line":"        for version in zanataUtil.zanata_get_project_versions(project_id):"},{"line_number":156,"context_line":"            for user_id in users:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a5ae5dd_b95f6240","line":153,"range":{"start_line":153,"start_character":4,"end_line":153,"end_character":30},"updated":"2016-02-04 05:31:40.000000000","message":"Should be removed.","commit_id":"7f9ed568b28fb028d417927d8a730c5507bf4b91"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c0fb9f0da4b0b0059d6eb26b14432ac9aee72697","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    if not project_list:"},{"line_number":152,"context_line":"        project_list \u003d zanataUtil.zanata_get_projects()"},{"line_number":153,"context_line":"    print(\u0027%s\u0027 % project_list)"},{"line_number":154,"context_line":"    for project_id in project_list:"},{"line_number":155,"context_line":"        for version in zanataUtil.zanata_get_project_versions(project_id):"},{"line_number":156,"context_line":"            for user_id in users:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a5ae5dd_4c2a2a80","line":153,"range":{"start_line":153,"start_character":4,"end_line":153,"end_character":30},"in_reply_to":"5a5ae5dd_b95f6240","updated":"2016-02-04 05:52:18.000000000","message":"Done in patch set 6.","commit_id":"7f9ed568b28fb028d417927d8a730c5507bf4b91"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ea95557636f5bc7d709863e667750a28d00a968d","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class ZanataUtility(object):"},{"line_number":37,"context_line":"    \"\"\"Utilities to invoke Zanata REST API.\"\"\""},{"line_number":38,"context_line":"    user_agents \u003d ["},{"line_number":39,"context_line":"        \u0027Mozilla/5.0 (X11; Ubuntu; Linux x86_64) Gecko/20100101 Firefox/32.0\u0027,"},{"line_number":40,"context_line":"        \u0027Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_6) AppleWebKit/537.78.2\u0027,"},{"line_number":41,"context_line":"        \u0027Mozilla/5.0 (Windows NT 6.3; WOW64) Gecko/20100101 Firefox/32.0\u0027,"},{"line_number":42,"context_line":"        \u0027Mozilla/5.0 (Macintosh; Intel Mac OS X) Chrome/37.0.2062.120\u0027,"},{"line_number":43,"context_line":"        \u0027Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko\u0027"},{"line_number":44,"context_line":"    ]"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def read_uri(self, uri, headers):"},{"line_number":47,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a5ae5dd_c46ee5c8","line":44,"range":{"start_line":38,"start_character":4,"end_line":44,"end_character":5},"updated":"2016-02-04 11:05:57.000000000","message":"Let\u0027s cleanup this later.","commit_id":"73a36041dbdc45212051c60cbeef3f7783200fd2"}]}
