{"action":"created","comment":{"url":"https://api.github.com/repos/dhmit/gender_novels/pulls/comments/216179422","pull_request_review_id":153603105,"id":216179422,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjE3OTQyMg==","diff_hunk":"@@ -0,0 +1,110 @@\n+import csv\n+import os\n+import urllib.request\n+\n+from IPython import embed\n+\n+\n+class FileLoaderMixin():\n+\n+    def load_file(self, file_path):\n+\n+        # make sure that we only try to load supported file types\n+        supported_file_types = {'.csv', '.txt'}\n+        current_file_type = file_path[file_path.rfind('.'):]\n+        if not current_file_type in supported_file_types:\n+            raise ValueError(\"The FileLoaderMixin currently supports {supported_file_types} but not \"\n+                             \"{current_file_type}.\")","path":"common.py","position":19,"original_position":17,"commit_id":"cd9fbc7296d7dee6c31c380b71974e4a1bbe4607","original_commit_id":"6837fc694ae121bc65d202e04b495bef1a36a017","user":{"login":"srisi","id":7434819,"node_id":"MDQ6VXNlcjc0MzQ4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7434819?v=4","gravatar_id":"","url":"https://api.github.com/users/srisi","html_url":"https://github.com/srisi","followers_url":"https://api.github.com/users/srisi/followers","following_url":"https://api.github.com/users/srisi/following{/other_user}","gists_url":"https://api.github.com/users/srisi/gists{/gist_id}","starred_url":"https://api.github.com/users/srisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisi/subscriptions","organizations_url":"https://api.github.com/users/srisi/orgs","repos_url":"https://api.github.com/users/srisi/repos","events_url":"https://api.github.com/users/srisi/events{/privacy}","received_events_url":"https://api.github.com/users/srisi/received_events","type":"User","site_admin":false},"body":"Agreed and fixed. ","created_at":"2018-09-10T01:18:16Z","updated_at":"2018-09-10T01:18:16Z","html_url":"https://github.com/dhmit/gender_novels/pull/4#discussion_r216179422","pull_request_url":"https://api.github.com/repos/dhmit/gender_novels/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/comments/216179422"},"html":{"href":"https://github.com/dhmit/gender_novels/pull/4#discussion_r216179422"},"pull_request":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/4"}},"in_reply_to_id":216157555},"pull_request":{"url":"https://api.github.com/repos/dhmit/gender_novels/pulls/4","id":214050898,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDUwODk4","html_url":"https://github.com/dhmit/gender_novels/pull/4","diff_url":"https://github.com/dhmit/gender_novels/pull/4.diff","patch_url":"https://github.com/dhmit/gender_novels/pull/4.patch","issue_url":"https://api.github.com/repos/dhmit/gender_novels/issues/4","number":4,"state":"closed","locked":false,"title":"Added common.py for Monday demonstration development","user":{"login":"srisi","id":7434819,"node_id":"MDQ6VXNlcjc0MzQ4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7434819?v=4","gravatar_id":"","url":"https://api.github.com/users/srisi","html_url":"https://github.com/srisi","followers_url":"https://api.github.com/users/srisi/followers","following_url":"https://api.github.com/users/srisi/following{/other_user}","gists_url":"https://api.github.com/users/srisi/gists{/gist_id}","starred_url":"https://api.github.com/users/srisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisi/subscriptions","organizations_url":"https://api.github.com/users/srisi/orgs","repos_url":"https://api.github.com/users/srisi/repos","events_url":"https://api.github.com/users/srisi/events{/privacy}","received_events_url":"https://api.github.com/users/srisi/received_events","type":"User","site_admin":false},"body":"No comments or tests yet--will add later. Just need this to continue working.","created_at":"2018-09-07T22:09:21Z","updated_at":"2018-09-10T01:18:16Z","closed_at":"2018-09-07T22:09:36Z","merged_at":"2018-09-07T22:09:36Z","merge_commit_sha":"6cb869dd9f5086b799650f81706b19a16f15664a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dhmit/gender_novels/pulls/4/commits","review_comments_url":"https://api.github.com/repos/dhmit/gender_novels/pulls/4/comments","review_comment_url":"https://api.github.com/repos/dhmit/gender_novels/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dhmit/gender_novels/issues/4/comments","statuses_url":"https://api.github.com/repos/dhmit/gender_novels/statuses/cd9fbc7296d7dee6c31c380b71974e4a1bbe4607","head":{"label":"srisi:master","ref":"master","sha":"cd9fbc7296d7dee6c31c380b71974e4a1bbe4607","user":{"login":"srisi","id":7434819,"node_id":"MDQ6VXNlcjc0MzQ4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7434819?v=4","gravatar_id":"","url":"https://api.github.com/users/srisi","html_url":"https://github.com/srisi","followers_url":"https://api.github.com/users/srisi/followers","following_url":"https://api.github.com/users/srisi/following{/other_user}","gists_url":"https://api.github.com/users/srisi/gists{/gist_id}","starred_url":"https://api.github.com/users/srisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisi/subscriptions","organizations_url":"https://api.github.com/users/srisi/orgs","repos_url":"https://api.github.com/users/srisi/repos","events_url":"https://api.github.com/users/srisi/events{/privacy}","received_events_url":"https://api.github.com/users/srisi/received_events","type":"User","site_admin":false},"repo":{"id":147582938,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1ODI5Mzg=","name":"gender_novels","full_name":"srisi/gender_novels","owner":{"login":"srisi","id":7434819,"node_id":"MDQ6VXNlcjc0MzQ4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7434819?v=4","gravatar_id":"","url":"https://api.github.com/users/srisi","html_url":"https://github.com/srisi","followers_url":"https://api.github.com/users/srisi/followers","following_url":"https://api.github.com/users/srisi/following{/other_user}","gists_url":"https://api.github.com/users/srisi/gists{/gist_id}","starred_url":"https://api.github.com/users/srisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srisi/subscriptions","organizations_url":"https://api.github.com/users/srisi/orgs","repos_url":"https://api.github.com/users/srisi/repos","events_url":"https://api.github.com/users/srisi/events{/privacy}","received_events_url":"https://api.github.com/users/srisi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srisi/gender_novels","description":"Descriptions of Gender in Writing","fork":true,"url":"https://api.github.com/repos/srisi/gender_novels","forks_url":"https://api.github.com/repos/srisi/gender_novels/forks","keys_url":"https://api.github.com/repos/srisi/gender_novels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srisi/gender_novels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srisi/gender_novels/teams","hooks_url":"https://api.github.com/repos/srisi/gender_novels/hooks","issue_events_url":"https://api.github.com/repos/srisi/gender_novels/issues/events{/number}","events_url":"https://api.github.com/repos/srisi/gender_novels/events","assignees_url":"https://api.github.com/repos/srisi/gender_novels/assignees{/user}","branches_url":"https://api.github.com/repos/srisi/gender_novels/branches{/branch}","tags_url":"https://api.github.com/repos/srisi/gender_novels/tags","blobs_url":"https://api.github.com/repos/srisi/gender_novels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srisi/gender_novels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srisi/gender_novels/git/refs{/sha}","trees_url":"https://api.github.com/repos/srisi/gender_novels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srisi/gender_novels/statuses/{sha}","languages_url":"https://api.github.com/repos/srisi/gender_novels/languages","stargazers_url":"https://api.github.com/repos/srisi/gender_novels/stargazers","contributors_url":"https://api.github.com/repos/srisi/gender_novels/contributors","subscribers_url":"https://api.github.com/repos/srisi/gender_novels/subscribers","subscription_url":"https://api.github.com/repos/srisi/gender_novels/subscription","commits_url":"https://api.github.com/repos/srisi/gender_novels/commits{/sha}","git_commits_url":"https://api.github.com/repos/srisi/gender_novels/git/commits{/sha}","comments_url":"https://api.github.com/repos/srisi/gender_novels/comments{/number}","issue_comment_url":"https://api.github.com/repos/srisi/gender_novels/issues/comments{/number}","contents_url":"https://api.github.com/repos/srisi/gender_novels/contents/{+path}","compare_url":"https://api.github.com/repos/srisi/gender_novels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srisi/gender_novels/merges","archive_url":"https://api.github.com/repos/srisi/gender_novels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srisi/gender_novels/downloads","issues_url":"https://api.github.com/repos/srisi/gender_novels/issues{/number}","pulls_url":"https://api.github.com/repos/srisi/gender_novels/pulls{/number}","milestones_url":"https://api.github.com/repos/srisi/gender_novels/milestones{/number}","notifications_url":"https://api.github.com/repos/srisi/gender_novels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srisi/gender_novels/labels{/name}","releases_url":"https://api.github.com/repos/srisi/gender_novels/releases{/id}","deployments_url":"https://api.github.com/repos/srisi/gender_novels/deployments","created_at":"2018-09-05T21:44:40Z","updated_at":"2018-09-07T22:14:08Z","pushed_at":"2018-09-07T22:14:07Z","git_url":"git://github.com/srisi/gender_novels.git","ssh_url":"git@github.com:srisi/gender_novels.git","clone_url":"https://github.com/srisi/gender_novels.git","svn_url":"https://github.com/srisi/gender_novels","homepage":null,"size":2490,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dhmit:devbranch","ref":"devbranch","sha":"2caf6502a561fa9d88a4fea244411910291afd09","user":{"login":"dhmit","id":42584896,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNTg0ODk2","avatar_url":"https://avatars3.githubusercontent.com/u/42584896?v=4","gravatar_id":"","url":"https://api.github.com/users/dhmit","html_url":"https://github.com/dhmit","followers_url":"https://api.github.com/users/dhmit/followers","following_url":"https://api.github.com/users/dhmit/following{/other_user}","gists_url":"https://api.github.com/users/dhmit/gists{/gist_id}","starred_url":"https://api.github.com/users/dhmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhmit/subscriptions","organizations_url":"https://api.github.com/users/dhmit/orgs","repos_url":"https://api.github.com/users/dhmit/repos","events_url":"https://api.github.com/users/dhmit/events{/privacy}","received_events_url":"https://api.github.com/users/dhmit/received_events","type":"Organization","site_admin":false},"repo":{"id":147417136,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0MTcxMzY=","name":"gender_novels","full_name":"dhmit/gender_novels","owner":{"login":"dhmit","id":42584896,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNTg0ODk2","avatar_url":"https://avatars3.githubusercontent.com/u/42584896?v=4","gravatar_id":"","url":"https://api.github.com/users/dhmit","html_url":"https://github.com/dhmit","followers_url":"https://api.github.com/users/dhmit/followers","following_url":"https://api.github.com/users/dhmit/following{/other_user}","gists_url":"https://api.github.com/users/dhmit/gists{/gist_id}","starred_url":"https://api.github.com/users/dhmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhmit/subscriptions","organizations_url":"https://api.github.com/users/dhmit/orgs","repos_url":"https://api.github.com/users/dhmit/repos","events_url":"https://api.github.com/users/dhmit/events{/privacy}","received_events_url":"https://api.github.com/users/dhmit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dhmit/gender_novels","description":"Descriptions of Gender in Writing","fork":false,"url":"https://api.github.com/repos/dhmit/gender_novels","forks_url":"https://api.github.com/repos/dhmit/gender_novels/forks","keys_url":"https://api.github.com/repos/dhmit/gender_novels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhmit/gender_novels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhmit/gender_novels/teams","hooks_url":"https://api.github.com/repos/dhmit/gender_novels/hooks","issue_events_url":"https://api.github.com/repos/dhmit/gender_novels/issues/events{/number}","events_url":"https://api.github.com/repos/dhmit/gender_novels/events","assignees_url":"https://api.github.com/repos/dhmit/gender_novels/assignees{/user}","branches_url":"https://api.github.com/repos/dhmit/gender_novels/branches{/branch}","tags_url":"https://api.github.com/repos/dhmit/gender_novels/tags","blobs_url":"https://api.github.com/repos/dhmit/gender_novels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhmit/gender_novels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhmit/gender_novels/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhmit/gender_novels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhmit/gender_novels/statuses/{sha}","languages_url":"https://api.github.com/repos/dhmit/gender_novels/languages","stargazers_url":"https://api.github.com/repos/dhmit/gender_novels/stargazers","contributors_url":"https://api.github.com/repos/dhmit/gender_novels/contributors","subscribers_url":"https://api.github.com/repos/dhmit/gender_novels/subscribers","subscription_url":"https://api.github.com/repos/dhmit/gender_novels/subscription","commits_url":"https://api.github.com/repos/dhmit/gender_novels/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhmit/gender_novels/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhmit/gender_novels/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhmit/gender_novels/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhmit/gender_novels/contents/{+path}","compare_url":"https://api.github.com/repos/dhmit/gender_novels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhmit/gender_novels/merges","archive_url":"https://api.github.com/repos/dhmit/gender_novels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhmit/gender_novels/downloads","issues_url":"https://api.github.com/repos/dhmit/gender_novels/issues{/number}","pulls_url":"https://api.github.com/repos/dhmit/gender_novels/pulls{/number}","milestones_url":"https://api.github.com/repos/dhmit/gender_novels/milestones{/number}","notifications_url":"https://api.github.com/repos/dhmit/gender_novels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhmit/gender_novels/labels{/name}","releases_url":"https://api.github.com/repos/dhmit/gender_novels/releases{/id}","deployments_url":"https://api.github.com/repos/dhmit/gender_novels/deployments","created_at":"2018-09-04T20:54:17Z","updated_at":"2018-09-07T20:39:17Z","pushed_at":"2018-09-07T22:28:05Z","git_url":"git://github.com/dhmit/gender_novels.git","ssh_url":"git@github.com:dhmit/gender_novels.git","clone_url":"https://github.com/dhmit/gender_novels.git","svn_url":"https://github.com/dhmit/gender_novels","homepage":null,"size":2496,"stargazers_count":1,"watchers_count":1,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":3,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/4"},"html":{"href":"https://github.com/dhmit/gender_novels/pull/4"},"issue":{"href":"https://api.github.com/repos/dhmit/gender_novels/issues/4"},"comments":{"href":"https://api.github.com/repos/dhmit/gender_novels/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dhmit/gender_novels/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/dhmit/gender_novels/statuses/cd9fbc7296d7dee6c31c380b71974e4a1bbe4607"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"srisi"}}