{"action":"created","comment":{"url":"https://api.github.com/repos/zain14shah/demo/pulls/comments/223410275","pull_request_review_id":162530322,"id":223410275,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzQxMDI3NQ==","diff_hunk":"@@ -0,0 +1,80 @@\n+\"\"\"\n+Generating reports of temperature from given text files.\n+\"\"\"\n+\n+import os\n+import argparse\n+import sys\n+\n+file_list = os.listdir('./weatherdata/')\n+hottest_day = {}\n+hottest_date = {}\n+coldest_day = {}\n+maxi_humidity= {}\n+mini_humidity= {}\n+\n+parser = argparse.ArgumentParser(prog='weatherman'\n+\t\t\t\t\t\t\t\t, usage='%(prog)s [report#] [data_dir]'\n+\t\t\t\t\t\t\t\t, description='Generate weather reports')\n+parser.add_argument('-d','--data_dir', type = str, metavar = ''\n+\t\t\t\t\t, help = 'Directory containing weather data files'\n+\t\t\t\t\t, required=True)\n+parser.add_argument('-r','--report_number', type = str, metavar = ''\n+\t\t\t\t\t, choices = ['1', '2'], help = '1 for Annual Max/Min Temperature, 2 for Hottest day of each year'\n+\t\t\t\t\t, required=True)\n+try:\n+    args = parser.parse_args()\t\n+except:\n+    parser.print_help()\n+    sys.exit(0)\n+\n+\n+def print_report(report_number):","path":"weatherman.py","position":32,"original_position":32,"commit_id":"9046ee4a3606427abefc2247fa38230a1cd1fa7f","original_commit_id":"9046ee4a3606427abefc2247fa38230a1cd1fa7f","user":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-10-08T15:39:53Z","updated_at":"2018-10-08T15:39:53Z","html_url":"https://github.com/zain14shah/demo/pull/1#discussion_r223410275","pull_request_url":"https://api.github.com/repos/zain14shah/demo/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/comments/223410275"},"html":{"href":"https://github.com/zain14shah/demo/pull/1#discussion_r223410275"},"pull_request":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/1"}},"in_reply_to_id":222837604},"pull_request":{"url":"https://api.github.com/repos/zain14shah/demo/pulls/1","id":220332519,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMzMyNTE5","html_url":"https://github.com/zain14shah/demo/pull/1","diff_url":"https://github.com/zain14shah/demo/pull/1.diff","patch_url":"https://github.com/zain14shah/demo/pull/1.patch","issue_url":"https://api.github.com/repos/zain14shah/demo/issues/1","number":1,"state":"open","locked":false,"title":"added weatherman","user":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-04T10:54:26Z","updated_at":"2018-10-08T15:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6453fc7d4fc8204ee8050c754537831e3f01a65","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zain14shah/demo/pulls/1/commits","review_comments_url":"https://api.github.com/repos/zain14shah/demo/pulls/1/comments","review_comment_url":"https://api.github.com/repos/zain14shah/demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zain14shah/demo/issues/1/comments","statuses_url":"https://api.github.com/repos/zain14shah/demo/statuses/9046ee4a3606427abefc2247fa38230a1cd1fa7f","head":{"label":"zain14shah:weatherman","ref":"weatherman","sha":"9046ee4a3606427abefc2247fa38230a1cd1fa7f","user":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"repo":{"id":148795350,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3OTUzNTA=","name":"demo","full_name":"zain14shah/demo","private":false,"owner":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zain14shah/demo","description":null,"fork":false,"url":"https://api.github.com/repos/zain14shah/demo","forks_url":"https://api.github.com/repos/zain14shah/demo/forks","keys_url":"https://api.github.com/repos/zain14shah/demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zain14shah/demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zain14shah/demo/teams","hooks_url":"https://api.github.com/repos/zain14shah/demo/hooks","issue_events_url":"https://api.github.com/repos/zain14shah/demo/issues/events{/number}","events_url":"https://api.github.com/repos/zain14shah/demo/events","assignees_url":"https://api.github.com/repos/zain14shah/demo/assignees{/user}","branches_url":"https://api.github.com/repos/zain14shah/demo/branches{/branch}","tags_url":"https://api.github.com/repos/zain14shah/demo/tags","blobs_url":"https://api.github.com/repos/zain14shah/demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zain14shah/demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zain14shah/demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/zain14shah/demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zain14shah/demo/statuses/{sha}","languages_url":"https://api.github.com/repos/zain14shah/demo/languages","stargazers_url":"https://api.github.com/repos/zain14shah/demo/stargazers","contributors_url":"https://api.github.com/repos/zain14shah/demo/contributors","subscribers_url":"https://api.github.com/repos/zain14shah/demo/subscribers","subscription_url":"https://api.github.com/repos/zain14shah/demo/subscription","commits_url":"https://api.github.com/repos/zain14shah/demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/zain14shah/demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/zain14shah/demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/zain14shah/demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/zain14shah/demo/contents/{+path}","compare_url":"https://api.github.com/repos/zain14shah/demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zain14shah/demo/merges","archive_url":"https://api.github.com/repos/zain14shah/demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zain14shah/demo/downloads","issues_url":"https://api.github.com/repos/zain14shah/demo/issues{/number}","pulls_url":"https://api.github.com/repos/zain14shah/demo/pulls{/number}","milestones_url":"https://api.github.com/repos/zain14shah/demo/milestones{/number}","notifications_url":"https://api.github.com/repos/zain14shah/demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zain14shah/demo/labels{/name}","releases_url":"https://api.github.com/repos/zain14shah/demo/releases{/id}","deployments_url":"https://api.github.com/repos/zain14shah/demo/deployments","created_at":"2018-09-14T13:51:15Z","updated_at":"2018-10-04T08:25:19Z","pushed_at":"2018-10-04T10:54:27Z","git_url":"git://github.com/zain14shah/demo.git","ssh_url":"git@github.com:zain14shah/demo.git","clone_url":"https://github.com/zain14shah/demo.git","svn_url":"https://github.com/zain14shah/demo","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zain14shah:master","ref":"master","sha":"2a2fe47629065ddffe15a5341da3d38d97973e1b","user":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"repo":{"id":148795350,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3OTUzNTA=","name":"demo","full_name":"zain14shah/demo","private":false,"owner":{"login":"zain14shah","id":43273101,"node_id":"MDQ6VXNlcjQzMjczMTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43273101?v=4","gravatar_id":"","url":"https://api.github.com/users/zain14shah","html_url":"https://github.com/zain14shah","followers_url":"https://api.github.com/users/zain14shah/followers","following_url":"https://api.github.com/users/zain14shah/following{/other_user}","gists_url":"https://api.github.com/users/zain14shah/gists{/gist_id}","starred_url":"https://api.github.com/users/zain14shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zain14shah/subscriptions","organizations_url":"https://api.github.com/users/zain14shah/orgs","repos_url":"https://api.github.com/users/zain14shah/repos","events_url":"https://api.github.com/users/zain14shah/events{/privacy}","received_events_url":"https://api.github.com/users/zain14shah/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zain14shah/demo","description":null,"fork":false,"url":"https://api.github.com/repos/zain14shah/demo","forks_url":"https://api.github.com/repos/zain14shah/demo/forks","keys_url":"https://api.github.com/repos/zain14shah/demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zain14shah/demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zain14shah/demo/teams","hooks_url":"https://api.github.com/repos/zain14shah/demo/hooks","issue_events_url":"https://api.github.com/repos/zain14shah/demo/issues/events{/number}","events_url":"https://api.github.com/repos/zain14shah/demo/events","assignees_url":"https://api.github.com/repos/zain14shah/demo/assignees{/user}","branches_url":"https://api.github.com/repos/zain14shah/demo/branches{/branch}","tags_url":"https://api.github.com/repos/zain14shah/demo/tags","blobs_url":"https://api.github.com/repos/zain14shah/demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zain14shah/demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zain14shah/demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/zain14shah/demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zain14shah/demo/statuses/{sha}","languages_url":"https://api.github.com/repos/zain14shah/demo/languages","stargazers_url":"https://api.github.com/repos/zain14shah/demo/stargazers","contributors_url":"https://api.github.com/repos/zain14shah/demo/contributors","subscribers_url":"https://api.github.com/repos/zain14shah/demo/subscribers","subscription_url":"https://api.github.com/repos/zain14shah/demo/subscription","commits_url":"https://api.github.com/repos/zain14shah/demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/zain14shah/demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/zain14shah/demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/zain14shah/demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/zain14shah/demo/contents/{+path}","compare_url":"https://api.github.com/repos/zain14shah/demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zain14shah/demo/merges","archive_url":"https://api.github.com/repos/zain14shah/demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zain14shah/demo/downloads","issues_url":"https://api.github.com/repos/zain14shah/demo/issues{/number}","pulls_url":"https://api.github.com/repos/zain14shah/demo/pulls{/number}","milestones_url":"https://api.github.com/repos/zain14shah/demo/milestones{/number}","notifications_url":"https://api.github.com/repos/zain14shah/demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zain14shah/demo/labels{/name}","releases_url":"https://api.github.com/repos/zain14shah/demo/releases{/id}","deployments_url":"https://api.github.com/repos/zain14shah/demo/deployments","created_at":"2018-09-14T13:51:15Z","updated_at":"2018-10-04T08:25:19Z","pushed_at":"2018-10-04T10:54:27Z","git_url":"git://github.com/zain14shah/demo.git","ssh_url":"git@github.com:zain14shah/demo.git","clone_url":"https://github.com/zain14shah/demo.git","svn_url":"https://github.com/zain14shah/demo","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/1"},"html":{"href":"https://github.com/zain14shah/demo/pull/1"},"issue":{"href":"https://api.github.com/repos/zain14shah/demo/issues/1"},"comments":{"href":"https://api.github.com/repos/zain14shah/demo/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zain14shah/demo/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/zain14shah/demo/statuses/9046ee4a3606427abefc2247fa38230a1cd1fa7f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"zain14shah"}}