GitHub PullRequestReviewCommentEvent at 2014-09-16 02:44:16
Repository: GradePending2.0
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/comments/17580820","id":17580820,"diff_hunk":"@@ -16,12 +17,13 @@ def statistics\n \t\tInspection.violation_cache.each do |i|\n \t\t\tinspection_list.has_key?(i) ? (inspection_list[i] += 1) : (inspection_list[i] = 1)\n \t\tend\n-\t\ta =  grades.select{|x| x == 'A'}.size\n-\t\tb = grades.select{|x| x == 'B'}.size\n-\t\tc = grades.select{|x| x == 'C'}.size\n-\t\tgp = grades.select{|x| x == 'Z'}.size\n-\t\tno_grade = grades.select{|x| x == nil}.size\n+\t\ta =  grades.select{ |x| x == 'A'}.size\n+\t\tb =  grades.select{ |x| x == 'B'}.size\n+\t\tc =  grades.select{ |x| x == 'C'}.size","path":"app/controllers/restaurants_controller.rb","position":17,"original_position":17,"commit_id":"c4b62187d01c7390c68099b4e04c092b86849627","original_commit_id":"c4b62187d01c7390c68099b4e04c092b86849627","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"Space missing to the left of {.<br>Space missing inside }.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.<br>Tab detected.","created_at":"2014-09-16T02:44:16Z","updated_at":"2014-09-16T02:44:16Z","html_url":"https://github.com/mendoncakr/GradePending2.0/pull/38#discussion_r17580820","pull_request_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/comments/17580820"},"html":{"href":"https://github.com/mendoncakr/GradePending2.0/pull/38#discussion_r17580820"},"pull_request":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38","id":21273720,"html_url":"https://github.com/mendoncakr/GradePending2.0/pull/38","diff_url":"https://github.com/mendoncakr/GradePending2.0/pull/38.diff","patch_url":"https://github.com/mendoncakr/GradePending2.0/pull/38.patch","issue_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/38","number":38,"state":"open","locked":false,"title":"Show page","user":{"login":"mendoncakr","id":6697743,"avatar_url":"https://avatars.githubusercontent.com/u/6697743?v=2","gravatar_id":"953dc74db5ad10dbe04c02a0fbc96b56","url":"https://api.github.com/users/mendoncakr","html_url":"https://github.com/mendoncakr","followers_url":"https://api.github.com/users/mendoncakr/followers","following_url":"https://api.github.com/users/mendoncakr/following{/other_user}","gists_url":"https://api.github.com/users/mendoncakr/gists{/gist_id}","starred_url":"https://api.github.com/users/mendoncakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendoncakr/subscriptions","organizations_url":"https://api.github.com/users/mendoncakr/orgs","repos_url":"https://api.github.com/users/mendoncakr/repos","events_url":"https://api.github.com/users/mendoncakr/events{/privacy}","received_events_url":"https://api.github.com/users/mendoncakr/received_events","type":"User","site_admin":false},"body":"Fixed up the show page by adding lots of styling, highchart comparing the restaurant in respect to other restaurants with same cuisine code, and linking nearby restaurants to their respective pages","created_at":"2014-09-16T02:44:07Z","updated_at":"2014-09-16T02:44:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76ce9cd7e0ae6db9f0be27b6198a38eeecd09354","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38/commits","review_comments_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38/comments","review_comment_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/38/comments","statuses_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/statuses/c4b62187d01c7390c68099b4e04c092b86849627","head":{"label":"mendoncakr:show_page","ref":"show_page","sha":"c4b62187d01c7390c68099b4e04c092b86849627","user":{"login":"mendoncakr","id":6697743,"avatar_url":"https://avatars.githubusercontent.com/u/6697743?v=2","gravatar_id":"953dc74db5ad10dbe04c02a0fbc96b56","url":"https://api.github.com/users/mendoncakr","html_url":"https://github.com/mendoncakr","followers_url":"https://api.github.com/users/mendoncakr/followers","following_url":"https://api.github.com/users/mendoncakr/following{/other_user}","gists_url":"https://api.github.com/users/mendoncakr/gists{/gist_id}","starred_url":"https://api.github.com/users/mendoncakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendoncakr/subscriptions","organizations_url":"https://api.github.com/users/mendoncakr/orgs","repos_url":"https://api.github.com/users/mendoncakr/repos","events_url":"https://api.github.com/users/mendoncakr/events{/privacy}","received_events_url":"https://api.github.com/users/mendoncakr/received_events","type":"User","site_admin":false},"repo":{"id":22793537,"name":"GradePending2.0","full_name":"mendoncakr/GradePending2.0","owner":{"login":"mendoncakr","id":6697743,"avatar_url":"https://avatars.githubusercontent.com/u/6697743?v=2","gravatar_id":"953dc74db5ad10dbe04c02a0fbc96b56","url":"https://api.github.com/users/mendoncakr","html_url":"https://github.com/mendoncakr","followers_url":"https://api.github.com/users/mendoncakr/followers","following_url":"https://api.github.com/users/mendoncakr/following{/other_user}","gists_url":"https://api.github.com/users/mendoncakr/gists{/gist_id}","starred_url":"https://api.github.com/users/mendoncakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendoncakr/subscriptions","organizations_url":"https://api.github.com/users/mendoncakr/orgs","repos_url":"https://api.github.com/users/mendoncakr/repos","events_url":"https://api.github.com/users/mendoncakr/events{/privacy}","received_events_url":"https://api.github.com/users/mendoncakr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mendoncakr/GradePending2.0","description":"","fork":false,"url":"https://api.github.com/repos/mendoncakr/GradePending2.0","forks_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/forks","keys_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/teams","hooks_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/hooks","issue_events_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/events{/number}","events_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/events","assignees_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/assignees{/user}","branches_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/branches{/branch}","tags_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/tags","blobs_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/refs{/sha}","trees_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/statuses/{sha}","languages_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/languages","stargazers_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/stargazers","contributors_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/contributors","subscribers_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/subscribers","subscription_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/subscription","commits_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/commits{/sha}","git_commits_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/commits{/sha}","comments_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/comments{/number}","issue_comment_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/comments/{number}","contents_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/contents/{+path}","compare_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/merges","archive_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/downloads","issues_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues{/number}","pulls_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls{/number}","milestones_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/milestones{/number}","notifications_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/labels{/name}","releases_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/releases{/id}","created_at":"2014-08-09T19:32:41Z","updated_at":"2014-09-05T21:21:28Z","pushed_at":"2014-09-16T02:39:41Z","git_url":"git://github.com/mendoncakr/GradePending2.0.git","ssh_url":"git@github.com:mendoncakr/GradePending2.0.git","clone_url":"https://github.com/mendoncakr/GradePending2.0.git","svn_url":"https://github.com/mendoncakr/GradePending2.0","homepage":null,"size":16069,"stargazers_count":0,"watchers_count":0,"language":"CSS","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"}},"base":{"label":"mendoncakr:master","ref":"master","sha":"637ab2324176858c6dc31db0472c3c59ec9d6cb7","user":{"login":"mendoncakr","id":6697743,"avatar_url":"https://avatars.githubusercontent.com/u/6697743?v=2","gravatar_id":"953dc74db5ad10dbe04c02a0fbc96b56","url":"https://api.github.com/users/mendoncakr","html_url":"https://github.com/mendoncakr","followers_url":"https://api.github.com/users/mendoncakr/followers","following_url":"https://api.github.com/users/mendoncakr/following{/other_user}","gists_url":"https://api.github.com/users/mendoncakr/gists{/gist_id}","starred_url":"https://api.github.com/users/mendoncakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendoncakr/subscriptions","organizations_url":"https://api.github.com/users/mendoncakr/orgs","repos_url":"https://api.github.com/users/mendoncakr/repos","events_url":"https://api.github.com/users/mendoncakr/events{/privacy}","received_events_url":"https://api.github.com/users/mendoncakr/received_events","type":"User","site_admin":false},"repo":{"id":22793537,"name":"GradePending2.0","full_name":"mendoncakr/GradePending2.0","owner":{"login":"mendoncakr","id":6697743,"avatar_url":"https://avatars.githubusercontent.com/u/6697743?v=2","gravatar_id":"953dc74db5ad10dbe04c02a0fbc96b56","url":"https://api.github.com/users/mendoncakr","html_url":"https://github.com/mendoncakr","followers_url":"https://api.github.com/users/mendoncakr/followers","following_url":"https://api.github.com/users/mendoncakr/following{/other_user}","gists_url":"https://api.github.com/users/mendoncakr/gists{/gist_id}","starred_url":"https://api.github.com/users/mendoncakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendoncakr/subscriptions","organizations_url":"https://api.github.com/users/mendoncakr/orgs","repos_url":"https://api.github.com/users/mendoncakr/repos","events_url":"https://api.github.com/users/mendoncakr/events{/privacy}","received_events_url":"https://api.github.com/users/mendoncakr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mendoncakr/GradePending2.0","description":"","fork":false,"url":"https://api.github.com/repos/mendoncakr/GradePending2.0","forks_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/forks","keys_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/teams","hooks_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/hooks","issue_events_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/events{/number}","events_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/events","assignees_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/assignees{/user}","branches_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/branches{/branch}","tags_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/tags","blobs_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/refs{/sha}","trees_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/statuses/{sha}","languages_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/languages","stargazers_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/stargazers","contributors_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/contributors","subscribers_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/subscribers","subscription_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/subscription","commits_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/commits{/sha}","git_commits_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/git/commits{/sha}","comments_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/comments{/number}","issue_comment_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/comments/{number}","contents_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/contents/{+path}","compare_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/merges","archive_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/downloads","issues_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues{/number}","pulls_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls{/number}","milestones_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/milestones{/number}","notifications_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/labels{/name}","releases_url":"https://api.github.com/repos/mendoncakr/GradePending2.0/releases{/id}","created_at":"2014-08-09T19:32:41Z","updated_at":"2014-09-05T21:21:28Z","pushed_at":"2014-09-16T02:39:41Z","git_url":"git://github.com/mendoncakr/GradePending2.0.git","ssh_url":"git@github.com:mendoncakr/GradePending2.0.git","clone_url":"https://github.com/mendoncakr/GradePending2.0.git","svn_url":"https://github.com/mendoncakr/GradePending2.0","homepage":null,"size":16069,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/mendoncakr/GradePending2.0/pulls/38"},"html":{"href":"https://github.com/mendoncakr/GradePending2.0/pull/38"},"issue":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/38"},"comments":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/mendoncakr/GradePending2.0/statuses/c4b62187d01c7390c68099b4e04c092b86849627"}}}}