{"action":"created","comment":{"url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/comments/62257687","id":62257687,"diff_hunk":"@@ -35,19 +35,27 @@ public void generateReposStatisticsReport() throws IOException {\n \t\tfor (String repo : repos) {\n \t\t\tString repoName = getRepoNameFromCvsLine(repo);\n \t\t\tint lines = getLinesNumberByRepo(repoName);\n-\t\t\treposInformation.add(new GithubRepository(repoName, lines));\n+\t\t\tint files = getFilesByRepository(repoName);\n+\t\t\treposInformation.add(new GithubRepository(repoName, lines, files));\n \t\t}\n \t\texportReportAsCsv(\"Repositories Report\");\n \t\tSystem.exit(0);\n \t}\n \t\n+\tprivate int getFilesByRepository(String repoName) throws IOException {","path":"src/main/java/co/com/psl/service/ReportGenerator.java","position":12,"original_position":12,"commit_id":"ba95247a0d1cbd00ae3f86b59e7a4e248b3135ff","original_commit_id":"ba95247a0d1cbd00ae3f86b59e7a4e248b3135ff","user":{"login":"aperdomob","id":17033942,"avatar_url":"https://avatars.githubusercontent.com/u/17033942?v=3","gravatar_id":"","url":"https://api.github.com/users/aperdomob","html_url":"https://github.com/aperdomob","followers_url":"https://api.github.com/users/aperdomob/followers","following_url":"https://api.github.com/users/aperdomob/following{/other_user}","gists_url":"https://api.github.com/users/aperdomob/gists{/gist_id}","starred_url":"https://api.github.com/users/aperdomob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperdomob/subscriptions","organizations_url":"https://api.github.com/users/aperdomob/orgs","repos_url":"https://api.github.com/users/aperdomob/repos","events_url":"https://api.github.com/users/aperdomob/events{/privacy}","received_events_url":"https://api.github.com/users/aperdomob/received_events","type":"User","site_admin":false},"body":"repoName => name/repositoryName","created_at":"2016-05-05T21:23:36Z","updated_at":"2016-05-05T21:23:36Z","html_url":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2#discussion_r62257687","pull_request_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/comments/62257687"},"html":{"href":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2#discussion_r62257687"},"pull_request":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2","id":69071029,"html_url":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2","diff_url":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2.diff","patch_url":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2.patch","issue_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/2","number":2,"state":"open","locked":false,"title":"now read the number of files for each repo.","user":{"login":"jhenaoz","id":2055110,"avatar_url":"https://avatars.githubusercontent.com/u/2055110?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenaoz","html_url":"https://github.com/jhenaoz","followers_url":"https://api.github.com/users/jhenaoz/followers","following_url":"https://api.github.com/users/jhenaoz/following{/other_user}","gists_url":"https://api.github.com/users/jhenaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenaoz/subscriptions","organizations_url":"https://api.github.com/users/jhenaoz/orgs","repos_url":"https://api.github.com/users/jhenaoz/repos","events_url":"https://api.github.com/users/jhenaoz/events{/privacy}","received_events_url":"https://api.github.com/users/jhenaoz/received_events","type":"User","site_admin":false},"body":"adding support to number of files for each repo","created_at":"2016-05-05T21:09:37Z","updated_at":"2016-05-05T21:23:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82a7f5caa42a974a6aa5b9b6793cd44dc4a759ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/2/comments","statuses_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/statuses/ba95247a0d1cbd00ae3f86b59e7a4e248b3135ff","head":{"label":"jhenaoz:feature/read-write-cvs","ref":"feature/read-write-cvs","sha":"ba95247a0d1cbd00ae3f86b59e7a4e248b3135ff","user":{"login":"jhenaoz","id":2055110,"avatar_url":"https://avatars.githubusercontent.com/u/2055110?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenaoz","html_url":"https://github.com/jhenaoz","followers_url":"https://api.github.com/users/jhenaoz/followers","following_url":"https://api.github.com/users/jhenaoz/following{/other_user}","gists_url":"https://api.github.com/users/jhenaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenaoz/subscriptions","organizations_url":"https://api.github.com/users/jhenaoz/orgs","repos_url":"https://api.github.com/users/jhenaoz/repos","events_url":"https://api.github.com/users/jhenaoz/events{/privacy}","received_events_url":"https://api.github.com/users/jhenaoz/received_events","type":"User","site_admin":false},"repo":{"id":58085713,"name":"Github-Lines-Number-Example","full_name":"jhenaoz/Github-Lines-Number-Example","owner":{"login":"jhenaoz","id":2055110,"avatar_url":"https://avatars.githubusercontent.com/u/2055110?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenaoz","html_url":"https://github.com/jhenaoz","followers_url":"https://api.github.com/users/jhenaoz/followers","following_url":"https://api.github.com/users/jhenaoz/following{/other_user}","gists_url":"https://api.github.com/users/jhenaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenaoz/subscriptions","organizations_url":"https://api.github.com/users/jhenaoz/orgs","repos_url":"https://api.github.com/users/jhenaoz/repos","events_url":"https://api.github.com/users/jhenaoz/events{/privacy}","received_events_url":"https://api.github.com/users/jhenaoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhenaoz/Github-Lines-Number-Example","description":"This is a repo for get the number of lines of a project in github based on the master branch or the default one.","fork":false,"url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example","forks_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/forks","keys_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/teams","hooks_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/hooks","issue_events_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/events{/number}","events_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/events","assignees_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/assignees{/user}","branches_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/branches{/branch}","tags_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/tags","blobs_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/statuses/{sha}","languages_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/languages","stargazers_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/stargazers","contributors_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/contributors","subscribers_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/subscribers","subscription_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/subscription","commits_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/contents/{+path}","compare_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/merges","archive_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/downloads","issues_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues{/number}","pulls_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls{/number}","milestones_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/milestones{/number}","notifications_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/labels{/name}","releases_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/releases{/id}","deployments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/deployments","created_at":"2016-05-04T21:39:29Z","updated_at":"2016-05-04T21:41:28Z","pushed_at":"2016-05-05T21:09:37Z","git_url":"git://github.com/jhenaoz/Github-Lines-Number-Example.git","ssh_url":"git@github.com:jhenaoz/Github-Lines-Number-Example.git","clone_url":"https://github.com/jhenaoz/Github-Lines-Number-Example.git","svn_url":"https://github.com/jhenaoz/Github-Lines-Number-Example","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"jhenaoz:master","ref":"master","sha":"4e487230d6dfb89016b2e4c4d9f887342463cc83","user":{"login":"jhenaoz","id":2055110,"avatar_url":"https://avatars.githubusercontent.com/u/2055110?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenaoz","html_url":"https://github.com/jhenaoz","followers_url":"https://api.github.com/users/jhenaoz/followers","following_url":"https://api.github.com/users/jhenaoz/following{/other_user}","gists_url":"https://api.github.com/users/jhenaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenaoz/subscriptions","organizations_url":"https://api.github.com/users/jhenaoz/orgs","repos_url":"https://api.github.com/users/jhenaoz/repos","events_url":"https://api.github.com/users/jhenaoz/events{/privacy}","received_events_url":"https://api.github.com/users/jhenaoz/received_events","type":"User","site_admin":false},"repo":{"id":58085713,"name":"Github-Lines-Number-Example","full_name":"jhenaoz/Github-Lines-Number-Example","owner":{"login":"jhenaoz","id":2055110,"avatar_url":"https://avatars.githubusercontent.com/u/2055110?v=3","gravatar_id":"","url":"https://api.github.com/users/jhenaoz","html_url":"https://github.com/jhenaoz","followers_url":"https://api.github.com/users/jhenaoz/followers","following_url":"https://api.github.com/users/jhenaoz/following{/other_user}","gists_url":"https://api.github.com/users/jhenaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jhenaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhenaoz/subscriptions","organizations_url":"https://api.github.com/users/jhenaoz/orgs","repos_url":"https://api.github.com/users/jhenaoz/repos","events_url":"https://api.github.com/users/jhenaoz/events{/privacy}","received_events_url":"https://api.github.com/users/jhenaoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhenaoz/Github-Lines-Number-Example","description":"This is a repo for get the number of lines of a project in github based on the master branch or the default one.","fork":false,"url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example","forks_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/forks","keys_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/teams","hooks_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/hooks","issue_events_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/events{/number}","events_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/events","assignees_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/assignees{/user}","branches_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/branches{/branch}","tags_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/tags","blobs_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/statuses/{sha}","languages_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/languages","stargazers_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/stargazers","contributors_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/contributors","subscribers_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/subscribers","subscription_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/subscription","commits_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/contents/{+path}","compare_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/merges","archive_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/downloads","issues_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues{/number}","pulls_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls{/number}","milestones_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/milestones{/number}","notifications_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/labels{/name}","releases_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/releases{/id}","deployments_url":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/deployments","created_at":"2016-05-04T21:39:29Z","updated_at":"2016-05-04T21:41:28Z","pushed_at":"2016-05-05T21:09:37Z","git_url":"git://github.com/jhenaoz/Github-Lines-Number-Example.git","ssh_url":"git@github.com:jhenaoz/Github-Lines-Number-Example.git","clone_url":"https://github.com/jhenaoz/Github-Lines-Number-Example.git","svn_url":"https://github.com/jhenaoz/Github-Lines-Number-Example","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"Java","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/jhenaoz/Github-Lines-Number-Example/pulls/2"},"html":{"href":"https://github.com/jhenaoz/Github-Lines-Number-Example/pull/2"},"issue":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/2"},"comments":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jhenaoz/Github-Lines-Number-Example/statuses/ba95247a0d1cbd00ae3f86b59e7a4e248b3135ff"}}}}