GitHub PullRequestReviewCommentEvent at 2014-12-08 22:00:20
Repository: tennis-matchr
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/comments/21489621","id":21489621,"diff_hunk":"@@ -0,0 +1,43 @@\n+class CalculateElo\n+\n+K_FACTOR = 32\n+\n+  def calculate_elo(player1, player2, winner)\n+    calculate_transformed_rating(player1, player2)\n+    calculate_expected_score\n+    score_values(player1, player2, winner)\n+    new_elo(player1, player2)\n+    player1.elo = @new_elo1.to_i\n+    player2.elo = @new_elo2.to_i\n+    player1.save\n+    player2.save\n+  end\n+\n+  def calculate_transformed_rating(player1, player2)\n+    @t_rating1 = (10**(player1.elo/400)).to_f\n+    @t_rating2 = (10**(player2.elo/400)).to_f","path":"app/models/calculate_elo.rb","position":18,"original_position":18,"commit_id":"2436e028fa4741571d279be68e680953800bf09f","original_commit_id":"2436e028fa4741571d279be68e680953800bf09f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Surrounding space missing for operator '/'.","created_at":"2014-12-08T22:00:20Z","updated_at":"2014-12-08T22:00:20Z","html_url":"https://github.com/elijahkim/tennis-matchr/pull/16#discussion_r21489621","pull_request_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/comments/21489621"},"html":{"href":"https://github.com/elijahkim/tennis-matchr/pull/16#discussion_r21489621"},"pull_request":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16","id":25700954,"html_url":"https://github.com/elijahkim/tennis-matchr/pull/16","diff_url":"https://github.com/elijahkim/tennis-matchr/pull/16.diff","patch_url":"https://github.com/elijahkim/tennis-matchr/pull/16.patch","issue_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/16","number":16,"state":"open","locked":false,"title":"The App calculates Elo","user":{"login":"elijahkim","id":8673900,"avatar_url":"https://avatars.githubusercontent.com/u/8673900?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahkim","html_url":"https://github.com/elijahkim","followers_url":"https://api.github.com/users/elijahkim/followers","following_url":"https://api.github.com/users/elijahkim/following{/other_user}","gists_url":"https://api.github.com/users/elijahkim/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahkim/subscriptions","organizations_url":"https://api.github.com/users/elijahkim/orgs","repos_url":"https://api.github.com/users/elijahkim/repos","events_url":"https://api.github.com/users/elijahkim/events{/privacy}","received_events_url":"https://api.github.com/users/elijahkim/received_events","type":"User","site_admin":false},"body":"* When a match winner is submitted, the player's elo is upated\r\n* Create CalculateElo class\r\n* Create EloUpdater class","created_at":"2014-12-08T22:00:12Z","updated_at":"2014-12-08T22:00:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e5e94cbcc2e84ede62805dd96891f3620a3712c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16/commits","review_comments_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16/comments","review_comment_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/comments/{number}","comments_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/16/comments","statuses_url":"https://api.github.com/repos/elijahkim/tennis-matchr/statuses/2436e028fa4741571d279be68e680953800bf09f","head":{"label":"elijahkim:ek/elo","ref":"ek/elo","sha":"2436e028fa4741571d279be68e680953800bf09f","user":{"login":"elijahkim","id":8673900,"avatar_url":"https://avatars.githubusercontent.com/u/8673900?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahkim","html_url":"https://github.com/elijahkim","followers_url":"https://api.github.com/users/elijahkim/followers","following_url":"https://api.github.com/users/elijahkim/following{/other_user}","gists_url":"https://api.github.com/users/elijahkim/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahkim/subscriptions","organizations_url":"https://api.github.com/users/elijahkim/orgs","repos_url":"https://api.github.com/users/elijahkim/repos","events_url":"https://api.github.com/users/elijahkim/events{/privacy}","received_events_url":"https://api.github.com/users/elijahkim/received_events","type":"User","site_admin":false},"repo":{"id":27090440,"name":"tennis-matchr","full_name":"elijahkim/tennis-matchr","owner":{"login":"elijahkim","id":8673900,"avatar_url":"https://avatars.githubusercontent.com/u/8673900?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahkim","html_url":"https://github.com/elijahkim","followers_url":"https://api.github.com/users/elijahkim/followers","following_url":"https://api.github.com/users/elijahkim/following{/other_user}","gists_url":"https://api.github.com/users/elijahkim/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahkim/subscriptions","organizations_url":"https://api.github.com/users/elijahkim/orgs","repos_url":"https://api.github.com/users/elijahkim/repos","events_url":"https://api.github.com/users/elijahkim/events{/privacy}","received_events_url":"https://api.github.com/users/elijahkim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elijahkim/tennis-matchr","description":"","fork":false,"url":"https://api.github.com/repos/elijahkim/tennis-matchr","forks_url":"https://api.github.com/repos/elijahkim/tennis-matchr/forks","keys_url":"https://api.github.com/repos/elijahkim/tennis-matchr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elijahkim/tennis-matchr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elijahkim/tennis-matchr/teams","hooks_url":"https://api.github.com/repos/elijahkim/tennis-matchr/hooks","issue_events_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/events{/number}","events_url":"https://api.github.com/repos/elijahkim/tennis-matchr/events","assignees_url":"https://api.github.com/repos/elijahkim/tennis-matchr/assignees{/user}","branches_url":"https://api.github.com/repos/elijahkim/tennis-matchr/branches{/branch}","tags_url":"https://api.github.com/repos/elijahkim/tennis-matchr/tags","blobs_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/refs{/sha}","trees_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elijahkim/tennis-matchr/statuses/{sha}","languages_url":"https://api.github.com/repos/elijahkim/tennis-matchr/languages","stargazers_url":"https://api.github.com/repos/elijahkim/tennis-matchr/stargazers","contributors_url":"https://api.github.com/repos/elijahkim/tennis-matchr/contributors","subscribers_url":"https://api.github.com/repos/elijahkim/tennis-matchr/subscribers","subscription_url":"https://api.github.com/repos/elijahkim/tennis-matchr/subscription","commits_url":"https://api.github.com/repos/elijahkim/tennis-matchr/commits{/sha}","git_commits_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/commits{/sha}","comments_url":"https://api.github.com/repos/elijahkim/tennis-matchr/comments{/number}","issue_comment_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/comments/{number}","contents_url":"https://api.github.com/repos/elijahkim/tennis-matchr/contents/{+path}","compare_url":"https://api.github.com/repos/elijahkim/tennis-matchr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elijahkim/tennis-matchr/merges","archive_url":"https://api.github.com/repos/elijahkim/tennis-matchr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elijahkim/tennis-matchr/downloads","issues_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues{/number}","pulls_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls{/number}","milestones_url":"https://api.github.com/repos/elijahkim/tennis-matchr/milestones{/number}","notifications_url":"https://api.github.com/repos/elijahkim/tennis-matchr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elijahkim/tennis-matchr/labels{/name}","releases_url":"https://api.github.com/repos/elijahkim/tennis-matchr/releases{/id}","created_at":"2014-11-24T19:07:45Z","updated_at":"2014-12-08T20:14:26Z","pushed_at":"2014-12-08T21:59:53Z","git_url":"git://github.com/elijahkim/tennis-matchr.git","ssh_url":"git@github.com:elijahkim/tennis-matchr.git","clone_url":"https://github.com/elijahkim/tennis-matchr.git","svn_url":"https://github.com/elijahkim/tennis-matchr","homepage":null,"size":1124,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"elijahkim:master","ref":"master","sha":"e78ace96cd162dca2dbaa355c1d9ad5ded81b690","user":{"login":"elijahkim","id":8673900,"avatar_url":"https://avatars.githubusercontent.com/u/8673900?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahkim","html_url":"https://github.com/elijahkim","followers_url":"https://api.github.com/users/elijahkim/followers","following_url":"https://api.github.com/users/elijahkim/following{/other_user}","gists_url":"https://api.github.com/users/elijahkim/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahkim/subscriptions","organizations_url":"https://api.github.com/users/elijahkim/orgs","repos_url":"https://api.github.com/users/elijahkim/repos","events_url":"https://api.github.com/users/elijahkim/events{/privacy}","received_events_url":"https://api.github.com/users/elijahkim/received_events","type":"User","site_admin":false},"repo":{"id":27090440,"name":"tennis-matchr","full_name":"elijahkim/tennis-matchr","owner":{"login":"elijahkim","id":8673900,"avatar_url":"https://avatars.githubusercontent.com/u/8673900?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahkim","html_url":"https://github.com/elijahkim","followers_url":"https://api.github.com/users/elijahkim/followers","following_url":"https://api.github.com/users/elijahkim/following{/other_user}","gists_url":"https://api.github.com/users/elijahkim/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahkim/subscriptions","organizations_url":"https://api.github.com/users/elijahkim/orgs","repos_url":"https://api.github.com/users/elijahkim/repos","events_url":"https://api.github.com/users/elijahkim/events{/privacy}","received_events_url":"https://api.github.com/users/elijahkim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elijahkim/tennis-matchr","description":"","fork":false,"url":"https://api.github.com/repos/elijahkim/tennis-matchr","forks_url":"https://api.github.com/repos/elijahkim/tennis-matchr/forks","keys_url":"https://api.github.com/repos/elijahkim/tennis-matchr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elijahkim/tennis-matchr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elijahkim/tennis-matchr/teams","hooks_url":"https://api.github.com/repos/elijahkim/tennis-matchr/hooks","issue_events_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/events{/number}","events_url":"https://api.github.com/repos/elijahkim/tennis-matchr/events","assignees_url":"https://api.github.com/repos/elijahkim/tennis-matchr/assignees{/user}","branches_url":"https://api.github.com/repos/elijahkim/tennis-matchr/branches{/branch}","tags_url":"https://api.github.com/repos/elijahkim/tennis-matchr/tags","blobs_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/refs{/sha}","trees_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elijahkim/tennis-matchr/statuses/{sha}","languages_url":"https://api.github.com/repos/elijahkim/tennis-matchr/languages","stargazers_url":"https://api.github.com/repos/elijahkim/tennis-matchr/stargazers","contributors_url":"https://api.github.com/repos/elijahkim/tennis-matchr/contributors","subscribers_url":"https://api.github.com/repos/elijahkim/tennis-matchr/subscribers","subscription_url":"https://api.github.com/repos/elijahkim/tennis-matchr/subscription","commits_url":"https://api.github.com/repos/elijahkim/tennis-matchr/commits{/sha}","git_commits_url":"https://api.github.com/repos/elijahkim/tennis-matchr/git/commits{/sha}","comments_url":"https://api.github.com/repos/elijahkim/tennis-matchr/comments{/number}","issue_comment_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/comments/{number}","contents_url":"https://api.github.com/repos/elijahkim/tennis-matchr/contents/{+path}","compare_url":"https://api.github.com/repos/elijahkim/tennis-matchr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elijahkim/tennis-matchr/merges","archive_url":"https://api.github.com/repos/elijahkim/tennis-matchr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elijahkim/tennis-matchr/downloads","issues_url":"https://api.github.com/repos/elijahkim/tennis-matchr/issues{/number}","pulls_url":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls{/number}","milestones_url":"https://api.github.com/repos/elijahkim/tennis-matchr/milestones{/number}","notifications_url":"https://api.github.com/repos/elijahkim/tennis-matchr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elijahkim/tennis-matchr/labels{/name}","releases_url":"https://api.github.com/repos/elijahkim/tennis-matchr/releases{/id}","created_at":"2014-11-24T19:07:45Z","updated_at":"2014-12-08T20:14:26Z","pushed_at":"2014-12-08T21:59:53Z","git_url":"git://github.com/elijahkim/tennis-matchr.git","ssh_url":"git@github.com:elijahkim/tennis-matchr.git","clone_url":"https://github.com/elijahkim/tennis-matchr.git","svn_url":"https://github.com/elijahkim/tennis-matchr","homepage":null,"size":1124,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16"},"html":{"href":"https://github.com/elijahkim/tennis-matchr/pull/16"},"issue":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/16"},"comments":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/elijahkim/tennis-matchr/statuses/2436e028fa4741571d279be68e680953800bf09f"}}}}