{"action":"created","comment":{"url":"https://api.github.com/repos/dave315/myKey/pulls/comments/35148660","id":35148660,"diff_hunk":"@@ -32,4 +33,25 @@ def self.all_venue_weekly_count\n     end\n     hash.sort_by { |venue, checkins| -checkins }[0..9].to_h\n   end\n+\n+  def tag_display\n+    if tag.nil?\n+      return \"Not tagged\"\n+    else\n+      tag.name\n+    end\n+  end\n+\n+  def self.tag_data\n+    result = []\n+    venue_hash = Hash.new(0)\n+    includes(:tag).each do |venue|\n+      venue_hash[venue.tag_display] += 1\n+    end\n+    venue_hash.each do |tag, num|\n+      result << {name: tag, y: num}","path":"app/models/venue.rb","position":28,"original_position":28,"commit_id":"84c6e944ea332912a4a67bfdacf45811b2dda8e4","original_commit_id":"84c6e944ea332912a4a67bfdacf45811b2dda8e4","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":"Space inside { missing.<br>Space inside } missing.","created_at":"2015-07-21T20:15:55Z","updated_at":"2015-07-21T20:15:55Z","html_url":"https://github.com/dave315/myKey/pull/25#discussion_r35148660","pull_request_url":"https://api.github.com/repos/dave315/myKey/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/dave315/myKey/pulls/comments/35148660"},"html":{"href":"https://github.com/dave315/myKey/pull/25#discussion_r35148660"},"pull_request":{"href":"https://api.github.com/repos/dave315/myKey/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/dave315/myKey/pulls/25","id":40499500,"html_url":"https://github.com/dave315/myKey/pull/25","diff_url":"https://github.com/dave315/myKey/pull/25.diff","patch_url":"https://github.com/dave315/myKey/pull/25.patch","issue_url":"https://api.github.com/repos/dave315/myKey/issues/25","number":25,"state":"open","locked":false,"title":"Venue chart, new tag, assign tags","user":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-21T20:15:38Z","updated_at":"2015-07-21T20:15:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b816715612bdddf0dba226800bf13ff44ed3761","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dave315/myKey/pulls/25/commits","review_comments_url":"https://api.github.com/repos/dave315/myKey/pulls/25/comments","review_comment_url":"https://api.github.com/repos/dave315/myKey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dave315/myKey/issues/25/comments","statuses_url":"https://api.github.com/repos/dave315/myKey/statuses/84c6e944ea332912a4a67bfdacf45811b2dda8e4","head":{"label":"dave315:create_tags_table","ref":"create_tags_table","sha":"84c6e944ea332912a4a67bfdacf45811b2dda8e4","user":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"repo":{"id":38857581,"name":"myKey","full_name":"dave315/myKey","owner":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dave315/myKey","description":"","fork":false,"url":"https://api.github.com/repos/dave315/myKey","forks_url":"https://api.github.com/repos/dave315/myKey/forks","keys_url":"https://api.github.com/repos/dave315/myKey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dave315/myKey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dave315/myKey/teams","hooks_url":"https://api.github.com/repos/dave315/myKey/hooks","issue_events_url":"https://api.github.com/repos/dave315/myKey/issues/events{/number}","events_url":"https://api.github.com/repos/dave315/myKey/events","assignees_url":"https://api.github.com/repos/dave315/myKey/assignees{/user}","branches_url":"https://api.github.com/repos/dave315/myKey/branches{/branch}","tags_url":"https://api.github.com/repos/dave315/myKey/tags","blobs_url":"https://api.github.com/repos/dave315/myKey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dave315/myKey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dave315/myKey/git/refs{/sha}","trees_url":"https://api.github.com/repos/dave315/myKey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dave315/myKey/statuses/{sha}","languages_url":"https://api.github.com/repos/dave315/myKey/languages","stargazers_url":"https://api.github.com/repos/dave315/myKey/stargazers","contributors_url":"https://api.github.com/repos/dave315/myKey/contributors","subscribers_url":"https://api.github.com/repos/dave315/myKey/subscribers","subscription_url":"https://api.github.com/repos/dave315/myKey/subscription","commits_url":"https://api.github.com/repos/dave315/myKey/commits{/sha}","git_commits_url":"https://api.github.com/repos/dave315/myKey/git/commits{/sha}","comments_url":"https://api.github.com/repos/dave315/myKey/comments{/number}","issue_comment_url":"https://api.github.com/repos/dave315/myKey/issues/comments{/number}","contents_url":"https://api.github.com/repos/dave315/myKey/contents/{+path}","compare_url":"https://api.github.com/repos/dave315/myKey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dave315/myKey/merges","archive_url":"https://api.github.com/repos/dave315/myKey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dave315/myKey/downloads","issues_url":"https://api.github.com/repos/dave315/myKey/issues{/number}","pulls_url":"https://api.github.com/repos/dave315/myKey/pulls{/number}","milestones_url":"https://api.github.com/repos/dave315/myKey/milestones{/number}","notifications_url":"https://api.github.com/repos/dave315/myKey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dave315/myKey/labels{/name}","releases_url":"https://api.github.com/repos/dave315/myKey/releases{/id}","created_at":"2015-07-10T02:56:54Z","updated_at":"2015-07-10T02:57:26Z","pushed_at":"2015-07-21T20:15:38Z","git_url":"git://github.com/dave315/myKey.git","ssh_url":"git@github.com:dave315/myKey.git","clone_url":"https://github.com/dave315/myKey.git","svn_url":"https://github.com/dave315/myKey","homepage":null,"size":684,"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":"dave315:master","ref":"master","sha":"c960b26b2ccbd65c8cf4c3710947aec95078aa96","user":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"repo":{"id":38857581,"name":"myKey","full_name":"dave315/myKey","owner":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dave315/myKey","description":"","fork":false,"url":"https://api.github.com/repos/dave315/myKey","forks_url":"https://api.github.com/repos/dave315/myKey/forks","keys_url":"https://api.github.com/repos/dave315/myKey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dave315/myKey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dave315/myKey/teams","hooks_url":"https://api.github.com/repos/dave315/myKey/hooks","issue_events_url":"https://api.github.com/repos/dave315/myKey/issues/events{/number}","events_url":"https://api.github.com/repos/dave315/myKey/events","assignees_url":"https://api.github.com/repos/dave315/myKey/assignees{/user}","branches_url":"https://api.github.com/repos/dave315/myKey/branches{/branch}","tags_url":"https://api.github.com/repos/dave315/myKey/tags","blobs_url":"https://api.github.com/repos/dave315/myKey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dave315/myKey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dave315/myKey/git/refs{/sha}","trees_url":"https://api.github.com/repos/dave315/myKey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dave315/myKey/statuses/{sha}","languages_url":"https://api.github.com/repos/dave315/myKey/languages","stargazers_url":"https://api.github.com/repos/dave315/myKey/stargazers","contributors_url":"https://api.github.com/repos/dave315/myKey/contributors","subscribers_url":"https://api.github.com/repos/dave315/myKey/subscribers","subscription_url":"https://api.github.com/repos/dave315/myKey/subscription","commits_url":"https://api.github.com/repos/dave315/myKey/commits{/sha}","git_commits_url":"https://api.github.com/repos/dave315/myKey/git/commits{/sha}","comments_url":"https://api.github.com/repos/dave315/myKey/comments{/number}","issue_comment_url":"https://api.github.com/repos/dave315/myKey/issues/comments{/number}","contents_url":"https://api.github.com/repos/dave315/myKey/contents/{+path}","compare_url":"https://api.github.com/repos/dave315/myKey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dave315/myKey/merges","archive_url":"https://api.github.com/repos/dave315/myKey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dave315/myKey/downloads","issues_url":"https://api.github.com/repos/dave315/myKey/issues{/number}","pulls_url":"https://api.github.com/repos/dave315/myKey/pulls{/number}","milestones_url":"https://api.github.com/repos/dave315/myKey/milestones{/number}","notifications_url":"https://api.github.com/repos/dave315/myKey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dave315/myKey/labels{/name}","releases_url":"https://api.github.com/repos/dave315/myKey/releases{/id}","created_at":"2015-07-10T02:56:54Z","updated_at":"2015-07-10T02:57:26Z","pushed_at":"2015-07-21T20:15:38Z","git_url":"git://github.com/dave315/myKey.git","ssh_url":"git@github.com:dave315/myKey.git","clone_url":"https://github.com/dave315/myKey.git","svn_url":"https://github.com/dave315/myKey","homepage":null,"size":684,"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/dave315/myKey/pulls/25"},"html":{"href":"https://github.com/dave315/myKey/pull/25"},"issue":{"href":"https://api.github.com/repos/dave315/myKey/issues/25"},"comments":{"href":"https://api.github.com/repos/dave315/myKey/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/dave315/myKey/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/dave315/myKey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dave315/myKey/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/dave315/myKey/statuses/84c6e944ea332912a4a67bfdacf45811b2dda8e4"}}}}