{"action":"created","comment":{"url":"https://api.github.com/repos/bhuwang/java_training/pulls/comments/37606970","id":37606970,"diff_hunk":"@@ -0,0 +1,34 @@\n+package com.lftechnology.java.training.alina.basic.gameleague;\n+\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+\n+/**\n+ * Class GameLeagueScores shows the number of scores of wins, draws, defeats\n+ * \n+ * @author Alina Shakya <alinashakya@lftechnology.com>\n+ */\n+public class GameLeagueScores {\n+\tprivate static final Logger LOGGER = Logger\n+\t\t\t.getLogger(GameLeagueScores.class.getName());\n+\tprivate static String getScores = null;\n+\n+\tpublic static void main(String[] args) {\n+\t\ttry {\n+\t\t\tString results = \"Manchester United 1 Chelsea 0,\"\n+\t\t\t\t\t+ \" Arsenal 1 Manchester United 1,\"\n+\t\t\t\t\t+ \" Manchester United 3 Fulham 1,\"\n+\t\t\t\t\t+ \" Liverpool 2 Manchester United 1,\"\n+\t\t\t\t\t+ \" Swansea 2 Manchester United 4\";\n+\t\t\tString resultSet[] = results.split(\",\");\n+\t\t\tGameInfo game = new GameInfo();\n+\t\t\tfor (int i = 0; i < resultSet.length; i++) {\n+\t\t\t\tgetScores = game.getGameScores(resultSet[i].trim());\n+\t\t\t}\n+\t\t\tLOGGER.log(Level.INFO, \"Game Scores of Manchester United : {0}\",\n+\t\t\t\t\tnew Object[] { getScores });\n+\t\t} catch (Exception e) {","path":"src/com/lftechnology/java/training/alina/basic/gameleague/GameLeagueScores.java","position":30,"original_position":30,"commit_id":"1a09d456d6ad38af6843439b38f4482c5d0ce43d","original_commit_id":"1a09d456d6ad38af6843439b38f4482c5d0ce43d","user":{"login":"bhuwang","id":3335673,"avatar_url":"https://avatars.githubusercontent.com/u/3335673?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuwang","html_url":"https://github.com/bhuwang","followers_url":"https://api.github.com/users/bhuwang/followers","following_url":"https://api.github.com/users/bhuwang/following{/other_user}","gists_url":"https://api.github.com/users/bhuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuwang/subscriptions","organizations_url":"https://api.github.com/users/bhuwang/orgs","repos_url":"https://api.github.com/users/bhuwang/repos","events_url":"https://api.github.com/users/bhuwang/events{/privacy}","received_events_url":"https://api.github.com/users/bhuwang/received_events","type":"User","site_admin":false},"body":"![CRITICAL](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-critical.png) Either log or rethrow this exception. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1166)\n","created_at":"2015-08-21T05:07:21Z","updated_at":"2015-08-21T05:07:21Z","html_url":"https://github.com/bhuwang/java_training/pull/78#discussion_r37606970","pull_request_url":"https://api.github.com/repos/bhuwang/java_training/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/comments/37606970"},"html":{"href":"https://github.com/bhuwang/java_training/pull/78#discussion_r37606970"},"pull_request":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/bhuwang/java_training/pulls/78","id":43004521,"html_url":"https://github.com/bhuwang/java_training/pull/78","diff_url":"https://github.com/bhuwang/java_training/pull/78.diff","patch_url":"https://github.com/bhuwang/java_training/pull/78.patch","issue_url":"https://api.github.com/repos/bhuwang/java_training/issues/78","number":78,"state":"open","locked":false,"title":"#33 -  functionality added to calculate scores of Manchester United in different matches","user":{"login":"alinashakya","id":3805343,"avatar_url":"https://avatars.githubusercontent.com/u/3805343?v=3","gravatar_id":"","url":"https://api.github.com/users/alinashakya","html_url":"https://github.com/alinashakya","followers_url":"https://api.github.com/users/alinashakya/followers","following_url":"https://api.github.com/users/alinashakya/following{/other_user}","gists_url":"https://api.github.com/users/alinashakya/gists{/gist_id}","starred_url":"https://api.github.com/users/alinashakya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinashakya/subscriptions","organizations_url":"https://api.github.com/users/alinashakya/orgs","repos_url":"https://api.github.com/users/alinashakya/repos","events_url":"https://api.github.com/users/alinashakya/events{/privacy}","received_events_url":"https://api.github.com/users/alinashakya/received_events","type":"User","site_admin":false},"body":"- Adds functionality to calculate the game scores of Manchester United in different games.\r\n- Displays follows details of Manchester United : \r\n     No. of wins = 3\r\n     No. of draws = 1\r\n     No. of defeats = 1\r\n     Goal Scored = 10\r\n     Goal Conceded = 6\r\n     No. of points = 10\r\n\r\nPlease review these codes.","created_at":"2015-08-21T05:06:25Z","updated_at":"2015-08-21T05:07:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cff38bc4fd45d021c82ef44d8bc8736d0d16edc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bhuwang/java_training/pulls/78/commits","review_comments_url":"https://api.github.com/repos/bhuwang/java_training/pulls/78/comments","review_comment_url":"https://api.github.com/repos/bhuwang/java_training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bhuwang/java_training/issues/78/comments","statuses_url":"https://api.github.com/repos/bhuwang/java_training/statuses/1a09d456d6ad38af6843439b38f4482c5d0ce43d","head":{"label":"bhuwang:33_Alina","ref":"33_Alina","sha":"1a09d456d6ad38af6843439b38f4482c5d0ce43d","user":{"login":"bhuwang","id":3335673,"avatar_url":"https://avatars.githubusercontent.com/u/3335673?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuwang","html_url":"https://github.com/bhuwang","followers_url":"https://api.github.com/users/bhuwang/followers","following_url":"https://api.github.com/users/bhuwang/following{/other_user}","gists_url":"https://api.github.com/users/bhuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuwang/subscriptions","organizations_url":"https://api.github.com/users/bhuwang/orgs","repos_url":"https://api.github.com/users/bhuwang/repos","events_url":"https://api.github.com/users/bhuwang/events{/privacy}","received_events_url":"https://api.github.com/users/bhuwang/received_events","type":"User","site_admin":false},"repo":{"id":40284843,"name":"java_training","full_name":"bhuwang/java_training","owner":{"login":"bhuwang","id":3335673,"avatar_url":"https://avatars.githubusercontent.com/u/3335673?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuwang","html_url":"https://github.com/bhuwang","followers_url":"https://api.github.com/users/bhuwang/followers","following_url":"https://api.github.com/users/bhuwang/following{/other_user}","gists_url":"https://api.github.com/users/bhuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuwang/subscriptions","organizations_url":"https://api.github.com/users/bhuwang/orgs","repos_url":"https://api.github.com/users/bhuwang/repos","events_url":"https://api.github.com/users/bhuwang/events{/privacy}","received_events_url":"https://api.github.com/users/bhuwang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhuwang/java_training","description":"","fork":false,"url":"https://api.github.com/repos/bhuwang/java_training","forks_url":"https://api.github.com/repos/bhuwang/java_training/forks","keys_url":"https://api.github.com/repos/bhuwang/java_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhuwang/java_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhuwang/java_training/teams","hooks_url":"https://api.github.com/repos/bhuwang/java_training/hooks","issue_events_url":"https://api.github.com/repos/bhuwang/java_training/issues/events{/number}","events_url":"https://api.github.com/repos/bhuwang/java_training/events","assignees_url":"https://api.github.com/repos/bhuwang/java_training/assignees{/user}","branches_url":"https://api.github.com/repos/bhuwang/java_training/branches{/branch}","tags_url":"https://api.github.com/repos/bhuwang/java_training/tags","blobs_url":"https://api.github.com/repos/bhuwang/java_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhuwang/java_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhuwang/java_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhuwang/java_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhuwang/java_training/statuses/{sha}","languages_url":"https://api.github.com/repos/bhuwang/java_training/languages","stargazers_url":"https://api.github.com/repos/bhuwang/java_training/stargazers","contributors_url":"https://api.github.com/repos/bhuwang/java_training/contributors","subscribers_url":"https://api.github.com/repos/bhuwang/java_training/subscribers","subscription_url":"https://api.github.com/repos/bhuwang/java_training/subscription","commits_url":"https://api.github.com/repos/bhuwang/java_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhuwang/java_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhuwang/java_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhuwang/java_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhuwang/java_training/contents/{+path}","compare_url":"https://api.github.com/repos/bhuwang/java_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhuwang/java_training/merges","archive_url":"https://api.github.com/repos/bhuwang/java_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhuwang/java_training/downloads","issues_url":"https://api.github.com/repos/bhuwang/java_training/issues{/number}","pulls_url":"https://api.github.com/repos/bhuwang/java_training/pulls{/number}","milestones_url":"https://api.github.com/repos/bhuwang/java_training/milestones{/number}","notifications_url":"https://api.github.com/repos/bhuwang/java_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhuwang/java_training/labels{/name}","releases_url":"https://api.github.com/repos/bhuwang/java_training/releases{/id}","created_at":"2015-08-06T04:45:13Z","updated_at":"2015-08-17T15:30:41Z","pushed_at":"2015-08-21T05:06:26Z","git_url":"git://github.com/bhuwang/java_training.git","ssh_url":"git@github.com:bhuwang/java_training.git","clone_url":"https://github.com/bhuwang/java_training.git","svn_url":"https://github.com/bhuwang/java_training","homepage":null,"size":2586,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":0,"default_branch":"dev"}},"base":{"label":"bhuwang:dev","ref":"dev","sha":"bcb102d383ea90cf148a2547587933da9923b5be","user":{"login":"bhuwang","id":3335673,"avatar_url":"https://avatars.githubusercontent.com/u/3335673?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuwang","html_url":"https://github.com/bhuwang","followers_url":"https://api.github.com/users/bhuwang/followers","following_url":"https://api.github.com/users/bhuwang/following{/other_user}","gists_url":"https://api.github.com/users/bhuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuwang/subscriptions","organizations_url":"https://api.github.com/users/bhuwang/orgs","repos_url":"https://api.github.com/users/bhuwang/repos","events_url":"https://api.github.com/users/bhuwang/events{/privacy}","received_events_url":"https://api.github.com/users/bhuwang/received_events","type":"User","site_admin":false},"repo":{"id":40284843,"name":"java_training","full_name":"bhuwang/java_training","owner":{"login":"bhuwang","id":3335673,"avatar_url":"https://avatars.githubusercontent.com/u/3335673?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuwang","html_url":"https://github.com/bhuwang","followers_url":"https://api.github.com/users/bhuwang/followers","following_url":"https://api.github.com/users/bhuwang/following{/other_user}","gists_url":"https://api.github.com/users/bhuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuwang/subscriptions","organizations_url":"https://api.github.com/users/bhuwang/orgs","repos_url":"https://api.github.com/users/bhuwang/repos","events_url":"https://api.github.com/users/bhuwang/events{/privacy}","received_events_url":"https://api.github.com/users/bhuwang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhuwang/java_training","description":"","fork":false,"url":"https://api.github.com/repos/bhuwang/java_training","forks_url":"https://api.github.com/repos/bhuwang/java_training/forks","keys_url":"https://api.github.com/repos/bhuwang/java_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhuwang/java_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhuwang/java_training/teams","hooks_url":"https://api.github.com/repos/bhuwang/java_training/hooks","issue_events_url":"https://api.github.com/repos/bhuwang/java_training/issues/events{/number}","events_url":"https://api.github.com/repos/bhuwang/java_training/events","assignees_url":"https://api.github.com/repos/bhuwang/java_training/assignees{/user}","branches_url":"https://api.github.com/repos/bhuwang/java_training/branches{/branch}","tags_url":"https://api.github.com/repos/bhuwang/java_training/tags","blobs_url":"https://api.github.com/repos/bhuwang/java_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhuwang/java_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhuwang/java_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhuwang/java_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhuwang/java_training/statuses/{sha}","languages_url":"https://api.github.com/repos/bhuwang/java_training/languages","stargazers_url":"https://api.github.com/repos/bhuwang/java_training/stargazers","contributors_url":"https://api.github.com/repos/bhuwang/java_training/contributors","subscribers_url":"https://api.github.com/repos/bhuwang/java_training/subscribers","subscription_url":"https://api.github.com/repos/bhuwang/java_training/subscription","commits_url":"https://api.github.com/repos/bhuwang/java_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhuwang/java_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhuwang/java_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhuwang/java_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhuwang/java_training/contents/{+path}","compare_url":"https://api.github.com/repos/bhuwang/java_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhuwang/java_training/merges","archive_url":"https://api.github.com/repos/bhuwang/java_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhuwang/java_training/downloads","issues_url":"https://api.github.com/repos/bhuwang/java_training/issues{/number}","pulls_url":"https://api.github.com/repos/bhuwang/java_training/pulls{/number}","milestones_url":"https://api.github.com/repos/bhuwang/java_training/milestones{/number}","notifications_url":"https://api.github.com/repos/bhuwang/java_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhuwang/java_training/labels{/name}","releases_url":"https://api.github.com/repos/bhuwang/java_training/releases{/id}","created_at":"2015-08-06T04:45:13Z","updated_at":"2015-08-17T15:30:41Z","pushed_at":"2015-08-21T05:06:26Z","git_url":"git://github.com/bhuwang/java_training.git","ssh_url":"git@github.com:bhuwang/java_training.git","clone_url":"https://github.com/bhuwang/java_training.git","svn_url":"https://github.com/bhuwang/java_training","homepage":null,"size":2586,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/78"},"html":{"href":"https://github.com/bhuwang/java_training/pull/78"},"issue":{"href":"https://api.github.com/repos/bhuwang/java_training/issues/78"},"comments":{"href":"https://api.github.com/repos/bhuwang/java_training/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bhuwang/java_training/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/bhuwang/java_training/statuses/1a09d456d6ad38af6843439b38f4482c5d0ce43d"}}}}