{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/193384775","pull_request_review_id":126337507,"id":193384775,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzM4NDc3NQ==","diff_hunk":"@@ -0,0 +1,33 @@\n+import click\n+\n+from .checkers import obtain_references_without_record, create_table_of_references_missing_record\n+\n+@click.group()\n+def ref_wo_rec():\n+\t\"\"\"Commands to obtain references that have no record object\"\"\"\n+\n+\n+@ref_wo_rec.command()\n+def write_references():\n+\tclick.echo(obtain_references_without_record)\n+\n+\n+@ref_wo_rec.command()\n+@ref_wo_rec.argument('file_name',type=str)\n+@ref_wo_rec.option('--doi','-d',isflag=True, default=False,\n+\t\t\t\t   help='Write a file only with references with DOI')\n+@ref_wo_rec.option('--arxiv','-a',isflag=True, default=False,\n+\t\t\t\t   help='Write a file only with references with arxiv id')\n+def write_references_on_file():\n+\treference_list = obtain_references_without_record\n+\tresult_doi, result_arxiv = create_table_of_references_missing_record(data)\n+\n+\tif doi:\n+\t\twith open('{0}_doi.txt'.format(file_name),'w') as f:\n+\t\t\tfor item in result_doi:\n+\t\t\t\tf.write('{0}: {1}\\n'.format(item[0].encode('utf-8'),str(item[1]).encode('utf-8')))","path":"inspirehep/modules/records/cli.py","position":28,"original_position":28,"commit_id":"ba472ad189d03e488f07498f616be529a89ecc97","original_commit_id":"ba472ad189d03e488f07498f616be529a89ecc97","user":{"login":"michamos","id":2895793,"node_id":"MDQ6VXNlcjI4OTU3OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/2895793?v=4","gravatar_id":"","url":"https://api.github.com/users/michamos","html_url":"https://github.com/michamos","followers_url":"https://api.github.com/users/michamos/followers","following_url":"https://api.github.com/users/michamos/following{/other_user}","gists_url":"https://api.github.com/users/michamos/gists{/gist_id}","starred_url":"https://api.github.com/users/michamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michamos/subscriptions","organizations_url":"https://api.github.com/users/michamos/orgs","repos_url":"https://api.github.com/users/michamos/repos","events_url":"https://api.github.com/users/michamos/events{/privacy}","received_events_url":"https://api.github.com/users/michamos/received_events","type":"User","site_admin":false},"body":"look at the `click` documentation for file handling, I am sure it can handle this kind of things in a better way.","created_at":"2018-06-06T12:02:26Z","updated_at":"2018-06-06T12:14:35Z","html_url":"https://github.com/inspirehep/inspire-next/pull/3444#discussion_r193384775","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/193384775"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/3444#discussion_r193384775"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444","id":192429280,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNDI5Mjgw","html_url":"https://github.com/inspirehep/inspire-next/pull/3444","diff_url":"https://github.com/inspirehep/inspire-next/pull/3444.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/3444.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/3444","number":3444,"state":"open","locked":false,"title":"modules: add functionality to check references without records","user":{"login":"vbalbp","id":36045442,"node_id":"MDQ6VXNlcjM2MDQ1NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Victor Balbuena <vbalbp@gmail.com>\r\n\r\n<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\n\r\n## Related Issue\r\n<!--- If suggesting a new feature or change, please discuss it in an issue first -->\r\n<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->\r\n<!--- Please link to the issue here: -->\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] I have all the information that I need (if not, move to `RFC` and look for it).\r\n- [ ] I linked the related issue(s) in the corresponding commit logs.\r\n- [ ] I wrote [good commit log messages](https://github.com/torvalds/subsurface-for-dirk/blob/5f15ad5a86ada3c5e574041a5f9d85235322dabb/README#L92-L119).\r\n- [ ] My code follows the code style of this project.\r\n- [ ] I've added any new docs if API/utils methods were added.\r\n- [ ] I have updated the existing documentation accordingly.\r\n- [ ] I have added tests to cover my changes.\r\n- [ ] All new and existing tests passed.\r\n<!--- After this you can move the PR to `Needs Review` -->\r\n","created_at":"2018-06-04T14:36:47Z","updated_at":"2018-06-06T12:14:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dfea746c5697c2fff4631bb3f85a647b96d2443","assignee":{"login":"vbalbp","id":36045442,"node_id":"MDQ6VXNlcjM2MDQ1NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"assignees":[{"login":"vbalbp","id":36045442,"node_id":"MDQ6VXNlcjM2MDQ1NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":828439694,"node_id":"MDU6TGFiZWw4Mjg0Mzk2OTQ=","url":"https://api.github.com/repos/inspirehep/inspire-next/labels/Review:%20WIP","name":"Review: WIP","color":"e6e6e6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/3444/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/ba472ad189d03e488f07498f616be529a89ecc97","head":{"label":"vbalbp:checker","ref":"checker","sha":"ba472ad189d03e488f07498f616be529a89ecc97","user":{"login":"vbalbp","id":36045442,"node_id":"MDQ6VXNlcjM2MDQ1NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"repo":{"id":136037639,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMzc2Mzk=","name":"inspire-next","full_name":"vbalbp/inspire-next","owner":{"login":"vbalbp","id":36045442,"node_id":"MDQ6VXNlcjM2MDQ1NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/36045442?v=4","gravatar_id":"","url":"https://api.github.com/users/vbalbp","html_url":"https://github.com/vbalbp","followers_url":"https://api.github.com/users/vbalbp/followers","following_url":"https://api.github.com/users/vbalbp/following{/other_user}","gists_url":"https://api.github.com/users/vbalbp/gists{/gist_id}","starred_url":"https://api.github.com/users/vbalbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbalbp/subscriptions","organizations_url":"https://api.github.com/users/vbalbp/orgs","repos_url":"https://api.github.com/users/vbalbp/repos","events_url":"https://api.github.com/users/vbalbp/events{/privacy}","received_events_url":"https://api.github.com/users/vbalbp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbalbp/inspire-next","description":"The next version of INSPIRE","fork":true,"url":"https://api.github.com/repos/vbalbp/inspire-next","forks_url":"https://api.github.com/repos/vbalbp/inspire-next/forks","keys_url":"https://api.github.com/repos/vbalbp/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbalbp/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbalbp/inspire-next/teams","hooks_url":"https://api.github.com/repos/vbalbp/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/vbalbp/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/vbalbp/inspire-next/events","assignees_url":"https://api.github.com/repos/vbalbp/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/vbalbp/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/vbalbp/inspire-next/tags","blobs_url":"https://api.github.com/repos/vbalbp/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbalbp/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbalbp/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbalbp/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbalbp/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/vbalbp/inspire-next/languages","stargazers_url":"https://api.github.com/repos/vbalbp/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/vbalbp/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/vbalbp/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/vbalbp/inspire-next/subscription","commits_url":"https://api.github.com/repos/vbalbp/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbalbp/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbalbp/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbalbp/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbalbp/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/vbalbp/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbalbp/inspire-next/merges","archive_url":"https://api.github.com/repos/vbalbp/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbalbp/inspire-next/downloads","issues_url":"https://api.github.com/repos/vbalbp/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/vbalbp/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/vbalbp/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/vbalbp/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbalbp/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/vbalbp/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/vbalbp/inspire-next/deployments","created_at":"2018-06-04T14:30:35Z","updated_at":"2018-06-04T14:30:39Z","pushed_at":"2018-06-06T09:21:43Z","git_url":"git://github.com/vbalbp/inspire-next.git","ssh_url":"git@github.com:vbalbp/inspire-next.git","clone_url":"https://github.com/vbalbp/inspire-next.git","svn_url":"https://github.com/vbalbp/inspire-next","homepage":"https://labs.inspirehep.net","size":84059,"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":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inspirehep:master","ref":"master","sha":"092cb0db73539e099e014b86a5c5b9e2457332cd","user":{"login":"inspirehep","id":356664,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjY2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMTUxNQ==","name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjY2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"The next version of INSPIRE","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/inspirehep/inspire-next/deployments","created_at":"2013-12-16T09:11:58Z","updated_at":"2018-06-06T11:21:14Z","pushed_at":"2018-06-06T11:38:35Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":"https://labs.inspirehep.net","size":84067,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"archived":false,"open_issues_count":241,"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","node_id":"MDc6TGljZW5zZTk="},"forks":52,"open_issues":241,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/3444"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/3444"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/3444/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/3444/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/ba472ad189d03e488f07498f616be529a89ecc97"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"michamos"}}