{"action":"created","comment":{"url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments/77472660","id":77472660,"diff_hunk":"@@ -0,0 +1,88 @@\n+package com.musicforall.services.feed;\n+\n+import com.musicforall.history.model.History;\n+import com.musicforall.history.service.history.HistoryService;\n+import com.musicforall.model.Playlist;\n+import com.musicforall.model.Track;\n+import com.musicforall.model.User;\n+import com.musicforall.services.follower.FollowerService;\n+import com.musicforall.services.playlist.PlaylistService;\n+import com.musicforall.services.track.TrackService;\n+import com.musicforall.services.user.UserService;\n+import com.musicforall.util.FeedUtil;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Service;\n+import org.springframework.transaction.annotation.Transactional;\n+\n+import java.util.*;\n+import java.util.stream.Collectors;\n+\n+/**\n+ * @author IliaNik on 02.09.2016.\n+ */\n+\n+@Service(\"feedService\")\n+@Transactional\n+public class FeedServiceImpl implements FeedService {\n+\n+    @Autowired\n+    private FollowerService followerService;\n+\n+    @Autowired\n+    private HistoryService historyService;\n+\n+    @Autowired\n+    private UserService userService;\n+\n+    @Autowired\n+    private TrackService trackService;\n+\n+    @Autowired\n+    private PlaylistService playlistService;\n+\n+","path":"application/src/main/java/com/musicforall/services/feed/FeedServiceImpl.java","position":43,"original_position":43,"commit_id":"59b74873c4aa82c1336627525d9b05d5a32ebf83","original_commit_id":"59b74873c4aa82c1336627525d9b05d5a32ebf83","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: [Local variable 'playlist_ids' could be declared final](https://www.codacy.com/app/music_for_all/music-for-all-application/file/3749168831/issues/source?bid=3379442&fileBranchId=3644397#l49)","created_at":"2016-09-05T05:50:45Z","updated_at":"2016-09-05T05:50:45Z","html_url":"https://github.com/music-for-all/music-for-all-application/pull/74#discussion_r77472660","pull_request_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/comments/77472660"},"html":{"href":"https://github.com/music-for-all/music-for-all-application/pull/74#discussion_r77472660"},"pull_request":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74","id":83068757,"html_url":"https://github.com/music-for-all/music-for-all-application/pull/74","diff_url":"https://github.com/music-for-all/music-for-all-application/pull/74.diff","patch_url":"https://github.com/music-for-all/music-for-all-application/pull/74.patch","issue_url":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/74","number":74,"state":"open","locked":false,"title":"Follower page","user":{"login":"IliaNik","id":19759303,"avatar_url":"https://avatars.githubusercontent.com/u/19759303?v=3","gravatar_id":"","url":"https://api.github.com/users/IliaNik","html_url":"https://github.com/IliaNik","followers_url":"https://api.github.com/users/IliaNik/followers","following_url":"https://api.github.com/users/IliaNik/following{/other_user}","gists_url":"https://api.github.com/users/IliaNik/gists{/gist_id}","starred_url":"https://api.github.com/users/IliaNik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IliaNik/subscriptions","organizations_url":"https://api.github.com/users/IliaNik/orgs","repos_url":"https://api.github.com/users/IliaNik/repos","events_url":"https://api.github.com/users/IliaNik/events{/privacy}","received_events_url":"https://api.github.com/users/IliaNik/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-29T09:20:59Z","updated_at":"2016-09-05T05:50:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4b2a698f0e1fcc9ae588971d0458aa89f93bf0b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74/commits","review_comments_url":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74/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/74/comments","statuses_url":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/59b74873c4aa82c1336627525d9b05d5a32ebf83","head":{"label":"music-for-all:follower_page","ref":"follower_page","sha":"59b74873c4aa82c1336627525d9b05d5a32ebf83","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-09-05T05:40:53Z","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":20311,"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":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"music-for-all:master","ref":"master","sha":"318b80d85d0d7e5390158ebed9abf8c81523c6e1","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-09-05T05:40:53Z","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":20311,"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":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74"},"html":{"href":"https://github.com/music-for-all/music-for-all-application/pull/74"},"issue":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/74"},"comments":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/pulls/74/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/74/commits"},"statuses":{"href":"https://api.github.com/repos/music-for-all/music-for-all-application/statuses/59b74873c4aa82c1336627525d9b05d5a32ebf83"}}}}
{"actor":{"display_login":"codacy-bot"}}