{"action":"created","comment":{"url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments/38796136","id":38796136,"diff_hunk":"@@ -96,4 +118,15 @@ class ContributionDAO @Inject() (neo: Neo4J){\n     }\n   }\n \n+  /**\n+   * Parse multiple contributions and repos\n+   * @param response response from neo4j\n+   * @return map with each contribution from repo\n+   */\n+  def parseNeoContributions(response: WSResponse): Seq[(Repository,Contribution)] = {\n+      ((Json.parse(response.body) \\\\ \"row\")).map{\n+        case contribution => (contribution(0).as[Repository], contribution(1).as[Contribution])","path":"app/models/daos/ContributionDAO.scala","position":54,"original_position":54,"commit_id":"9c6ce36ec3461eb85815838b5a972a5456f20c2d","original_commit_id":"9c6ce36ec3461eb85815838b5a972a5456f20c2d","user":{"login":"brunnoattorre","id":5482242,"avatar_url":"https://avatars.githubusercontent.com/u/5482242?v=3","gravatar_id":"","url":"https://api.github.com/users/brunnoattorre","html_url":"https://github.com/brunnoattorre","followers_url":"https://api.github.com/users/brunnoattorre/followers","following_url":"https://api.github.com/users/brunnoattorre/following{/other_user}","gists_url":"https://api.github.com/users/brunnoattorre/gists{/gist_id}","starred_url":"https://api.github.com/users/brunnoattorre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunnoattorre/subscriptions","organizations_url":"https://api.github.com/users/brunnoattorre/orgs","repos_url":"https://api.github.com/users/brunnoattorre/repos","events_url":"https://api.github.com/users/brunnoattorre/events{/privacy}","received_events_url":"https://api.github.com/users/brunnoattorre/received_events","type":"User","site_admin":false},"body":"I didn't understand what you mean by single case. Each row will contain a tuple of (Repository,Contribution), so we are parsing each row and returning a Sequence of the tuples.\r\n ","created_at":"2015-09-04T21:33:28Z","updated_at":"2015-09-04T21:33:28Z","html_url":"https://github.com/gitlinks/gitrank-web/pull/51#discussion_r38796136","pull_request_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments/38796136"},"html":{"href":"https://github.com/gitlinks/gitrank-web/pull/51#discussion_r38796136"},"pull_request":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51","id":44240316,"html_url":"https://github.com/gitlinks/gitrank-web/pull/51","diff_url":"https://github.com/gitlinks/gitrank-web/pull/51.diff","patch_url":"https://github.com/gitlinks/gitrank-web/pull/51.patch","issue_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/51","number":51,"state":"open","locked":false,"title":"Brunno","user":{"login":"brunnoattorre","id":5482242,"avatar_url":"https://avatars.githubusercontent.com/u/5482242?v=3","gravatar_id":"","url":"https://api.github.com/users/brunnoattorre","html_url":"https://github.com/brunnoattorre","followers_url":"https://api.github.com/users/brunnoattorre/followers","following_url":"https://api.github.com/users/brunnoattorre/following{/other_user}","gists_url":"https://api.github.com/users/brunnoattorre/gists{/gist_id}","starred_url":"https://api.github.com/users/brunnoattorre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunnoattorre/subscriptions","organizations_url":"https://api.github.com/users/brunnoattorre/orgs","repos_url":"https://api.github.com/users/brunnoattorre/repos","events_url":"https://api.github.com/users/brunnoattorre/events{/privacy}","received_events_url":"https://api.github.com/users/brunnoattorre/received_events","type":"User","site_admin":false},"body":"New pull request with conflicts resolved + code review from @callicles ","created_at":"2015-09-04T17:07:07Z","updated_at":"2015-09-04T21:33:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af19c27bb0c5034bdb9e486027cbf3b3e81c0b1e","assignee":{"login":"callicles","id":4429209,"avatar_url":"https://avatars.githubusercontent.com/u/4429209?v=3","gravatar_id":"","url":"https://api.github.com/users/callicles","html_url":"https://github.com/callicles","followers_url":"https://api.github.com/users/callicles/followers","following_url":"https://api.github.com/users/callicles/following{/other_user}","gists_url":"https://api.github.com/users/callicles/gists{/gist_id}","starred_url":"https://api.github.com/users/callicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callicles/subscriptions","organizations_url":"https://api.github.com/users/callicles/orgs","repos_url":"https://api.github.com/users/callicles/repos","events_url":"https://api.github.com/users/callicles/events{/privacy}","received_events_url":"https://api.github.com/users/callicles/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51/commits","review_comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51/comments","review_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/51/comments","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/9c6ce36ec3461eb85815838b5a972a5456f20c2d","head":{"label":"gitlinks:brunno","ref":"brunno","sha":"9c6ce36ec3461eb85815838b5a972a5456f20c2d","user":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"repo":{"id":36321709,"name":"gitrank-web","full_name":"gitlinks/gitrank-web","owner":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlinks/gitrank-web","description":"Web Play/Scala application delivery gitrank frontend.","fork":false,"url":"https://api.github.com/repos/gitlinks/gitrank-web","forks_url":"https://api.github.com/repos/gitlinks/gitrank-web/forks","keys_url":"https://api.github.com/repos/gitlinks/gitrank-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlinks/gitrank-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlinks/gitrank-web/teams","hooks_url":"https://api.github.com/repos/gitlinks/gitrank-web/hooks","issue_events_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/events{/number}","events_url":"https://api.github.com/repos/gitlinks/gitrank-web/events","assignees_url":"https://api.github.com/repos/gitlinks/gitrank-web/assignees{/user}","branches_url":"https://api.github.com/repos/gitlinks/gitrank-web/branches{/branch}","tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/tags","blobs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlinks/gitrank-web/languages","stargazers_url":"https://api.github.com/repos/gitlinks/gitrank-web/stargazers","contributors_url":"https://api.github.com/repos/gitlinks/gitrank-web/contributors","subscribers_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscribers","subscription_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscription","commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitlinks/gitrank-web/contents/{+path}","compare_url":"https://api.github.com/repos/gitlinks/gitrank-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlinks/gitrank-web/merges","archive_url":"https://api.github.com/repos/gitlinks/gitrank-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlinks/gitrank-web/downloads","issues_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues{/number}","pulls_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlinks/gitrank-web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlinks/gitrank-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlinks/gitrank-web/labels{/name}","releases_url":"https://api.github.com/repos/gitlinks/gitrank-web/releases{/id}","created_at":"2015-05-26T20:25:21Z","updated_at":"2015-08-05T11:50:36Z","pushed_at":"2015-09-04T17:07:07Z","git_url":"git://github.com/gitlinks/gitrank-web.git","ssh_url":"git@github.com:gitlinks/gitrank-web.git","clone_url":"https://github.com/gitlinks/gitrank-web.git","svn_url":"https://github.com/gitlinks/gitrank-web","homepage":null,"size":2464,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":24,"forks":2,"open_issues":24,"watchers":4,"default_branch":"master"}},"base":{"label":"gitlinks:develop","ref":"develop","sha":"eb6a5406f714f0edce0f3e354106f9df39ae161f","user":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"repo":{"id":36321709,"name":"gitrank-web","full_name":"gitlinks/gitrank-web","owner":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlinks/gitrank-web","description":"Web Play/Scala application delivery gitrank frontend.","fork":false,"url":"https://api.github.com/repos/gitlinks/gitrank-web","forks_url":"https://api.github.com/repos/gitlinks/gitrank-web/forks","keys_url":"https://api.github.com/repos/gitlinks/gitrank-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlinks/gitrank-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlinks/gitrank-web/teams","hooks_url":"https://api.github.com/repos/gitlinks/gitrank-web/hooks","issue_events_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/events{/number}","events_url":"https://api.github.com/repos/gitlinks/gitrank-web/events","assignees_url":"https://api.github.com/repos/gitlinks/gitrank-web/assignees{/user}","branches_url":"https://api.github.com/repos/gitlinks/gitrank-web/branches{/branch}","tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/tags","blobs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlinks/gitrank-web/languages","stargazers_url":"https://api.github.com/repos/gitlinks/gitrank-web/stargazers","contributors_url":"https://api.github.com/repos/gitlinks/gitrank-web/contributors","subscribers_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscribers","subscription_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscription","commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitlinks/gitrank-web/contents/{+path}","compare_url":"https://api.github.com/repos/gitlinks/gitrank-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlinks/gitrank-web/merges","archive_url":"https://api.github.com/repos/gitlinks/gitrank-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlinks/gitrank-web/downloads","issues_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues{/number}","pulls_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlinks/gitrank-web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlinks/gitrank-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlinks/gitrank-web/labels{/name}","releases_url":"https://api.github.com/repos/gitlinks/gitrank-web/releases{/id}","created_at":"2015-05-26T20:25:21Z","updated_at":"2015-08-05T11:50:36Z","pushed_at":"2015-09-04T17:07:07Z","git_url":"git://github.com/gitlinks/gitrank-web.git","ssh_url":"git@github.com:gitlinks/gitrank-web.git","clone_url":"https://github.com/gitlinks/gitrank-web.git","svn_url":"https://github.com/gitlinks/gitrank-web","homepage":null,"size":2464,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":24,"forks":2,"open_issues":24,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51"},"html":{"href":"https://github.com/gitlinks/gitrank-web/pull/51"},"issue":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/issues/51"},"comments":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/9c6ce36ec3461eb85815838b5a972a5456f20c2d"}}}}