{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/comments/64105044","id":64105044,"diff_hunk":"@@ -70,34 +89,34 @@ def fetch_reviews():\n \n   return reviews\n \n-def cutoff_reviews(reviews, days):\n-  cutoff_reviews = []\n \n-  cutoff = days * 24 * 60 * 60\n-  now_ts = int(time.time())\n+def fetch_avg(days):\n+  chart = convert_to_chart(reviews_per_user(fetch_reviews('submitted', days))[1])","path":"mesos_rb.py","position":75,"original_position":75,"commit_id":"3613fc0086084c1d1e280e5fb9d35d9c56ed3f18","original_commit_id":"3613fc0086084c1d1e280e5fb9d35d9c56ed3f18","user":{"login":"artemharutyunyan","id":906660,"avatar_url":"https://avatars.githubusercontent.com/u/906660?v=3","gravatar_id":"","url":"https://api.github.com/users/artemharutyunyan","html_url":"https://github.com/artemharutyunyan","followers_url":"https://api.github.com/users/artemharutyunyan/followers","following_url":"https://api.github.com/users/artemharutyunyan/following{/other_user}","gists_url":"https://api.github.com/users/artemharutyunyan/gists{/gist_id}","starred_url":"https://api.github.com/users/artemharutyunyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemharutyunyan/subscriptions","organizations_url":"https://api.github.com/users/artemharutyunyan/orgs","repos_url":"https://api.github.com/users/artemharutyunyan/repos","events_url":"https://api.github.com/users/artemharutyunyan/events{/privacy}","received_events_url":"https://api.github.com/users/artemharutyunyan/received_events","type":"User","site_admin":false},"body":"[1] -> ['avg_issue_per_review']","created_at":"2016-05-20T20:47:01Z","updated_at":"2016-05-20T20:47:01Z","html_url":"https://github.com/mesosphere/rb-stats/pull/1#discussion_r64105044","pull_request_url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/comments/64105044"},"html":{"href":"https://github.com/mesosphere/rb-stats/pull/1#discussion_r64105044"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1","id":70786817,"html_url":"https://github.com/mesosphere/rb-stats/pull/1","diff_url":"https://github.com/mesosphere/rb-stats/pull/1.diff","patch_url":"https://github.com/mesosphere/rb-stats/pull/1.patch","issue_url":"https://api.github.com/repos/mesosphere/rb-stats/issues/1","number":1,"state":"open","locked":false,"title":"Added features","user":{"login":"GMertz","id":17051510,"avatar_url":"https://avatars.githubusercontent.com/u/17051510?v=3","gravatar_id":"","url":"https://api.github.com/users/GMertz","html_url":"https://github.com/GMertz","followers_url":"https://api.github.com/users/GMertz/followers","following_url":"https://api.github.com/users/GMertz/following{/other_user}","gists_url":"https://api.github.com/users/GMertz/gists{/gist_id}","starred_url":"https://api.github.com/users/GMertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMertz/subscriptions","organizations_url":"https://api.github.com/users/GMertz/orgs","repos_url":"https://api.github.com/users/GMertz/repos","events_url":"https://api.github.com/users/GMertz/events{/privacy}","received_events_url":"https://api.github.com/users/GMertz/received_events","type":"User","site_admin":false},"body":"-average issue chart\r\n-choice of which reviews to fetch (discarded, submitted, or pending)\r\n-ability to set cutoff before initial review fetch.\r\n-formatted graphs(added labels, titles, and legends)\r\n\r\nMost recently:\r\n-separated graphs\r\n-cleaned up code\r\n-validated correctness","created_at":"2016-05-20T00:36:41Z","updated_at":"2016-05-20T20:47:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd364bf328dc9f3d8137f57989f331982dc24f67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mesosphere/rb-stats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/rb-stats/issues/1/comments","statuses_url":"https://api.github.com/repos/mesosphere/rb-stats/statuses/3613fc0086084c1d1e280e5fb9d35d9c56ed3f18","head":{"label":"GMertz:master","ref":"master","sha":"3613fc0086084c1d1e280e5fb9d35d9c56ed3f18","user":{"login":"GMertz","id":17051510,"avatar_url":"https://avatars.githubusercontent.com/u/17051510?v=3","gravatar_id":"","url":"https://api.github.com/users/GMertz","html_url":"https://github.com/GMertz","followers_url":"https://api.github.com/users/GMertz/followers","following_url":"https://api.github.com/users/GMertz/following{/other_user}","gists_url":"https://api.github.com/users/GMertz/gists{/gist_id}","starred_url":"https://api.github.com/users/GMertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMertz/subscriptions","organizations_url":"https://api.github.com/users/GMertz/orgs","repos_url":"https://api.github.com/users/GMertz/repos","events_url":"https://api.github.com/users/GMertz/events{/privacy}","received_events_url":"https://api.github.com/users/GMertz/received_events","type":"User","site_admin":false},"repo":{"id":59241983,"name":"rb-stats","full_name":"GMertz/rb-stats","owner":{"login":"GMertz","id":17051510,"avatar_url":"https://avatars.githubusercontent.com/u/17051510?v=3","gravatar_id":"","url":"https://api.github.com/users/GMertz","html_url":"https://github.com/GMertz","followers_url":"https://api.github.com/users/GMertz/followers","following_url":"https://api.github.com/users/GMertz/following{/other_user}","gists_url":"https://api.github.com/users/GMertz/gists{/gist_id}","starred_url":"https://api.github.com/users/GMertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMertz/subscriptions","organizations_url":"https://api.github.com/users/GMertz/orgs","repos_url":"https://api.github.com/users/GMertz/repos","events_url":"https://api.github.com/users/GMertz/events{/privacy}","received_events_url":"https://api.github.com/users/GMertz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GMertz/rb-stats","description":"Mesos Review Board Statistics","fork":true,"url":"https://api.github.com/repos/GMertz/rb-stats","forks_url":"https://api.github.com/repos/GMertz/rb-stats/forks","keys_url":"https://api.github.com/repos/GMertz/rb-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GMertz/rb-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GMertz/rb-stats/teams","hooks_url":"https://api.github.com/repos/GMertz/rb-stats/hooks","issue_events_url":"https://api.github.com/repos/GMertz/rb-stats/issues/events{/number}","events_url":"https://api.github.com/repos/GMertz/rb-stats/events","assignees_url":"https://api.github.com/repos/GMertz/rb-stats/assignees{/user}","branches_url":"https://api.github.com/repos/GMertz/rb-stats/branches{/branch}","tags_url":"https://api.github.com/repos/GMertz/rb-stats/tags","blobs_url":"https://api.github.com/repos/GMertz/rb-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GMertz/rb-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GMertz/rb-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/GMertz/rb-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GMertz/rb-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/GMertz/rb-stats/languages","stargazers_url":"https://api.github.com/repos/GMertz/rb-stats/stargazers","contributors_url":"https://api.github.com/repos/GMertz/rb-stats/contributors","subscribers_url":"https://api.github.com/repos/GMertz/rb-stats/subscribers","subscription_url":"https://api.github.com/repos/GMertz/rb-stats/subscription","commits_url":"https://api.github.com/repos/GMertz/rb-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/GMertz/rb-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/GMertz/rb-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/GMertz/rb-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/GMertz/rb-stats/contents/{+path}","compare_url":"https://api.github.com/repos/GMertz/rb-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GMertz/rb-stats/merges","archive_url":"https://api.github.com/repos/GMertz/rb-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GMertz/rb-stats/downloads","issues_url":"https://api.github.com/repos/GMertz/rb-stats/issues{/number}","pulls_url":"https://api.github.com/repos/GMertz/rb-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/GMertz/rb-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/GMertz/rb-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GMertz/rb-stats/labels{/name}","releases_url":"https://api.github.com/repos/GMertz/rb-stats/releases{/id}","deployments_url":"https://api.github.com/repos/GMertz/rb-stats/deployments","created_at":"2016-05-19T20:53:47Z","updated_at":"2016-05-19T20:53:48Z","pushed_at":"2016-05-20T00:35:26Z","git_url":"git://github.com/GMertz/rb-stats.git","ssh_url":"git@github.com:GMertz/rb-stats.git","clone_url":"https://github.com/GMertz/rb-stats.git","svn_url":"https://github.com/GMertz/rb-stats","homepage":null,"size":856,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"cc538bbd1b45425a948d5e10297842ea72621a43","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":56340670,"name":"rb-stats","full_name":"mesosphere/rb-stats","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/rb-stats","description":"Mesos Review Board Statistics","fork":false,"url":"https://api.github.com/repos/mesosphere/rb-stats","forks_url":"https://api.github.com/repos/mesosphere/rb-stats/forks","keys_url":"https://api.github.com/repos/mesosphere/rb-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/rb-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/rb-stats/teams","hooks_url":"https://api.github.com/repos/mesosphere/rb-stats/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/rb-stats/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/rb-stats/events","assignees_url":"https://api.github.com/repos/mesosphere/rb-stats/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/rb-stats/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/rb-stats/tags","blobs_url":"https://api.github.com/repos/mesosphere/rb-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/rb-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/rb-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/rb-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/rb-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/rb-stats/languages","stargazers_url":"https://api.github.com/repos/mesosphere/rb-stats/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/rb-stats/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/rb-stats/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/rb-stats/subscription","commits_url":"https://api.github.com/repos/mesosphere/rb-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/rb-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/rb-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/rb-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/rb-stats/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/rb-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/rb-stats/merges","archive_url":"https://api.github.com/repos/mesosphere/rb-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/rb-stats/downloads","issues_url":"https://api.github.com/repos/mesosphere/rb-stats/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/rb-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/rb-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/rb-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/rb-stats/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/rb-stats/releases{/id}","deployments_url":"https://api.github.com/repos/mesosphere/rb-stats/deployments","created_at":"2016-04-15T18:16:13Z","updated_at":"2016-05-11T20:36:03Z","pushed_at":"2016-05-20T00:36:41Z","git_url":"git://github.com/mesosphere/rb-stats.git","ssh_url":"git@github.com:mesosphere/rb-stats.git","clone_url":"https://github.com/mesosphere/rb-stats.git","svn_url":"https://github.com/mesosphere/rb-stats","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1"},"html":{"href":"https://github.com/mesosphere/rb-stats/pull/1"},"issue":{"href":"https://api.github.com/repos/mesosphere/rb-stats/issues/1"},"comments":{"href":"https://api.github.com/repos/mesosphere/rb-stats/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/rb-stats/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/rb-stats/statuses/3613fc0086084c1d1e280e5fb9d35d9c56ed3f18"}}}}
{"actor":{"display_login":"artemharutyunyan"}}