{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/173090485","pull_request_review_id":102218134,"id":173090485,"diff_hunk":"@@ -0,0 +1,65 @@\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+class Problem019 {\n+    public static void main(String args[]){\n+        Map<Integer, String> L = new HashMap<Integer, String>();\n+        L.put(1, \"Sun\");\n+        L.put(2, \"Mon\");\n+        L.put(3, \"Tue\");\n+        L.put(4, \"Wed\");\n+        L.put(5, \"Thurs\");\n+        L.put(6, \"Fri\");\n+        L.put(7, \"Sat\");\n+     \n+        // Start at Monday, 1st, 1900\n+        int counter = 1;\n+        int tally = 0;\n+         \n+        // Year\n+        for (int yr = 1900; yr < 2001;  ++ yr)\n+        {\n+            System.out.println(\"Year = \" + yr);\n+            // Month\n+            for (int month = 1; month < 13; month ++)\n+            {\n+                int y = findDays(month, yr);\n+                // Number of month days\n+                for (int monthDays = 1; monthDays <= y; monthDays ++) \n+                {\n+                    // Start at Monday, 1st, 1900\n+                    counter = (counter % 7) + 1;\n+                    if ((monthDays == 1) && (L.get(counter) == \"Sun\"))\n+                    {\n+                        System.out.println(\"month_days = \" + monthDays);\n+                        if( yr != 1900)\n+                            tally += 1;\n+                    }\n+                }\n+            }\n+            System.out.println();\n+        }\n+        System.out.println(\"tally = \" + tally );\n+    }\n+    public static int findDays(int month, int yr){\n+        int d = 0;\n+        if ((month == 1) || (month == 3) || (month == 5) || (month == 7) ||\n+        (month == 8) || (month == 10) || (month == 12))\n+        {\n+            d = 31;\n+        }\n+        else if ((month == 4) || (month == 6) || (month == 9) || (month == 11))\n+        {\n+            d = 30;\n+        }\n+        else if (month == 2)\n+        {\n+            d = (yr % 4 == 0 && (yr % 100 != 0 || yr % 400 == 0)) ? 29 : 28;\n+        }\n+        else\n+        {\n+          throw new ArithmeticException(\"Month is out of bound !\"); \n+        }\n+        return d;\n+    }\n+}","path":"code/online_challenges/src/project_euler/problem_019.java","position":65,"original_position":65,"commit_id":"7c965d855b61f7a281e122e3c2e0ab0bc2640e06","original_commit_id":"7c965d855b61f7a281e122e3c2e0ab0bc2640e06","user":{"login":"Awani-Shukla","id":31660543,"avatar_url":"https://avatars0.githubusercontent.com/u/31660543?v=4","gravatar_id":"","url":"https://api.github.com/users/Awani-Shukla","html_url":"https://github.com/Awani-Shukla","followers_url":"https://api.github.com/users/Awani-Shukla/followers","following_url":"https://api.github.com/users/Awani-Shukla/following{/other_user}","gists_url":"https://api.github.com/users/Awani-Shukla/gists{/gist_id}","starred_url":"https://api.github.com/users/Awani-Shukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awani-Shukla/subscriptions","organizations_url":"https://api.github.com/users/Awani-Shukla/orgs","repos_url":"https://api.github.com/users/Awani-Shukla/repos","events_url":"https://api.github.com/users/Awani-Shukla/events{/privacy}","received_events_url":"https://api.github.com/users/Awani-Shukla/received_events","type":"User","site_admin":false},"body":"@Vitorvgc any more changes?","created_at":"2018-03-08T08:26:01Z","updated_at":"2018-03-08T08:26:01Z","html_url":"https://github.com/OpenGenus/cosmos/pull/3334#discussion_r173090485","pull_request_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/173090485"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3334#discussion_r173090485"},"pull_request":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334","id":171964604,"html_url":"https://github.com/OpenGenus/cosmos/pull/3334","diff_url":"https://github.com/OpenGenus/cosmos/pull/3334.diff","patch_url":"https://github.com/OpenGenus/cosmos/pull/3334.patch","issue_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3334","number":3334,"state":"open","locked":false,"title":"project_euler_problem19.java","user":{"login":"Awani-Shukla","id":31660543,"avatar_url":"https://avatars0.githubusercontent.com/u/31660543?v=4","gravatar_id":"","url":"https://api.github.com/users/Awani-Shukla","html_url":"https://github.com/Awani-Shukla","followers_url":"https://api.github.com/users/Awani-Shukla/followers","following_url":"https://api.github.com/users/Awani-Shukla/following{/other_user}","gists_url":"https://api.github.com/users/Awani-Shukla/gists{/gist_id}","starred_url":"https://api.github.com/users/Awani-Shukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awani-Shukla/subscriptions","organizations_url":"https://api.github.com/users/Awani-Shukla/orgs","repos_url":"https://api.github.com/users/Awani-Shukla/repos","events_url":"https://api.github.com/users/Awani-Shukla/events{/privacy}","received_events_url":"https://api.github.com/users/Awani-Shukla/received_events","type":"User","site_admin":false},"body":"**Fixes issue:**\r\n<!-- [Mention the issue number it fixes or add the details of the changes if it doesn't has a specific issue. -->\r\n\r\n\r\n**Changes:**\r\n<!-- Add here what changes were made in this pull request. -->\r\n\r\n\r\n<!-- Make sure to look at the Style Guide for your language in guides/coding_style/language_name \r\n     Note: A coding style guide may not exist for your language, since this is still in beta.\r\n-->\r\n","created_at":"2018-02-28T14:13:56Z","updated_at":"2018-03-08T08:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca13ed060f5fcba81d989ba40603a9e5e07fa709","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334/commits","review_comments_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334/comments","review_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3334/comments","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/7c965d855b61f7a281e122e3c2e0ab0bc2640e06","head":{"label":"Awani-Shukla:patch-5","ref":"patch-5","sha":"7c965d855b61f7a281e122e3c2e0ab0bc2640e06","user":{"login":"Awani-Shukla","id":31660543,"avatar_url":"https://avatars0.githubusercontent.com/u/31660543?v=4","gravatar_id":"","url":"https://api.github.com/users/Awani-Shukla","html_url":"https://github.com/Awani-Shukla","followers_url":"https://api.github.com/users/Awani-Shukla/followers","following_url":"https://api.github.com/users/Awani-Shukla/following{/other_user}","gists_url":"https://api.github.com/users/Awani-Shukla/gists{/gist_id}","starred_url":"https://api.github.com/users/Awani-Shukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awani-Shukla/subscriptions","organizations_url":"https://api.github.com/users/Awani-Shukla/orgs","repos_url":"https://api.github.com/users/Awani-Shukla/repos","events_url":"https://api.github.com/users/Awani-Shukla/events{/privacy}","received_events_url":"https://api.github.com/users/Awani-Shukla/received_events","type":"User","site_admin":false},"repo":{"id":123074133,"name":"cosmos","full_name":"Awani-Shukla/cosmos","owner":{"login":"Awani-Shukla","id":31660543,"avatar_url":"https://avatars0.githubusercontent.com/u/31660543?v=4","gravatar_id":"","url":"https://api.github.com/users/Awani-Shukla","html_url":"https://github.com/Awani-Shukla","followers_url":"https://api.github.com/users/Awani-Shukla/followers","following_url":"https://api.github.com/users/Awani-Shukla/following{/other_user}","gists_url":"https://api.github.com/users/Awani-Shukla/gists{/gist_id}","starred_url":"https://api.github.com/users/Awani-Shukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awani-Shukla/subscriptions","organizations_url":"https://api.github.com/users/Awani-Shukla/orgs","repos_url":"https://api.github.com/users/Awani-Shukla/repos","events_url":"https://api.github.com/users/Awani-Shukla/events{/privacy}","received_events_url":"https://api.github.com/users/Awani-Shukla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Awani-Shukla/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":true,"url":"https://api.github.com/repos/Awani-Shukla/cosmos","forks_url":"https://api.github.com/repos/Awani-Shukla/cosmos/forks","keys_url":"https://api.github.com/repos/Awani-Shukla/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Awani-Shukla/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Awani-Shukla/cosmos/teams","hooks_url":"https://api.github.com/repos/Awani-Shukla/cosmos/hooks","issue_events_url":"https://api.github.com/repos/Awani-Shukla/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/Awani-Shukla/cosmos/events","assignees_url":"https://api.github.com/repos/Awani-Shukla/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/Awani-Shukla/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/Awani-Shukla/cosmos/tags","blobs_url":"https://api.github.com/repos/Awani-Shukla/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Awani-Shukla/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Awani-Shukla/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/Awani-Shukla/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Awani-Shukla/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/Awani-Shukla/cosmos/languages","stargazers_url":"https://api.github.com/repos/Awani-Shukla/cosmos/stargazers","contributors_url":"https://api.github.com/repos/Awani-Shukla/cosmos/contributors","subscribers_url":"https://api.github.com/repos/Awani-Shukla/cosmos/subscribers","subscription_url":"https://api.github.com/repos/Awani-Shukla/cosmos/subscription","commits_url":"https://api.github.com/repos/Awani-Shukla/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/Awani-Shukla/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/Awani-Shukla/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/Awani-Shukla/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/Awani-Shukla/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/Awani-Shukla/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Awani-Shukla/cosmos/merges","archive_url":"https://api.github.com/repos/Awani-Shukla/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Awani-Shukla/cosmos/downloads","issues_url":"https://api.github.com/repos/Awani-Shukla/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/Awani-Shukla/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/Awani-Shukla/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/Awani-Shukla/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Awani-Shukla/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/Awani-Shukla/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/Awani-Shukla/cosmos/deployments","created_at":"2018-02-27T04:46:05Z","updated_at":"2018-02-27T04:46:10Z","pushed_at":"2018-03-08T08:25:05Z","git_url":"git://github.com/Awani-Shukla/cosmos.git","ssh_url":"git@github.com:Awani-Shukla/cosmos.git","clone_url":"https://github.com/Awani-Shukla/cosmos.git","svn_url":"https://github.com/Awani-Shukla/cosmos","homepage":"https://discourse.opengenus.org","size":12822,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenGenus:master","ref":"master","sha":"d0c94dadc6eb47e18be37c658514478308710f51","user":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"repo":{"id":103749180,"name":"cosmos","full_name":"OpenGenus/cosmos","owner":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGenus/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":false,"url":"https://api.github.com/repos/OpenGenus/cosmos","forks_url":"https://api.github.com/repos/OpenGenus/cosmos/forks","keys_url":"https://api.github.com/repos/OpenGenus/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGenus/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGenus/cosmos/teams","hooks_url":"https://api.github.com/repos/OpenGenus/cosmos/hooks","issue_events_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGenus/cosmos/events","assignees_url":"https://api.github.com/repos/OpenGenus/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGenus/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGenus/cosmos/tags","blobs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGenus/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGenus/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGenus/cosmos/languages","stargazers_url":"https://api.github.com/repos/OpenGenus/cosmos/stargazers","contributors_url":"https://api.github.com/repos/OpenGenus/cosmos/contributors","subscribers_url":"https://api.github.com/repos/OpenGenus/cosmos/subscribers","subscription_url":"https://api.github.com/repos/OpenGenus/cosmos/subscription","commits_url":"https://api.github.com/repos/OpenGenus/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGenus/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGenus/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGenus/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGenus/cosmos/merges","archive_url":"https://api.github.com/repos/OpenGenus/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGenus/cosmos/downloads","issues_url":"https://api.github.com/repos/OpenGenus/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGenus/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGenus/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGenus/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/OpenGenus/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/OpenGenus/cosmos/deployments","created_at":"2017-09-16T12:07:05Z","updated_at":"2018-03-08T06:38:00Z","pushed_at":"2018-03-08T08:25:06Z","git_url":"git://github.com/OpenGenus/cosmos.git","ssh_url":"git@github.com:OpenGenus/cosmos.git","clone_url":"https://github.com/OpenGenus/cosmos.git","svn_url":"https://github.com/OpenGenus/cosmos","homepage":"https://discourse.opengenus.org","size":12790,"stargazers_count":6358,"watchers_count":6358,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1884,"mirror_url":null,"archived":false,"open_issues_count":950,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1884,"open_issues":950,"watchers":6358,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3334"},"issue":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3334"},"comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3334/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3334/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGenus/cosmos/statuses/7c965d855b61f7a281e122e3c2e0ab0bc2640e06"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Awani-Shukla"}}