{"action":"created","comment":{"url":"https://api.github.com/repos/google/personfinder/pulls/comments/85480835","pull_request_review_id":6194845,"id":85480835,"diff_hunk":"@@ -35,13 +46,15 @@ def get_repo_usage(self, repo):\n         {'repo': haiti, 'num_persons': 10, 'num_notes': 5, ...etc}\n         \"\"\"\n         counters = model.UsageCounter.get(repo)\n-        return {'repo': repo,\n-                'num_persons': getattr(counters, 'person', 0),\n-                'num_notes': getattr(counters, 'note', 0),\n-                'is_note_author': getattr(counters, 'is_note_author', 0),\n-                'believed_alive': getattr(counters, 'believed_alive', 0),\n-                'believed_dead': getattr(counters, 'believed_dead', 0),\n-                'believed_missing': getattr(counters, 'believed_missing', 0),\n-                'information_sought': getattr(counters, 'information_sought', 0),\n-                'unspecified': getattr(counters, 'unspecified', 0)\n-                }\n+        repo_usage = {'repo': repo,\n+                      'num_persons': getattr(counters, 'person', 0),\n+                      'num_notes': getattr(counters, 'note', 0)}\n+\n+        for note_status in NOTE_STATUS_TEXT:\n+            if note_status == '':\n+                repo_usage[","path":"app/admin_statistics.py","position":43,"original_position":47,"commit_id":"c33aa71dcd780cc9ba07c23e59b64318186233fb","original_commit_id":"c33aa71dcd780cc9ba07c23e59b64318186233fb","user":{"login":"Stephanie1125","id":15961861,"avatar_url":"https://avatars.githubusercontent.com/u/15961861?v=3","gravatar_id":"","url":"https://api.github.com/users/Stephanie1125","html_url":"https://github.com/Stephanie1125","followers_url":"https://api.github.com/users/Stephanie1125/followers","following_url":"https://api.github.com/users/Stephanie1125/following{/other_user}","gists_url":"https://api.github.com/users/Stephanie1125/gists{/gist_id}","starred_url":"https://api.github.com/users/Stephanie1125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stephanie1125/subscriptions","organizations_url":"https://api.github.com/users/Stephanie1125/orgs","repos_url":"https://api.github.com/users/Stephanie1125/repos","events_url":"https://api.github.com/users/Stephanie1125/events{/privacy}","received_events_url":"https://api.github.com/users/Stephanie1125/received_events","type":"User","site_admin":false},"body":"i see","created_at":"2016-10-28T07:01:19Z","updated_at":"2016-10-28T07:01:19Z","html_url":"https://github.com/google/personfinder/pull/314#discussion_r85480835","pull_request_url":"https://api.github.com/repos/google/personfinder/pulls/314","_links":{"self":{"href":"https://api.github.com/repos/google/personfinder/pulls/comments/85480835"},"html":{"href":"https://github.com/google/personfinder/pull/314#discussion_r85480835"},"pull_request":{"href":"https://api.github.com/repos/google/personfinder/pulls/314"}}},"pull_request":{"url":"https://api.github.com/repos/google/personfinder/pulls/314","id":91154232,"html_url":"https://github.com/google/personfinder/pull/314","diff_url":"https://github.com/google/personfinder/pull/314.diff","patch_url":"https://github.com/google/personfinder/pull/314.patch","issue_url":"https://api.github.com/repos/google/personfinder/issues/314","number":314,"state":"open","locked":false,"title":"Add more detail for note status for history statistics page","user":{"login":"Stephanie1125","id":15961861,"avatar_url":"https://avatars.githubusercontent.com/u/15961861?v=3","gravatar_id":"","url":"https://api.github.com/users/Stephanie1125","html_url":"https://github.com/Stephanie1125","followers_url":"https://api.github.com/users/Stephanie1125/followers","following_url":"https://api.github.com/users/Stephanie1125/following{/other_user}","gists_url":"https://api.github.com/users/Stephanie1125/gists{/gist_id}","starred_url":"https://api.github.com/users/Stephanie1125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stephanie1125/subscriptions","organizations_url":"https://api.github.com/users/Stephanie1125/orgs","repos_url":"https://api.github.com/users/Stephanie1125/repos","events_url":"https://api.github.com/users/Stephanie1125/events{/privacy}","received_events_url":"https://api.github.com/users/Stephanie1125/received_events","type":"User","site_admin":false},"body":"Add more detail to the statistics page for note status.\r\n![statistics](https://cloud.githubusercontent.com/assets/15961861/19760042/a0cb0568-9c6a-11e6-921d-94fc335d2018.png)\r\n","created_at":"2016-10-27T08:27:47Z","updated_at":"2016-10-28T07:01:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"181188013a65191c26ee676e8663c1ef4f2c7b54","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/personfinder/pulls/314/commits","review_comments_url":"https://api.github.com/repos/google/personfinder/pulls/314/comments","review_comment_url":"https://api.github.com/repos/google/personfinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/personfinder/issues/314/comments","statuses_url":"https://api.github.com/repos/google/personfinder/statuses/c33aa71dcd780cc9ba07c23e59b64318186233fb","head":{"label":"google:liuhsinwen-notestatus","ref":"liuhsinwen-notestatus","sha":"c33aa71dcd780cc9ba07c23e59b64318186233fb","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":25369506,"name":"personfinder","full_name":"google/personfinder","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/personfinder","description":"Person Finder is a searchable missing person database written in Python and hosted on App Engine.","fork":false,"url":"https://api.github.com/repos/google/personfinder","forks_url":"https://api.github.com/repos/google/personfinder/forks","keys_url":"https://api.github.com/repos/google/personfinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/personfinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/personfinder/teams","hooks_url":"https://api.github.com/repos/google/personfinder/hooks","issue_events_url":"https://api.github.com/repos/google/personfinder/issues/events{/number}","events_url":"https://api.github.com/repos/google/personfinder/events","assignees_url":"https://api.github.com/repos/google/personfinder/assignees{/user}","branches_url":"https://api.github.com/repos/google/personfinder/branches{/branch}","tags_url":"https://api.github.com/repos/google/personfinder/tags","blobs_url":"https://api.github.com/repos/google/personfinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/personfinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/personfinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/personfinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/personfinder/statuses/{sha}","languages_url":"https://api.github.com/repos/google/personfinder/languages","stargazers_url":"https://api.github.com/repos/google/personfinder/stargazers","contributors_url":"https://api.github.com/repos/google/personfinder/contributors","subscribers_url":"https://api.github.com/repos/google/personfinder/subscribers","subscription_url":"https://api.github.com/repos/google/personfinder/subscription","commits_url":"https://api.github.com/repos/google/personfinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/personfinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/personfinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/personfinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/personfinder/contents/{+path}","compare_url":"https://api.github.com/repos/google/personfinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/personfinder/merges","archive_url":"https://api.github.com/repos/google/personfinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/personfinder/downloads","issues_url":"https://api.github.com/repos/google/personfinder/issues{/number}","pulls_url":"https://api.github.com/repos/google/personfinder/pulls{/number}","milestones_url":"https://api.github.com/repos/google/personfinder/milestones{/number}","notifications_url":"https://api.github.com/repos/google/personfinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/personfinder/labels{/name}","releases_url":"https://api.github.com/repos/google/personfinder/releases{/id}","deployments_url":"https://api.github.com/repos/google/personfinder/deployments","created_at":"2014-10-17T17:36:25Z","updated_at":"2016-10-27T16:56:17Z","pushed_at":"2016-10-28T05:55:38Z","git_url":"git://github.com/google/personfinder.git","ssh_url":"git@github.com:google/personfinder.git","clone_url":"https://github.com/google/personfinder.git","svn_url":"https://github.com/google/personfinder","homepage":"https://google.org/personfinder","size":305682,"stargazers_count":207,"watchers_count":207,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"open_issues_count":81,"forks":92,"open_issues":81,"watchers":207,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"9c97a52cc5cf157d60fa41baf96c7e6df9fd4994","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":25369506,"name":"personfinder","full_name":"google/personfinder","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/personfinder","description":"Person Finder is a searchable missing person database written in Python and hosted on App Engine.","fork":false,"url":"https://api.github.com/repos/google/personfinder","forks_url":"https://api.github.com/repos/google/personfinder/forks","keys_url":"https://api.github.com/repos/google/personfinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/personfinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/personfinder/teams","hooks_url":"https://api.github.com/repos/google/personfinder/hooks","issue_events_url":"https://api.github.com/repos/google/personfinder/issues/events{/number}","events_url":"https://api.github.com/repos/google/personfinder/events","assignees_url":"https://api.github.com/repos/google/personfinder/assignees{/user}","branches_url":"https://api.github.com/repos/google/personfinder/branches{/branch}","tags_url":"https://api.github.com/repos/google/personfinder/tags","blobs_url":"https://api.github.com/repos/google/personfinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/personfinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/personfinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/personfinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/personfinder/statuses/{sha}","languages_url":"https://api.github.com/repos/google/personfinder/languages","stargazers_url":"https://api.github.com/repos/google/personfinder/stargazers","contributors_url":"https://api.github.com/repos/google/personfinder/contributors","subscribers_url":"https://api.github.com/repos/google/personfinder/subscribers","subscription_url":"https://api.github.com/repos/google/personfinder/subscription","commits_url":"https://api.github.com/repos/google/personfinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/personfinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/personfinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/personfinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/personfinder/contents/{+path}","compare_url":"https://api.github.com/repos/google/personfinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/personfinder/merges","archive_url":"https://api.github.com/repos/google/personfinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/personfinder/downloads","issues_url":"https://api.github.com/repos/google/personfinder/issues{/number}","pulls_url":"https://api.github.com/repos/google/personfinder/pulls{/number}","milestones_url":"https://api.github.com/repos/google/personfinder/milestones{/number}","notifications_url":"https://api.github.com/repos/google/personfinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/personfinder/labels{/name}","releases_url":"https://api.github.com/repos/google/personfinder/releases{/id}","deployments_url":"https://api.github.com/repos/google/personfinder/deployments","created_at":"2014-10-17T17:36:25Z","updated_at":"2016-10-27T16:56:17Z","pushed_at":"2016-10-28T05:55:38Z","git_url":"git://github.com/google/personfinder.git","ssh_url":"git@github.com:google/personfinder.git","clone_url":"https://github.com/google/personfinder.git","svn_url":"https://github.com/google/personfinder","homepage":"https://google.org/personfinder","size":305682,"stargazers_count":207,"watchers_count":207,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"open_issues_count":81,"forks":92,"open_issues":81,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/personfinder/pulls/314"},"html":{"href":"https://github.com/google/personfinder/pull/314"},"issue":{"href":"https://api.github.com/repos/google/personfinder/issues/314"},"comments":{"href":"https://api.github.com/repos/google/personfinder/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/google/personfinder/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/google/personfinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/personfinder/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/google/personfinder/statuses/c33aa71dcd780cc9ba07c23e59b64318186233fb"}}}}
{"actor":{"display_login":"Stephanie1125"}}