{"action":"created","comment":{"url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments/73364624","id":73364624,"diff_hunk":"@@ -0,0 +1,131 @@\n+import argparse\n+import importlib\n+import re\n+import subprocess\n+import sys\n+\n+from coala_utils.Question import ask_question\n+from coalib.collecting.Collectors import get_all_bears_names\n+from coalib.collecting.Importers import iimport_objects\n+from coalib.misc.Shell import call_without_output\n+from prompt_toolkit import prompt\n+from prompt_toolkit.contrib.completers import WordCompleter\n+from pygments.lexers import SqlLexer\n+\n+\n+def install_pip_package(package_name):\n+    \"\"\"\n+    Uses call to install a PyPi package.\n+\n+    :param package_name: The package to be installed.\n+    \"\"\"\n+    subprocess.call(['sudo', sys.executable, '-m',\n+        'pip', 'install', package_name, '--upgrade'])","path":"bears/installation_tool.py","position":23,"original_position":23,"commit_id":"d082bd7b34ea6c65e588b1508158dc121f171e2f","original_commit_id":"d082bd7b34ea6c65e588b1508158dc121f171e2f","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"body":"The code does not comply to PEP8.\n\n*PEP8Bear, severity NORMAL, section `autopep8`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/bears/installation_tool.py\n+++ b/bears/installation_tool.py\n@@ -20,7 +20,7 @@\n     :param package_name: The package to be installed.\n     \"\"\"\n     subprocess.call(['sudo', sys.executable, '-m',\n-        'pip', 'install', package_name, '--upgrade'])\n+                     'pip', 'install', package_name, '--upgrade'])\n \n \n def get_output(command):\n```","created_at":"2016-08-03T15:56:09Z","updated_at":"2016-08-03T15:56:09Z","html_url":"https://github.com/coala-analyzer/coala-bears/pull/649#discussion_r73364624","pull_request_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649","_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments/73364624"},"html":{"href":"https://github.com/coala-analyzer/coala-bears/pull/649#discussion_r73364624"},"pull_request":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649"}}},"pull_request":{"url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649","id":79931718,"html_url":"https://github.com/coala-analyzer/coala-bears/pull/649","diff_url":"https://github.com/coala-analyzer/coala-bears/pull/649.diff","patch_url":"https://github.com/coala-analyzer/coala-bears/pull/649.patch","issue_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/649","number":649,"state":"open","locked":false,"title":"Add Installation Tool","user":{"login":"Adrianzatreanu","id":15572459,"avatar_url":"https://avatars.githubusercontent.com/u/15572459?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrianzatreanu","html_url":"https://github.com/Adrianzatreanu","followers_url":"https://api.github.com/users/Adrianzatreanu/followers","following_url":"https://api.github.com/users/Adrianzatreanu/following{/other_user}","gists_url":"https://api.github.com/users/Adrianzatreanu/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrianzatreanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrianzatreanu/subscriptions","organizations_url":"https://api.github.com/users/Adrianzatreanu/orgs","repos_url":"https://api.github.com/users/Adrianzatreanu/repos","events_url":"https://api.github.com/users/Adrianzatreanu/events{/privacy}","received_events_url":"https://api.github.com/users/Adrianzatreanu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-03T15:55:31Z","updated_at":"2016-08-03T15:56:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d407ad5c89df71634930c47d00b6c9373027059","assignee":{"login":"justuswilhelm","id":1641042,"avatar_url":"https://avatars.githubusercontent.com/u/1641042?v=3","gravatar_id":"","url":"https://api.github.com/users/justuswilhelm","html_url":"https://github.com/justuswilhelm","followers_url":"https://api.github.com/users/justuswilhelm/followers","following_url":"https://api.github.com/users/justuswilhelm/following{/other_user}","gists_url":"https://api.github.com/users/justuswilhelm/gists{/gist_id}","starred_url":"https://api.github.com/users/justuswilhelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justuswilhelm/subscriptions","organizations_url":"https://api.github.com/users/justuswilhelm/orgs","repos_url":"https://api.github.com/users/justuswilhelm/repos","events_url":"https://api.github.com/users/justuswilhelm/events{/privacy}","received_events_url":"https://api.github.com/users/justuswilhelm/received_events","type":"User","site_admin":false},"assignees":[{"login":"justuswilhelm","id":1641042,"avatar_url":"https://avatars.githubusercontent.com/u/1641042?v=3","gravatar_id":"","url":"https://api.github.com/users/justuswilhelm","html_url":"https://github.com/justuswilhelm","followers_url":"https://api.github.com/users/justuswilhelm/followers","following_url":"https://api.github.com/users/justuswilhelm/following{/other_user}","gists_url":"https://api.github.com/users/justuswilhelm/gists{/gist_id}","starred_url":"https://api.github.com/users/justuswilhelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justuswilhelm/subscriptions","organizations_url":"https://api.github.com/users/justuswilhelm/orgs","repos_url":"https://api.github.com/users/justuswilhelm/repos","events_url":"https://api.github.com/users/justuswilhelm/events{/privacy}","received_events_url":"https://api.github.com/users/justuswilhelm/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649/commits","review_comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649/comments","review_comment_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/649/comments","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/d082bd7b34ea6c65e588b1508158dc121f171e2f","head":{"label":"Adrianzatreanu:rest_reqs","ref":"rest_reqs","sha":"d082bd7b34ea6c65e588b1508158dc121f171e2f","user":{"login":"Adrianzatreanu","id":15572459,"avatar_url":"https://avatars.githubusercontent.com/u/15572459?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrianzatreanu","html_url":"https://github.com/Adrianzatreanu","followers_url":"https://api.github.com/users/Adrianzatreanu/followers","following_url":"https://api.github.com/users/Adrianzatreanu/following{/other_user}","gists_url":"https://api.github.com/users/Adrianzatreanu/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrianzatreanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrianzatreanu/subscriptions","organizations_url":"https://api.github.com/users/Adrianzatreanu/orgs","repos_url":"https://api.github.com/users/Adrianzatreanu/repos","events_url":"https://api.github.com/users/Adrianzatreanu/events{/privacy}","received_events_url":"https://api.github.com/users/Adrianzatreanu/received_events","type":"User","site_admin":false},"repo":{"id":52351313,"name":"coala-bears","full_name":"Adrianzatreanu/coala-bears","owner":{"login":"Adrianzatreanu","id":15572459,"avatar_url":"https://avatars.githubusercontent.com/u/15572459?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrianzatreanu","html_url":"https://github.com/Adrianzatreanu","followers_url":"https://api.github.com/users/Adrianzatreanu/followers","following_url":"https://api.github.com/users/Adrianzatreanu/following{/other_user}","gists_url":"https://api.github.com/users/Adrianzatreanu/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrianzatreanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrianzatreanu/subscriptions","organizations_url":"https://api.github.com/users/Adrianzatreanu/orgs","repos_url":"https://api.github.com/users/Adrianzatreanu/repos","events_url":"https://api.github.com/users/Adrianzatreanu/events{/privacy}","received_events_url":"https://api.github.com/users/Adrianzatreanu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Adrianzatreanu/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/Adrianzatreanu/coala-bears","forks_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/forks","keys_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/teams","hooks_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/events","assignees_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/tags","blobs_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/languages","stargazers_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/subscription","commits_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/merges","archive_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/downloads","issues_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/Adrianzatreanu/coala-bears/deployments","created_at":"2016-02-23T10:36:15Z","updated_at":"2016-02-23T10:36:16Z","pushed_at":"2016-08-03T15:55:06Z","git_url":"git://github.com/Adrianzatreanu/coala-bears.git","ssh_url":"git@github.com:Adrianzatreanu/coala-bears.git","clone_url":"https://github.com/Adrianzatreanu/coala-bears.git","svn_url":"https://github.com/Adrianzatreanu/coala-bears","homepage":"http://coala-analyzer.org/","size":836,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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-analyzer:master","ref":"master","sha":"781ead1315ab8dbac481d0f8a6bdc080dc0d8ef1","user":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"repo":{"id":51688289,"name":"coala-bears","full_name":"coala-analyzer/coala-bears","owner":{"login":"coala-analyzer","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala-analyzer","html_url":"https://github.com/coala-analyzer","followers_url":"https://api.github.com/users/coala-analyzer/followers","following_url":"https://api.github.com/users/coala-analyzer/following{/other_user}","gists_url":"https://api.github.com/users/coala-analyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/coala-analyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala-analyzer/subscriptions","organizations_url":"https://api.github.com/users/coala-analyzer/orgs","repos_url":"https://api.github.com/users/coala-analyzer/repos","events_url":"https://api.github.com/users/coala-analyzer/events{/privacy}","received_events_url":"https://api.github.com/users/coala-analyzer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala-analyzer/coala-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala-analyzer/coala-bears","forks_url":"https://api.github.com/repos/coala-analyzer/coala-bears/forks","keys_url":"https://api.github.com/repos/coala-analyzer/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala-analyzer/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala-analyzer/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala-analyzer/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala-analyzer/coala-bears/events","assignees_url":"https://api.github.com/repos/coala-analyzer/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala-analyzer/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala-analyzer/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala-analyzer/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala-analyzer/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala-analyzer/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala-analyzer/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala-analyzer/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala-analyzer/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala-analyzer/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala-analyzer/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala-analyzer/coala-bears/merges","archive_url":"https://api.github.com/repos/coala-analyzer/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala-analyzer/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala-analyzer/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala-analyzer/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala-analyzer/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala-analyzer/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala-analyzer/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala-analyzer/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2016-08-02T08:32:49Z","pushed_at":"2016-08-03T15:55:31Z","git_url":"git://github.com/coala-analyzer/coala-bears.git","ssh_url":"git@github.com:coala-analyzer/coala-bears.git","clone_url":"https://github.com/coala-analyzer/coala-bears.git","svn_url":"https://github.com/coala-analyzer/coala-bears","homepage":"http://coala-analyzer.org/","size":9062,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":165,"forks":66,"open_issues":165,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649"},"html":{"href":"https://github.com/coala-analyzer/coala-bears/pull/649"},"issue":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/649"},"comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/issues/649/comments"},"review_comments":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649/comments"},"review_comment":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/pulls/649/commits"},"statuses":{"href":"https://api.github.com/repos/coala-analyzer/coala-bears/statuses/d082bd7b34ea6c65e588b1508158dc121f171e2f"}}}}
{"actor":{"display_login":"gitmate-bot"}}