{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/comments/111870408","pull_request_review_id":33141950,"id":111870408,"diff_hunk":"@@ -31,6 +31,18 @@ class GitCommitBear(GlobalBear):\n     }\n     CONCATENATION_KEYWORDS = [r',', r'\\sand\\s']\n \n+    _nltk_data_downloaded = False\n+\n+    @classmethod\n+    def setup_dependencies(cls):\n+        if not cls._nltk_data_downloaded:\n+            nltk.download([\n+                'punkt',\n+                'maxent_treebank_pos_tagger',\n+                'averaged_perceptron_tagger',\n+            ])\n+            cls._nltk_data_downloaded = True","path":"bears/vcs/git/GitCommitBear.py","position":14,"original_position":14,"commit_id":"87829fa148c5e7f8b4dbf30b7d73afd3ebb8865d","original_commit_id":"87829fa148c5e7f8b4dbf30b7d73afd3ebb8865d","user":{"login":"SanketDG","id":8980971,"avatar_url":"https://avatars0.githubusercontent.com/u/8980971?v=3","gravatar_id":"","url":"https://api.github.com/users/SanketDG","html_url":"https://github.com/SanketDG","followers_url":"https://api.github.com/users/SanketDG/followers","following_url":"https://api.github.com/users/SanketDG/following{/other_user}","gists_url":"https://api.github.com/users/SanketDG/gists{/gist_id}","starred_url":"https://api.github.com/users/SanketDG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanketDG/subscriptions","organizations_url":"https://api.github.com/users/SanketDG/orgs","repos_url":"https://api.github.com/users/SanketDG/repos","events_url":"https://api.github.com/users/SanketDG/events{/privacy}","received_events_url":"https://api.github.com/users/SanketDG/received_events","type":"User","site_admin":false},"body":"why not use this variable later in the code for a check?","created_at":"2017-04-18T04:50:58Z","updated_at":"2017-04-18T04:51:02Z","html_url":"https://github.com/coala/coala-bears/pull/1619#discussion_r111870408","pull_request_url":"https://api.github.com/repos/coala/coala-bears/pulls/1619","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments/111870408"},"html":{"href":"https://github.com/coala/coala-bears/pull/1619#discussion_r111870408"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1619"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/1619","id":116227751,"html_url":"https://github.com/coala/coala-bears/pull/1619","diff_url":"https://github.com/coala/coala-bears/pull/1619.diff","patch_url":"https://github.com/coala/coala-bears/pull/1619.patch","issue_url":"https://api.github.com/repos/coala/coala-bears/issues/1619","number":1619,"state":"open","locked":false,"title":"GitCommitBear: Download nltk data","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars2.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"body":"The nltk data is a dependency when setting shortlog_imperative_check\r\nis enabled, which is default.  The bear should do this check\r\ninstead of requiring the user does it prior to running coala.\r\n\r\nFixes https://github.com/coala/coala-bears/issues/1617\r\n","created_at":"2017-04-18T00:14:22Z","updated_at":"2017-04-18T04:51:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b4c754331dcb736ee87fc5bf6d2375dbe729ad9","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/coala/coala-bears/milestones/9","html_url":"https://github.com/coala/coala-bears/milestone/9","labels_url":"https://api.github.com/repos/coala/coala-bears/milestones/9/labels","id":2268959,"number":9,"title":"0.11","description":"","creator":{"login":"Mixih","id":5818750,"avatar_url":"https://avatars1.githubusercontent.com/u/5818750?v=3","gravatar_id":"","url":"https://api.github.com/users/Mixih","html_url":"https://github.com/Mixih","followers_url":"https://api.github.com/users/Mixih/followers","following_url":"https://api.github.com/users/Mixih/following{/other_user}","gists_url":"https://api.github.com/users/Mixih/gists{/gist_id}","starred_url":"https://api.github.com/users/Mixih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mixih/subscriptions","organizations_url":"https://api.github.com/users/Mixih/orgs","repos_url":"https://api.github.com/users/Mixih/repos","events_url":"https://api.github.com/users/Mixih/events{/privacy}","received_events_url":"https://api.github.com/users/Mixih/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2017-01-21T20:12:43Z","updated_at":"2017-04-18T01:06:38Z","due_on":"2017-03-11T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/coala/coala-bears/pulls/1619/commits","review_comments_url":"https://api.github.com/repos/coala/coala-bears/pulls/1619/comments","review_comment_url":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala-bears/issues/1619/comments","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/87829fa148c5e7f8b4dbf30b7d73afd3ebb8865d","head":{"label":"jayvdb:gitcommitbear-fetch-nltk-data","ref":"gitcommitbear-fetch-nltk-data","sha":"87829fa148c5e7f8b4dbf30b7d73afd3ebb8865d","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars2.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"repo":{"id":68375098,"name":"coala-bears","full_name":"jayvdb/coala-bears","owner":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars2.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jayvdb/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/jayvdb/coala-bears","forks_url":"https://api.github.com/repos/jayvdb/coala-bears/forks","keys_url":"https://api.github.com/repos/jayvdb/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayvdb/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayvdb/coala-bears/teams","hooks_url":"https://api.github.com/repos/jayvdb/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/jayvdb/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/jayvdb/coala-bears/events","assignees_url":"https://api.github.com/repos/jayvdb/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/jayvdb/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/jayvdb/coala-bears/tags","blobs_url":"https://api.github.com/repos/jayvdb/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayvdb/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayvdb/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayvdb/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayvdb/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/jayvdb/coala-bears/languages","stargazers_url":"https://api.github.com/repos/jayvdb/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/jayvdb/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/jayvdb/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/jayvdb/coala-bears/subscription","commits_url":"https://api.github.com/repos/jayvdb/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayvdb/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayvdb/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayvdb/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayvdb/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/jayvdb/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayvdb/coala-bears/merges","archive_url":"https://api.github.com/repos/jayvdb/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayvdb/coala-bears/downloads","issues_url":"https://api.github.com/repos/jayvdb/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/jayvdb/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/jayvdb/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/jayvdb/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayvdb/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/jayvdb/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/jayvdb/coala-bears/deployments","created_at":"2016-09-16T11:41:04Z","updated_at":"2016-09-16T11:41:06Z","pushed_at":"2017-04-17T23:34:27Z","git_url":"git://github.com/jayvdb/coala-bears.git","ssh_url":"git@github.com:jayvdb/coala-bears.git","clone_url":"https://github.com/jayvdb/coala-bears.git","svn_url":"https://github.com/jayvdb/coala-bears","homepage":"http://coala-analyzer.org/","size":1789,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"72bc27f9e2b25626b528f659ab12ea8ccf5d3741","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars0.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":51688289,"name":"coala-bears","full_name":"coala/coala-bears","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars0.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala/coala-bears","forks_url":"https://api.github.com/repos/coala/coala-bears/forks","keys_url":"https://api.github.com/repos/coala/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala-bears/events","assignees_url":"https://api.github.com/repos/coala/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala-bears/merges","archive_url":"https://api.github.com/repos/coala/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2017-04-15T07:18:39Z","pushed_at":"2017-04-18T02:50:43Z","git_url":"git://github.com/coala/coala-bears.git","ssh_url":"git@github.com:coala/coala-bears.git","clone_url":"https://github.com/coala/coala-bears.git","svn_url":"https://github.com/coala/coala-bears","homepage":"https://coala.io/","size":1583,"stargazers_count":105,"watchers_count":105,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":270,"mirror_url":null,"open_issues_count":409,"forks":270,"open_issues":409,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1619"},"html":{"href":"https://github.com/coala/coala-bears/pull/1619"},"issue":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1619"},"comments":{"href":"https://api.github.com/repos/coala/coala-bears/issues/1619/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1619/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/1619/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-bears/statuses/87829fa148c5e7f8b4dbf30b7d73afd3ebb8865d"}}}}
{"actor":{"display_login":"SanketDG"}}