{"action":"created","comment":{"url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments/74742733","id":74742733,"diff_hunk":"@@ -50,6 +70,26 @@ function updateLikeCount(id) {\n         console.log(message);\n \n     }).done(function(likeCount) {\n-        $(\"#\" + id + \" .num-likes\").text(likeCount);\n+        $(\"#tracks #\" + id + \" .num-likes\").text(likeCount);\n+    });\n+}\n+\n+/**\n+ * Retrieves tracks recommended for the current user.\n+ */\n+function displayRecommendedTracks() {\n+    $.ajax({\n+        type: \"GET\",\n+        url: \"/tracks/recommended\",\n+        dataType: \"json\"\n+\n+    }).fail(function (xhr, status, errorThrown) {\n+        var message = status + \": \" + xhr.status + \" \" + errorThrown;\n+        console.log(message);\n+\n+    }).done(function (tracks) {\n+        $.each(tracks, function (i, track) {\n+            addRecommendedTrack(track);","path":"application/src/main/webapp/resources/js/main.js","position":51,"original_position":51,"commit_id":"62572f900744839f7ed75d8399d0460ac4aad583","original_commit_id":"62572f900744839f7ed75d8399d0460ac4aad583","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['addRecommendedTrack' is not defined. (no-undef)](https://www.codacy.com/app/music_for_all/music-for-all-application/file/3299974594/issues/source?bid=3379442&fileBranchId=3570495#l92)","created_at":"2016-08-15T10:13:26Z","updated_at":"2016-08-15T10:13:26Z","html_url":"https://github.com/music-for-all/music-for-all-application/pull/64#discussion_r74742733","pull_request_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments/74742733"},"html":{"href":"https://github.com/music-for-all/music-for-all-application/pull/64#discussion_r74742733"},"pull_request":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64","id":81292115,"html_url":"https://github.com/music-for-all/music-for-all-application/pull/64","diff_url":"https://github.com/music-for-all/music-for-all-application/pull/64.diff","patch_url":"https://github.com/music-for-all/music-for-all-application/pull/64.patch","issue_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/64","number":64,"state":"open","locked":false,"title":"Recommendations","user":{"login":"excaliware","id":11667030,"avatar_url":"https://avatars.githubusercontent.com/u/11667030?v=3","gravatar_id":"","url":"https://api.github.com/users/excaliware","html_url":"https://github.com/excaliware","followers_url":"https://api.github.com/users/excaliware/followers","following_url":"https://api.github.com/users/excaliware/following{/other_user}","gists_url":"https://api.github.com/users/excaliware/gists{/gist_id}","starred_url":"https://api.github.com/users/excaliware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excaliware/subscriptions","organizations_url":"https://api.github.com/users/excaliware/orgs","repos_url":"https://api.github.com/users/excaliware/repos","events_url":"https://api.github.com/users/excaliware/events{/privacy}","received_events_url":"https://api.github.com/users/excaliware/received_events","type":"User","site_admin":false},"body":"Getting recommendations on what track to listen based on the preferences of the users you are following.","created_at":"2016-08-15T09:59:24Z","updated_at":"2016-08-15T10:13:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0771e2220d076e296e691da48d3abab254eb310","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64/commits","review_comments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64/comments","review_comment_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments{/number}","comments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/64/comments","statuses_url":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/62572f900744839f7ed75d8399d0460ac4aad583","head":{"label":"music-for-all:recommendations","ref":"recommendations","sha":"62572f900744839f7ed75d8399d0460ac4aad583","user":{"login":"music-for-all","id":19793146,"avatar_url":"https://avatars.githubusercontent.com/u/19793146?v=3","gravatar_id":"","url":"https://api.github.com/users/music-for-all","html_url":"https://github.com/music-for-all","followers_url":"https://api.github.com/users/music-for-all/followers","following_url":"https://api.github.com/users/music-for-all/following{/other_user}","gists_url":"https://api.github.com/users/music-for-all/gists{/gist_id}","starred_url":"https://api.github.com/users/music-for-all/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/music-for-all/subscriptions","organizations_url":"https://api.github.com/users/music-for-all/orgs","repos_url":"https://api.github.com/users/music-for-all/repos","events_url":"https://api.github.com/users/music-for-all/events{/privacy}","received_events_url":"https://api.github.com/users/music-for-all/received_events","type":"Organization","site_admin":false},"repo":{"id":60590888,"name":"music-for-all-application","full_name":"music-for-all/music-for-all-application","owner":{"login":"music-for-all","id":19793146,"avatar_url":"https://avatars.githubusercontent.com/u/19793146?v=3","gravatar_id":"","url":"https://api.github.com/users/music-for-all","html_url":"https://github.com/music-for-all","followers_url":"https://api.github.com/users/music-for-all/followers","following_url":"https://api.github.com/users/music-for-all/following{/other_user}","gists_url":"https://api.github.com/users/music-for-all/gists{/gist_id}","starred_url":"https://api.github.com/users/music-for-all/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/music-for-all/subscriptions","organizations_url":"https://api.github.com/users/music-for-all/orgs","repos_url":"https://api.github.com/users/music-for-all/repos","events_url":"https://api.github.com/users/music-for-all/events{/privacy}","received_events_url":"https://api.github.com/users/music-for-all/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/music-for-all/music-for-all-application","description":"","fork":false,"url":"https://api.github.com/repos/music-for-all/music-for-all-application","forks_url":"https://api.github.com/repos/music-for-all/music-for-all-application/forks","keys_url":"https://api.github.com/repos/music-for-all/music-for-all-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/music-for-all/music-for-all-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/music-for-all/music-for-all-application/teams","hooks_url":"https://api.github.com/repos/music-for-all/music-for-all-application/hooks","issue_events_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/events{/number}","events_url":"https://api.github.com/repos/music-for-all/music-for-all-application/events","assignees_url":"https://api.github.com/repos/music-for-all/music-for-all-application/assignees{/user}","branches_url":"https://api.github.com/repos/music-for-all/music-for-all-application/branches{/branch}","tags_url":"https://api.github.com/repos/music-for-all/music-for-all-application/tags","blobs_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/{sha}","languages_url":"https://api.github.com/repos/music-for-all/music-for-all-application/languages","stargazers_url":"https://api.github.com/repos/music-for-all/music-for-all-application/stargazers","contributors_url":"https://api.github.com/repos/music-for-all/music-for-all-application/contributors","subscribers_url":"https://api.github.com/repos/music-for-all/music-for-all-application/subscribers","subscription_url":"https://api.github.com/repos/music-for-all/music-for-all-application/subscription","commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/music-for-all/music-for-all-application/contents/{+path}","compare_url":"https://api.github.com/repos/music-for-all/music-for-all-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/music-for-all/music-for-all-application/merges","archive_url":"https://api.github.com/repos/music-for-all/music-for-all-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/music-for-all/music-for-all-application/downloads","issues_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues{/number}","pulls_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls{/number}","milestones_url":"https://api.github.com/repos/music-for-all/music-for-all-application/milestones{/number}","notifications_url":"https://api.github.com/repos/music-for-all/music-for-all-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/music-for-all/music-for-all-application/labels{/name}","releases_url":"https://api.github.com/repos/music-for-all/music-for-all-application/releases{/id}","deployments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/deployments","created_at":"2016-06-07T07:13:41Z","updated_at":"2016-08-13T09:33:55Z","pushed_at":"2016-08-15T09:59:24Z","git_url":"git://github.com/music-for-all/music-for-all-application.git","ssh_url":"git@github.com:music-for-all/music-for-all-application.git","clone_url":"https://github.com/music-for-all/music-for-all-application.git","svn_url":"https://github.com/music-for-all/music-for-all-application","homepage":null,"size":19893,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"music-for-all:master","ref":"master","sha":"85ebb9e4a7f7988bf037649d0c6cb83356a33048","user":{"login":"music-for-all","id":19793146,"avatar_url":"https://avatars.githubusercontent.com/u/19793146?v=3","gravatar_id":"","url":"https://api.github.com/users/music-for-all","html_url":"https://github.com/music-for-all","followers_url":"https://api.github.com/users/music-for-all/followers","following_url":"https://api.github.com/users/music-for-all/following{/other_user}","gists_url":"https://api.github.com/users/music-for-all/gists{/gist_id}","starred_url":"https://api.github.com/users/music-for-all/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/music-for-all/subscriptions","organizations_url":"https://api.github.com/users/music-for-all/orgs","repos_url":"https://api.github.com/users/music-for-all/repos","events_url":"https://api.github.com/users/music-for-all/events{/privacy}","received_events_url":"https://api.github.com/users/music-for-all/received_events","type":"Organization","site_admin":false},"repo":{"id":60590888,"name":"music-for-all-application","full_name":"music-for-all/music-for-all-application","owner":{"login":"music-for-all","id":19793146,"avatar_url":"https://avatars.githubusercontent.com/u/19793146?v=3","gravatar_id":"","url":"https://api.github.com/users/music-for-all","html_url":"https://github.com/music-for-all","followers_url":"https://api.github.com/users/music-for-all/followers","following_url":"https://api.github.com/users/music-for-all/following{/other_user}","gists_url":"https://api.github.com/users/music-for-all/gists{/gist_id}","starred_url":"https://api.github.com/users/music-for-all/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/music-for-all/subscriptions","organizations_url":"https://api.github.com/users/music-for-all/orgs","repos_url":"https://api.github.com/users/music-for-all/repos","events_url":"https://api.github.com/users/music-for-all/events{/privacy}","received_events_url":"https://api.github.com/users/music-for-all/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/music-for-all/music-for-all-application","description":"","fork":false,"url":"https://api.github.com/repos/music-for-all/music-for-all-application","forks_url":"https://api.github.com/repos/music-for-all/music-for-all-application/forks","keys_url":"https://api.github.com/repos/music-for-all/music-for-all-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/music-for-all/music-for-all-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/music-for-all/music-for-all-application/teams","hooks_url":"https://api.github.com/repos/music-for-all/music-for-all-application/hooks","issue_events_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/events{/number}","events_url":"https://api.github.com/repos/music-for-all/music-for-all-application/events","assignees_url":"https://api.github.com/repos/music-for-all/music-for-all-application/assignees{/user}","branches_url":"https://api.github.com/repos/music-for-all/music-for-all-application/branches{/branch}","tags_url":"https://api.github.com/repos/music-for-all/music-for-all-application/tags","blobs_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/{sha}","languages_url":"https://api.github.com/repos/music-for-all/music-for-all-application/languages","stargazers_url":"https://api.github.com/repos/music-for-all/music-for-all-application/stargazers","contributors_url":"https://api.github.com/repos/music-for-all/music-for-all-application/contributors","subscribers_url":"https://api.github.com/repos/music-for-all/music-for-all-application/subscribers","subscription_url":"https://api.github.com/repos/music-for-all/music-for-all-application/subscription","commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/music-for-all/music-for-all-application/contents/{+path}","compare_url":"https://api.github.com/repos/music-for-all/music-for-all-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/music-for-all/music-for-all-application/merges","archive_url":"https://api.github.com/repos/music-for-all/music-for-all-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/music-for-all/music-for-all-application/downloads","issues_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues{/number}","pulls_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls{/number}","milestones_url":"https://api.github.com/repos/music-for-all/music-for-all-application/milestones{/number}","notifications_url":"https://api.github.com/repos/music-for-all/music-for-all-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/music-for-all/music-for-all-application/labels{/name}","releases_url":"https://api.github.com/repos/music-for-all/music-for-all-application/releases{/id}","deployments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/deployments","created_at":"2016-06-07T07:13:41Z","updated_at":"2016-08-13T09:33:55Z","pushed_at":"2016-08-15T09:59:24Z","git_url":"git://github.com/music-for-all/music-for-all-application.git","ssh_url":"git@github.com:music-for-all/music-for-all-application.git","clone_url":"https://github.com/music-for-all/music-for-all-application.git","svn_url":"https://github.com/music-for-all/music-for-all-application","homepage":null,"size":19893,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64"},"html":{"href":"https://github.com/music-for-all/music-for-all-application/pull/64"},"issue":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/64"},"comments":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/62572f900744839f7ed75d8399d0460ac4aad583"}}}}
{"actor":{"display_login":"codacy-bot"}}