{"action":"created","comment":{"url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/comments/54031707","id":54031707,"diff_hunk":"@@ -0,0 +1,191 @@\n+//global variables\n+var top10Music = [];\n+\n+//function to compare author of vines to each other, if the same, then remove duplicates\n+//parameter: an array\n+function noDupVines(arr) {\n+    var output = {};\n+    var len = arr.length;\n+    for (var i = 0; i < len; i++) {\n+        //if not null then enter\n+        if (arr[i] !== null) {\n+            //set store key in output object, if same key then replace existing one\n+            output[arr[i].author_url] = arr[i];\n+        }","path":"script.js","position":14,"original_position":14,"commit_id":"a3f0a5bd39c5b46c8069d071e43d8adc178f7692","original_commit_id":"a3f0a5bd39c5b46c8069d071e43d8adc178f7692","user":{"login":"dpaschal-lf","id":10343746,"avatar_url":"https://avatars.githubusercontent.com/u/10343746?v=3","gravatar_id":"","url":"https://api.github.com/users/dpaschal-lf","html_url":"https://github.com/dpaschal-lf","followers_url":"https://api.github.com/users/dpaschal-lf/followers","following_url":"https://api.github.com/users/dpaschal-lf/following{/other_user}","gists_url":"https://api.github.com/users/dpaschal-lf/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaschal-lf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaschal-lf/subscriptions","organizations_url":"https://api.github.com/users/dpaschal-lf/orgs","repos_url":"https://api.github.com/users/dpaschal-lf/repos","events_url":"https://api.github.com/users/dpaschal-lf/events{/privacy}","received_events_url":"https://api.github.com/users/dpaschal-lf/received_events","type":"User","site_admin":false},"body":"how does this prevent duplicates?","created_at":"2016-02-25T00:29:19Z","updated_at":"2016-02-25T00:29:19Z","html_url":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4#discussion_r54031707","pull_request_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/comments/54031707"},"html":{"href":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4#discussion_r54031707"},"pull_request":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4","id":60032805,"html_url":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4","diff_url":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4.diff","patch_url":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4.patch","issue_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/4","number":4,"state":"open","locked":false,"title":"funny cards are awesome","user":{"login":"svwielga4","id":16503699,"avatar_url":"https://avatars.githubusercontent.com/u/16503699?v=3","gravatar_id":"","url":"https://api.github.com/users/svwielga4","html_url":"https://github.com/svwielga4","followers_url":"https://api.github.com/users/svwielga4/followers","following_url":"https://api.github.com/users/svwielga4/following{/other_user}","gists_url":"https://api.github.com/users/svwielga4/gists{/gist_id}","starred_url":"https://api.github.com/users/svwielga4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svwielga4/subscriptions","organizations_url":"https://api.github.com/users/svwielga4/orgs","repos_url":"https://api.github.com/users/svwielga4/repos","events_url":"https://api.github.com/users/svwielga4/events{/privacy}","received_events_url":"https://api.github.com/users/svwielga4/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-20T01:54:33Z","updated_at":"2016-02-25T00:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ead3f7e3924593f6ab5861cb8b149ad3738dbdb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/4/comments","statuses_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/statuses/a3f0a5bd39c5b46c8069d071e43d8adc178f7692","head":{"label":"shimoshi:master","ref":"master","sha":"a3f0a5bd39c5b46c8069d071e43d8adc178f7692","user":{"login":"shimoshi","id":11970288,"avatar_url":"https://avatars.githubusercontent.com/u/11970288?v=3","gravatar_id":"","url":"https://api.github.com/users/shimoshi","html_url":"https://github.com/shimoshi","followers_url":"https://api.github.com/users/shimoshi/followers","following_url":"https://api.github.com/users/shimoshi/following{/other_user}","gists_url":"https://api.github.com/users/shimoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/shimoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimoshi/subscriptions","organizations_url":"https://api.github.com/users/shimoshi/orgs","repos_url":"https://api.github.com/users/shimoshi/repos","events_url":"https://api.github.com/users/shimoshi/events{/privacy}","received_events_url":"https://api.github.com/users/shimoshi/received_events","type":"User","site_admin":false},"repo":{"id":52031666,"name":"C7_Hackathon","full_name":"shimoshi/C7_Hackathon","owner":{"login":"shimoshi","id":11970288,"avatar_url":"https://avatars.githubusercontent.com/u/11970288?v=3","gravatar_id":"","url":"https://api.github.com/users/shimoshi","html_url":"https://github.com/shimoshi","followers_url":"https://api.github.com/users/shimoshi/followers","following_url":"https://api.github.com/users/shimoshi/following{/other_user}","gists_url":"https://api.github.com/users/shimoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/shimoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimoshi/subscriptions","organizations_url":"https://api.github.com/users/shimoshi/orgs","repos_url":"https://api.github.com/users/shimoshi/repos","events_url":"https://api.github.com/users/shimoshi/events{/privacy}","received_events_url":"https://api.github.com/users/shimoshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shimoshi/C7_Hackathon","description":"Hackathon project involving the combination of different data sources into an application or game","fork":true,"url":"https://api.github.com/repos/shimoshi/C7_Hackathon","forks_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/forks","keys_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/teams","hooks_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/hooks","issue_events_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/events","assignees_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/tags","blobs_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/languages","stargazers_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/stargazers","contributors_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/contributors","subscribers_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/subscribers","subscription_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/subscription","commits_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/merges","archive_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/downloads","issues_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/labels{/name}","releases_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/releases{/id}","deployments_url":"https://api.github.com/repos/shimoshi/C7_Hackathon/deployments","created_at":"2016-02-18T19:12:04Z","updated_at":"2016-02-24T21:03:33Z","pushed_at":"2016-02-24T22:47:32Z","git_url":"git://github.com/shimoshi/C7_Hackathon.git","ssh_url":"git@github.com:shimoshi/C7_Hackathon.git","clone_url":"https://github.com/shimoshi/C7_Hackathon.git","svn_url":"https://github.com/shimoshi/C7_Hackathon","homepage":null,"size":1418,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Learning-Fuze:Team2_Final","ref":"Team2_Final","sha":"a93d2a7d85e5f02c4df9cae1610bcb85cb86b4d6","user":{"login":"Learning-Fuze","id":11446251,"avatar_url":"https://avatars.githubusercontent.com/u/11446251?v=3","gravatar_id":"","url":"https://api.github.com/users/Learning-Fuze","html_url":"https://github.com/Learning-Fuze","followers_url":"https://api.github.com/users/Learning-Fuze/followers","following_url":"https://api.github.com/users/Learning-Fuze/following{/other_user}","gists_url":"https://api.github.com/users/Learning-Fuze/gists{/gist_id}","starred_url":"https://api.github.com/users/Learning-Fuze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Learning-Fuze/subscriptions","organizations_url":"https://api.github.com/users/Learning-Fuze/orgs","repos_url":"https://api.github.com/users/Learning-Fuze/repos","events_url":"https://api.github.com/users/Learning-Fuze/events{/privacy}","received_events_url":"https://api.github.com/users/Learning-Fuze/received_events","type":"Organization","site_admin":false},"repo":{"id":52023793,"name":"C7_Hackathon","full_name":"Learning-Fuze/C7_Hackathon","owner":{"login":"Learning-Fuze","id":11446251,"avatar_url":"https://avatars.githubusercontent.com/u/11446251?v=3","gravatar_id":"","url":"https://api.github.com/users/Learning-Fuze","html_url":"https://github.com/Learning-Fuze","followers_url":"https://api.github.com/users/Learning-Fuze/followers","following_url":"https://api.github.com/users/Learning-Fuze/following{/other_user}","gists_url":"https://api.github.com/users/Learning-Fuze/gists{/gist_id}","starred_url":"https://api.github.com/users/Learning-Fuze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Learning-Fuze/subscriptions","organizations_url":"https://api.github.com/users/Learning-Fuze/orgs","repos_url":"https://api.github.com/users/Learning-Fuze/repos","events_url":"https://api.github.com/users/Learning-Fuze/events{/privacy}","received_events_url":"https://api.github.com/users/Learning-Fuze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Learning-Fuze/C7_Hackathon","description":"Hackathon project involving the combination of different data sources into an application or game","fork":false,"url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon","forks_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/forks","keys_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/teams","hooks_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/hooks","issue_events_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/events","assignees_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/tags","blobs_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/languages","stargazers_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/stargazers","contributors_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/contributors","subscribers_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/subscribers","subscription_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/subscription","commits_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/merges","archive_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/downloads","issues_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/labels{/name}","releases_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/releases{/id}","deployments_url":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/deployments","created_at":"2016-02-18T17:05:40Z","updated_at":"2016-02-18T17:05:40Z","pushed_at":"2016-02-24T21:04:53Z","git_url":"git://github.com/Learning-Fuze/C7_Hackathon.git","ssh_url":"git@github.com:Learning-Fuze/C7_Hackathon.git","clone_url":"https://github.com/Learning-Fuze/C7_Hackathon.git","svn_url":"https://github.com/Learning-Fuze/C7_Hackathon","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4"},"html":{"href":"https://github.com/Learning-Fuze/C7_Hackathon/pull/4"},"issue":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/4"},"comments":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Learning-Fuze/C7_Hackathon/statuses/a3f0a5bd39c5b46c8069d071e43d8adc178f7692"}}}}