{"action":"opened","number":32,"pull_request":{"url":"https://api.github.com/repos/stesh/porick-flask/pulls/32","id":58137348,"html_url":"https://github.com/stesh/porick-flask/pull/32","diff_url":"https://github.com/stesh/porick-flask/pull/32.diff","patch_url":"https://github.com/stesh/porick-flask/pull/32.patch","issue_url":"https://api.github.com/repos/stesh/porick-flask/issues/32","number":32,"state":"open","locked":false,"title":"Add controversial tab with simple ordering","user":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"body":"This implementation is quite simple. A better approach would be to take the stddev of all of the recorded votes in vote_to_user, but for now this will probably do as it is Chirpy-compliant. \r\n\r\n* High scoring quotes with few downvotes will produce a high score when checking for controversy (tending towards 1.0) \r\n* Quotes with lots of upvotes and downvotes will have a much lower controversy score, indicating that it's more controversial. ","created_at":"2016-02-03T13:34:20Z","updated_at":"2016-02-03T13:34:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stesh/porick-flask/pulls/32/commits","review_comments_url":"https://api.github.com/repos/stesh/porick-flask/pulls/32/comments","review_comment_url":"https://api.github.com/repos/stesh/porick-flask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stesh/porick-flask/issues/32/comments","statuses_url":"https://api.github.com/repos/stesh/porick-flask/statuses/64382b668eb839f0089e48cd9986d499a55e27de","head":{"label":"nosmo:master","ref":"master","sha":"64382b668eb839f0089e48cd9986d499a55e27de","user":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"repo":{"id":50919394,"name":"porick-flask","full_name":"nosmo/porick-flask","owner":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nosmo/porick-flask","description":"Porting porick to flask","fork":true,"url":"https://api.github.com/repos/nosmo/porick-flask","forks_url":"https://api.github.com/repos/nosmo/porick-flask/forks","keys_url":"https://api.github.com/repos/nosmo/porick-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nosmo/porick-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nosmo/porick-flask/teams","hooks_url":"https://api.github.com/repos/nosmo/porick-flask/hooks","issue_events_url":"https://api.github.com/repos/nosmo/porick-flask/issues/events{/number}","events_url":"https://api.github.com/repos/nosmo/porick-flask/events","assignees_url":"https://api.github.com/repos/nosmo/porick-flask/assignees{/user}","branches_url":"https://api.github.com/repos/nosmo/porick-flask/branches{/branch}","tags_url":"https://api.github.com/repos/nosmo/porick-flask/tags","blobs_url":"https://api.github.com/repos/nosmo/porick-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nosmo/porick-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nosmo/porick-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/nosmo/porick-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nosmo/porick-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/nosmo/porick-flask/languages","stargazers_url":"https://api.github.com/repos/nosmo/porick-flask/stargazers","contributors_url":"https://api.github.com/repos/nosmo/porick-flask/contributors","subscribers_url":"https://api.github.com/repos/nosmo/porick-flask/subscribers","subscription_url":"https://api.github.com/repos/nosmo/porick-flask/subscription","commits_url":"https://api.github.com/repos/nosmo/porick-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/nosmo/porick-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/nosmo/porick-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/nosmo/porick-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/nosmo/porick-flask/contents/{+path}","compare_url":"https://api.github.com/repos/nosmo/porick-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nosmo/porick-flask/merges","archive_url":"https://api.github.com/repos/nosmo/porick-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nosmo/porick-flask/downloads","issues_url":"https://api.github.com/repos/nosmo/porick-flask/issues{/number}","pulls_url":"https://api.github.com/repos/nosmo/porick-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/nosmo/porick-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/nosmo/porick-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nosmo/porick-flask/labels{/name}","releases_url":"https://api.github.com/repos/nosmo/porick-flask/releases{/id}","deployments_url":"https://api.github.com/repos/nosmo/porick-flask/deployments","created_at":"2016-02-02T12:35:32Z","updated_at":"2016-02-02T12:35:33Z","pushed_at":"2016-02-03T13:28:49Z","git_url":"git://github.com/nosmo/porick-flask.git","ssh_url":"git@github.com:nosmo/porick-flask.git","clone_url":"https://github.com/nosmo/porick-flask.git","svn_url":"https://github.com/nosmo/porick-flask","homepage":null,"size":367,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"stesh:master","ref":"master","sha":"534baf1c6262878a459ee3eb9e76770276bcedf1","user":{"login":"stesh","id":175897,"avatar_url":"https://avatars.githubusercontent.com/u/175897?v=3","gravatar_id":"","url":"https://api.github.com/users/stesh","html_url":"https://github.com/stesh","followers_url":"https://api.github.com/users/stesh/followers","following_url":"https://api.github.com/users/stesh/following{/other_user}","gists_url":"https://api.github.com/users/stesh/gists{/gist_id}","starred_url":"https://api.github.com/users/stesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stesh/subscriptions","organizations_url":"https://api.github.com/users/stesh/orgs","repos_url":"https://api.github.com/users/stesh/repos","events_url":"https://api.github.com/users/stesh/events{/privacy}","received_events_url":"https://api.github.com/users/stesh/received_events","type":"User","site_admin":false},"repo":{"id":41263229,"name":"porick-flask","full_name":"stesh/porick-flask","owner":{"login":"stesh","id":175897,"avatar_url":"https://avatars.githubusercontent.com/u/175897?v=3","gravatar_id":"","url":"https://api.github.com/users/stesh","html_url":"https://github.com/stesh","followers_url":"https://api.github.com/users/stesh/followers","following_url":"https://api.github.com/users/stesh/following{/other_user}","gists_url":"https://api.github.com/users/stesh/gists{/gist_id}","starred_url":"https://api.github.com/users/stesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stesh/subscriptions","organizations_url":"https://api.github.com/users/stesh/orgs","repos_url":"https://api.github.com/users/stesh/repos","events_url":"https://api.github.com/users/stesh/events{/privacy}","received_events_url":"https://api.github.com/users/stesh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stesh/porick-flask","description":"Porting porick to flask","fork":false,"url":"https://api.github.com/repos/stesh/porick-flask","forks_url":"https://api.github.com/repos/stesh/porick-flask/forks","keys_url":"https://api.github.com/repos/stesh/porick-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stesh/porick-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stesh/porick-flask/teams","hooks_url":"https://api.github.com/repos/stesh/porick-flask/hooks","issue_events_url":"https://api.github.com/repos/stesh/porick-flask/issues/events{/number}","events_url":"https://api.github.com/repos/stesh/porick-flask/events","assignees_url":"https://api.github.com/repos/stesh/porick-flask/assignees{/user}","branches_url":"https://api.github.com/repos/stesh/porick-flask/branches{/branch}","tags_url":"https://api.github.com/repos/stesh/porick-flask/tags","blobs_url":"https://api.github.com/repos/stesh/porick-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stesh/porick-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stesh/porick-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/stesh/porick-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stesh/porick-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/stesh/porick-flask/languages","stargazers_url":"https://api.github.com/repos/stesh/porick-flask/stargazers","contributors_url":"https://api.github.com/repos/stesh/porick-flask/contributors","subscribers_url":"https://api.github.com/repos/stesh/porick-flask/subscribers","subscription_url":"https://api.github.com/repos/stesh/porick-flask/subscription","commits_url":"https://api.github.com/repos/stesh/porick-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/stesh/porick-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/stesh/porick-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/stesh/porick-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/stesh/porick-flask/contents/{+path}","compare_url":"https://api.github.com/repos/stesh/porick-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stesh/porick-flask/merges","archive_url":"https://api.github.com/repos/stesh/porick-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stesh/porick-flask/downloads","issues_url":"https://api.github.com/repos/stesh/porick-flask/issues{/number}","pulls_url":"https://api.github.com/repos/stesh/porick-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/stesh/porick-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/stesh/porick-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stesh/porick-flask/labels{/name}","releases_url":"https://api.github.com/repos/stesh/porick-flask/releases{/id}","deployments_url":"https://api.github.com/repos/stesh/porick-flask/deployments","created_at":"2015-08-23T19:11:38Z","updated_at":"2016-01-24T13:51:22Z","pushed_at":"2016-02-03T13:34:20Z","git_url":"git://github.com/stesh/porick-flask.git","ssh_url":"git@github.com:stesh/porick-flask.git","clone_url":"https://github.com/stesh/porick-flask.git","svn_url":"https://github.com/stesh/porick-flask","homepage":null,"size":373,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stesh/porick-flask/pulls/32"},"html":{"href":"https://github.com/stesh/porick-flask/pull/32"},"issue":{"href":"https://api.github.com/repos/stesh/porick-flask/issues/32"},"comments":{"href":"https://api.github.com/repos/stesh/porick-flask/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/stesh/porick-flask/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/stesh/porick-flask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stesh/porick-flask/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/stesh/porick-flask/statuses/64382b668eb839f0089e48cd9986d499a55e27de"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":2,"changed_files":2}}