{"action":"created","comment":{"url":"https://api.github.com/repos/PLOS/allofplos/pulls/comments/202546586","pull_request_review_id":137270411,"id":202546586,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjU0NjU4Ng==","diff_hunk":"@@ -122,9 +122,7 @@ class CoAuthorPLOSArticle(BaseModel):\n allfiles = Corpus(corpus_dir).files\n files = random.sample(allfiles, args.random) if args.random else allfiles\n \n-for file_ in tqdm(files):\n-    doi = filename_to_doi(file_)\n-    article = Article(doi)\n+for article in tqdm(Corpus(corpus_dir)):","path":"allofplos/makedb.py","position":22,"original_position":22,"commit_id":"d11658e848a063e62da477d5f56839b9938588f4","original_commit_id":"d11658e848a063e62da477d5f56839b9938588f4","user":{"login":"sbassi","id":238517,"node_id":"MDQ6VXNlcjIzODUxNw==","avatar_url":"https://avatars0.githubusercontent.com/u/238517?v=4","gravatar_id":"","url":"https://api.github.com/users/sbassi","html_url":"https://github.com/sbassi","followers_url":"https://api.github.com/users/sbassi/followers","following_url":"https://api.github.com/users/sbassi/following{/other_user}","gists_url":"https://api.github.com/users/sbassi/gists{/gist_id}","starred_url":"https://api.github.com/users/sbassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbassi/subscriptions","organizations_url":"https://api.github.com/users/sbassi/orgs","repos_url":"https://api.github.com/users/sbassi/repos","events_url":"https://api.github.com/users/sbassi/events{/privacy}","received_events_url":"https://api.github.com/users/sbassi/received_events","type":"User","site_admin":false},"body":"if you don't iterate over \"files\" you are not iterating over the random sample if that is the option in the command line","created_at":"2018-07-15T15:51:47Z","updated_at":"2018-07-15T15:52:45Z","html_url":"https://github.com/PLOS/allofplos/pull/117#discussion_r202546586","pull_request_url":"https://api.github.com/repos/PLOS/allofplos/pulls/117","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/comments/202546586"},"html":{"href":"https://github.com/PLOS/allofplos/pull/117#discussion_r202546586"},"pull_request":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/PLOS/allofplos/pulls/117","id":201472197,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNDcyMTk3","html_url":"https://github.com/PLOS/allofplos/pull/117","diff_url":"https://github.com/PLOS/allofplos/pull/117.diff","patch_url":"https://github.com/PLOS/allofplos/pull/117.patch","issue_url":"https://api.github.com/repos/PLOS/allofplos/issues/117","number":117,"state":"open","locked":false,"title":"Database scripts","user":{"login":"jgarst","id":1039501,"node_id":"MDQ6VXNlcjEwMzk1MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1039501?v=4","gravatar_id":"","url":"https://api.github.com/users/jgarst","html_url":"https://github.com/jgarst","followers_url":"https://api.github.com/users/jgarst/followers","following_url":"https://api.github.com/users/jgarst/following{/other_user}","gists_url":"https://api.github.com/users/jgarst/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarst/subscriptions","organizations_url":"https://api.github.com/users/jgarst/orgs","repos_url":"https://api.github.com/users/jgarst/repos","events_url":"https://api.github.com/users/jgarst/events{/privacy}","received_events_url":"https://api.github.com/users/jgarst/received_events","type":"User","site_admin":false},"body":"- peewee bumped to latest version. It makes sense to fix the breaking changes before adding more database code\r\n- fixed a bug where makedb.py would always use the default xml folder\r\n- I can never get relative imports to work correctly, and they are discouraged in the official style guide, so I changed them to absolute.\r\n\r\npeewee probably doesn't require the absolute latest version, but there is no quick way to check what it supports.","created_at":"2018-07-14T22:43:53Z","updated_at":"2018-07-15T15:52:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33dd767c606f3872d69388d8442fbbf1aaefb046","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PLOS/allofplos/pulls/117/commits","review_comments_url":"https://api.github.com/repos/PLOS/allofplos/pulls/117/comments","review_comment_url":"https://api.github.com/repos/PLOS/allofplos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PLOS/allofplos/issues/117/comments","statuses_url":"https://api.github.com/repos/PLOS/allofplos/statuses/d11658e848a063e62da477d5f56839b9938588f4","head":{"label":"jgarst:db_scripts","ref":"db_scripts","sha":"d11658e848a063e62da477d5f56839b9938588f4","user":{"login":"jgarst","id":1039501,"node_id":"MDQ6VXNlcjEwMzk1MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1039501?v=4","gravatar_id":"","url":"https://api.github.com/users/jgarst","html_url":"https://github.com/jgarst","followers_url":"https://api.github.com/users/jgarst/followers","following_url":"https://api.github.com/users/jgarst/following{/other_user}","gists_url":"https://api.github.com/users/jgarst/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarst/subscriptions","organizations_url":"https://api.github.com/users/jgarst/orgs","repos_url":"https://api.github.com/users/jgarst/repos","events_url":"https://api.github.com/users/jgarst/events{/privacy}","received_events_url":"https://api.github.com/users/jgarst/received_events","type":"User","site_admin":false},"repo":{"id":140957283,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA5NTcyODM=","name":"allofplos","full_name":"jgarst/allofplos","owner":{"login":"jgarst","id":1039501,"node_id":"MDQ6VXNlcjEwMzk1MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1039501?v=4","gravatar_id":"","url":"https://api.github.com/users/jgarst","html_url":"https://github.com/jgarst","followers_url":"https://api.github.com/users/jgarst/followers","following_url":"https://api.github.com/users/jgarst/following{/other_user}","gists_url":"https://api.github.com/users/jgarst/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarst/subscriptions","organizations_url":"https://api.github.com/users/jgarst/orgs","repos_url":"https://api.github.com/users/jgarst/repos","events_url":"https://api.github.com/users/jgarst/events{/privacy}","received_events_url":"https://api.github.com/users/jgarst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgarst/allofplos","description":"Repository for the allofplos project.","fork":true,"url":"https://api.github.com/repos/jgarst/allofplos","forks_url":"https://api.github.com/repos/jgarst/allofplos/forks","keys_url":"https://api.github.com/repos/jgarst/allofplos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgarst/allofplos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgarst/allofplos/teams","hooks_url":"https://api.github.com/repos/jgarst/allofplos/hooks","issue_events_url":"https://api.github.com/repos/jgarst/allofplos/issues/events{/number}","events_url":"https://api.github.com/repos/jgarst/allofplos/events","assignees_url":"https://api.github.com/repos/jgarst/allofplos/assignees{/user}","branches_url":"https://api.github.com/repos/jgarst/allofplos/branches{/branch}","tags_url":"https://api.github.com/repos/jgarst/allofplos/tags","blobs_url":"https://api.github.com/repos/jgarst/allofplos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgarst/allofplos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgarst/allofplos/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgarst/allofplos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgarst/allofplos/statuses/{sha}","languages_url":"https://api.github.com/repos/jgarst/allofplos/languages","stargazers_url":"https://api.github.com/repos/jgarst/allofplos/stargazers","contributors_url":"https://api.github.com/repos/jgarst/allofplos/contributors","subscribers_url":"https://api.github.com/repos/jgarst/allofplos/subscribers","subscription_url":"https://api.github.com/repos/jgarst/allofplos/subscription","commits_url":"https://api.github.com/repos/jgarst/allofplos/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgarst/allofplos/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgarst/allofplos/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgarst/allofplos/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgarst/allofplos/contents/{+path}","compare_url":"https://api.github.com/repos/jgarst/allofplos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgarst/allofplos/merges","archive_url":"https://api.github.com/repos/jgarst/allofplos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgarst/allofplos/downloads","issues_url":"https://api.github.com/repos/jgarst/allofplos/issues{/number}","pulls_url":"https://api.github.com/repos/jgarst/allofplos/pulls{/number}","milestones_url":"https://api.github.com/repos/jgarst/allofplos/milestones{/number}","notifications_url":"https://api.github.com/repos/jgarst/allofplos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgarst/allofplos/labels{/name}","releases_url":"https://api.github.com/repos/jgarst/allofplos/releases{/id}","deployments_url":"https://api.github.com/repos/jgarst/allofplos/deployments","created_at":"2018-07-14T15:34:18Z","updated_at":"2018-07-14T15:34:21Z","pushed_at":"2018-07-14T22:36:26Z","git_url":"git://github.com/jgarst/allofplos.git","ssh_url":"git@github.com:jgarst/allofplos.git","clone_url":"https://github.com/jgarst/allofplos.git","svn_url":"https://github.com/jgarst/allofplos","homepage":null,"size":4516,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PLOS:master","ref":"master","sha":"3165bed2e19612ace1710a99f709bd71b5410798","user":{"login":"PLOS","id":1891781,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTE3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/1891781?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS","html_url":"https://github.com/PLOS","followers_url":"https://api.github.com/users/PLOS/followers","following_url":"https://api.github.com/users/PLOS/following{/other_user}","gists_url":"https://api.github.com/users/PLOS/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS/subscriptions","organizations_url":"https://api.github.com/users/PLOS/orgs","repos_url":"https://api.github.com/users/PLOS/repos","events_url":"https://api.github.com/users/PLOS/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS/received_events","type":"Organization","site_admin":false},"repo":{"id":104312447,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQzMTI0NDc=","name":"allofplos","full_name":"PLOS/allofplos","owner":{"login":"PLOS","id":1891781,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTE3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/1891781?v=4","gravatar_id":"","url":"https://api.github.com/users/PLOS","html_url":"https://github.com/PLOS","followers_url":"https://api.github.com/users/PLOS/followers","following_url":"https://api.github.com/users/PLOS/following{/other_user}","gists_url":"https://api.github.com/users/PLOS/gists{/gist_id}","starred_url":"https://api.github.com/users/PLOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLOS/subscriptions","organizations_url":"https://api.github.com/users/PLOS/orgs","repos_url":"https://api.github.com/users/PLOS/repos","events_url":"https://api.github.com/users/PLOS/events{/privacy}","received_events_url":"https://api.github.com/users/PLOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PLOS/allofplos","description":"Repository for the allofplos project.","fork":false,"url":"https://api.github.com/repos/PLOS/allofplos","forks_url":"https://api.github.com/repos/PLOS/allofplos/forks","keys_url":"https://api.github.com/repos/PLOS/allofplos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PLOS/allofplos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PLOS/allofplos/teams","hooks_url":"https://api.github.com/repos/PLOS/allofplos/hooks","issue_events_url":"https://api.github.com/repos/PLOS/allofplos/issues/events{/number}","events_url":"https://api.github.com/repos/PLOS/allofplos/events","assignees_url":"https://api.github.com/repos/PLOS/allofplos/assignees{/user}","branches_url":"https://api.github.com/repos/PLOS/allofplos/branches{/branch}","tags_url":"https://api.github.com/repos/PLOS/allofplos/tags","blobs_url":"https://api.github.com/repos/PLOS/allofplos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PLOS/allofplos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PLOS/allofplos/git/refs{/sha}","trees_url":"https://api.github.com/repos/PLOS/allofplos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PLOS/allofplos/statuses/{sha}","languages_url":"https://api.github.com/repos/PLOS/allofplos/languages","stargazers_url":"https://api.github.com/repos/PLOS/allofplos/stargazers","contributors_url":"https://api.github.com/repos/PLOS/allofplos/contributors","subscribers_url":"https://api.github.com/repos/PLOS/allofplos/subscribers","subscription_url":"https://api.github.com/repos/PLOS/allofplos/subscription","commits_url":"https://api.github.com/repos/PLOS/allofplos/commits{/sha}","git_commits_url":"https://api.github.com/repos/PLOS/allofplos/git/commits{/sha}","comments_url":"https://api.github.com/repos/PLOS/allofplos/comments{/number}","issue_comment_url":"https://api.github.com/repos/PLOS/allofplos/issues/comments{/number}","contents_url":"https://api.github.com/repos/PLOS/allofplos/contents/{+path}","compare_url":"https://api.github.com/repos/PLOS/allofplos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PLOS/allofplos/merges","archive_url":"https://api.github.com/repos/PLOS/allofplos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PLOS/allofplos/downloads","issues_url":"https://api.github.com/repos/PLOS/allofplos/issues{/number}","pulls_url":"https://api.github.com/repos/PLOS/allofplos/pulls{/number}","milestones_url":"https://api.github.com/repos/PLOS/allofplos/milestones{/number}","notifications_url":"https://api.github.com/repos/PLOS/allofplos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PLOS/allofplos/labels{/name}","releases_url":"https://api.github.com/repos/PLOS/allofplos/releases{/id}","deployments_url":"https://api.github.com/repos/PLOS/allofplos/deployments","created_at":"2017-09-21T06:54:40Z","updated_at":"2018-07-15T15:49:12Z","pushed_at":"2018-07-15T15:49:09Z","git_url":"git://github.com/PLOS/allofplos.git","ssh_url":"git@github.com:PLOS/allofplos.git","clone_url":"https://github.com/PLOS/allofplos.git","svn_url":"https://github.com/PLOS/allofplos","homepage":null,"size":4518,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":33,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/117"},"html":{"href":"https://github.com/PLOS/allofplos/pull/117"},"issue":{"href":"https://api.github.com/repos/PLOS/allofplos/issues/117"},"comments":{"href":"https://api.github.com/repos/PLOS/allofplos/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PLOS/allofplos/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/PLOS/allofplos/statuses/d11658e848a063e62da477d5f56839b9938588f4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sbassi"}}