{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala/pulls/comments/128926234","pull_request_review_id":51649898,"id":128926234,"diff_hunk":"@@ -294,19 +295,22 @@ def print_result(console_printer,\n \n     if interactive:\n         cli_actions = CLI_ACTIONS\n-        show_patch_action = ShowPatchAction()\n-        if show_patch_action.is_applicable(\n-                result, file_dict, file_diff_dict) is True:\n-            diff_size = sum(len(diff) for diff in result.diffs.values())\n-            if diff_size <= DIFF_EXCERPT_MAX_SIZE:\n-                show_patch_action.apply_from_section(result,\n-                                                     file_dict,\n-                                                     file_diff_dict,\n-                                                     section)\n-                cli_actions = tuple(action for action in cli_actions\n-                                    if not isinstance(action, ShowPatchAction))\n-            else:\n-                print_diffs_info(result.diffs, console_printer)\n+        _actions = (ShowPatchAction(), PrintAspectAction())\n+        for _action in _actions:\n+            if _action.is_applicable(result, ","path":"coalib/output/ConsoleInteraction.py","position":27,"original_position":27,"commit_id":"c32c36f1d2a256760e741dfe822587c970bd9063","original_commit_id":"c32c36f1d2a256760e741dfe822587c970bd9063","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars0.githubusercontent.com/u/15421488?v=4","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*Origin: PEP8Bear, Section: `autopep8`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/coalib/output/ConsoleInteraction.py\n+++ b/coalib/output/ConsoleInteraction.py\n@@ -297,7 +297,7 @@\n         cli_actions = CLI_ACTIONS\n         _actions = (ShowPatchAction(), PrintAspectAction())\n         for _action in _actions:\n-            if _action.is_applicable(result, \n+            if _action.is_applicable(result,\n                                      file_dict, file_diff_dict) is True:\n                 diff_size = sum(len(diff) for diff in result.diffs.values())\n                 if (diff_size <= DIFF_EXCERPT_MAX_SIZE or\n```","created_at":"2017-07-23T18:33:53Z","updated_at":"2017-07-23T18:33:53Z","html_url":"https://github.com/coala/coala/pull/4367#discussion_r128926234","pull_request_url":"https://api.github.com/repos/coala/coala/pulls/4367","_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/comments/128926234"},"html":{"href":"https://github.com/coala/coala/pull/4367#discussion_r128926234"},"pull_request":{"href":"https://api.github.com/repos/coala/coala/pulls/4367"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala/pulls/4367","id":126060342,"html_url":"https://github.com/coala/coala/pull/4367","diff_url":"https://github.com/coala/coala/pull/4367.diff","patch_url":"https://github.com/coala/coala/pull/4367.patch","issue_url":"https://api.github.com/repos/coala/coala/issues/4367","number":4367,"state":"open","locked":false,"title":"ConsoleInteraction: Use PrintAspectAction","user":{"login":"Asnelchristian","id":10449314,"avatar_url":"https://avatars2.githubusercontent.com/u/10449314?v=4","gravatar_id":"","url":"https://api.github.com/users/Asnelchristian","html_url":"https://github.com/Asnelchristian","followers_url":"https://api.github.com/users/Asnelchristian/followers","following_url":"https://api.github.com/users/Asnelchristian/following{/other_user}","gists_url":"https://api.github.com/users/Asnelchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/Asnelchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asnelchristian/subscriptions","organizations_url":"https://api.github.com/users/Asnelchristian/orgs","repos_url":"https://api.github.com/users/Asnelchristian/repos","events_url":"https://api.github.com/users/Asnelchristian/events{/privacy}","received_events_url":"https://api.github.com/users/Asnelchristian/received_events","type":"User","site_admin":false},"body":"\r\n","created_at":"2017-06-16T15:39:48Z","updated_at":"2017-07-23T18:33:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65b01f25a0d152bc198814ae46ee41e216087b7d","assignee":{"login":"Asnelchristian","id":10449314,"avatar_url":"https://avatars2.githubusercontent.com/u/10449314?v=4","gravatar_id":"","url":"https://api.github.com/users/Asnelchristian","html_url":"https://github.com/Asnelchristian","followers_url":"https://api.github.com/users/Asnelchristian/followers","following_url":"https://api.github.com/users/Asnelchristian/following{/other_user}","gists_url":"https://api.github.com/users/Asnelchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/Asnelchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asnelchristian/subscriptions","organizations_url":"https://api.github.com/users/Asnelchristian/orgs","repos_url":"https://api.github.com/users/Asnelchristian/repos","events_url":"https://api.github.com/users/Asnelchristian/events{/privacy}","received_events_url":"https://api.github.com/users/Asnelchristian/received_events","type":"User","site_admin":false},"assignees":[{"login":"Asnelchristian","id":10449314,"avatar_url":"https://avatars2.githubusercontent.com/u/10449314?v=4","gravatar_id":"","url":"https://api.github.com/users/Asnelchristian","html_url":"https://github.com/Asnelchristian","followers_url":"https://api.github.com/users/Asnelchristian/followers","following_url":"https://api.github.com/users/Asnelchristian/following{/other_user}","gists_url":"https://api.github.com/users/Asnelchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/Asnelchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asnelchristian/subscriptions","organizations_url":"https://api.github.com/users/Asnelchristian/orgs","repos_url":"https://api.github.com/users/Asnelchristian/repos","events_url":"https://api.github.com/users/Asnelchristian/events{/privacy}","received_events_url":"https://api.github.com/users/Asnelchristian/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"Udayan12167","id":6421568,"avatar_url":"https://avatars1.githubusercontent.com/u/6421568?v=4","gravatar_id":"","url":"https://api.github.com/users/Udayan12167","html_url":"https://github.com/Udayan12167","followers_url":"https://api.github.com/users/Udayan12167/followers","following_url":"https://api.github.com/users/Udayan12167/following{/other_user}","gists_url":"https://api.github.com/users/Udayan12167/gists{/gist_id}","starred_url":"https://api.github.com/users/Udayan12167/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Udayan12167/subscriptions","organizations_url":"https://api.github.com/users/Udayan12167/orgs","repos_url":"https://api.github.com/users/Udayan12167/repos","events_url":"https://api.github.com/users/Udayan12167/events{/privacy}","received_events_url":"https://api.github.com/users/Udayan12167/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/coala/coala/milestones/17","html_url":"https://github.com/coala/coala/milestone/17","labels_url":"https://api.github.com/repos/coala/coala/milestones/17/labels","id":2511307,"number":17,"title":"#aspectsYEAH","description":"The mother of all futures of coala!\r\n\r\nhttps://github.com/orgs/coala/projects/3\r\n\r\nhttps://github.com/orgs/coala/projects/2\r\n","creator":{"login":"userzimmermann","id":2088633,"avatar_url":"https://avatars3.githubusercontent.com/u/2088633?v=4","gravatar_id":"","url":"https://api.github.com/users/userzimmermann","html_url":"https://github.com/userzimmermann","followers_url":"https://api.github.com/users/userzimmermann/followers","following_url":"https://api.github.com/users/userzimmermann/following{/other_user}","gists_url":"https://api.github.com/users/userzimmermann/gists{/gist_id}","starred_url":"https://api.github.com/users/userzimmermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userzimmermann/subscriptions","organizations_url":"https://api.github.com/users/userzimmermann/orgs","repos_url":"https://api.github.com/users/userzimmermann/repos","events_url":"https://api.github.com/users/userzimmermann/events{/privacy}","received_events_url":"https://api.github.com/users/userzimmermann/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":19,"state":"open","created_at":"2017-05-09T22:10:19Z","updated_at":"2017-07-22T17:03:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/coala/coala/pulls/4367/commits","review_comments_url":"https://api.github.com/repos/coala/coala/pulls/4367/comments","review_comment_url":"https://api.github.com/repos/coala/coala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala/issues/4367/comments","statuses_url":"https://api.github.com/repos/coala/coala/statuses/c32c36f1d2a256760e741dfe822587c970bd9063","head":{"label":"Asnelchristian:asnel/wip","ref":"asnel/wip","sha":"c32c36f1d2a256760e741dfe822587c970bd9063","user":{"login":"Asnelchristian","id":10449314,"avatar_url":"https://avatars2.githubusercontent.com/u/10449314?v=4","gravatar_id":"","url":"https://api.github.com/users/Asnelchristian","html_url":"https://github.com/Asnelchristian","followers_url":"https://api.github.com/users/Asnelchristian/followers","following_url":"https://api.github.com/users/Asnelchristian/following{/other_user}","gists_url":"https://api.github.com/users/Asnelchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/Asnelchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asnelchristian/subscriptions","organizations_url":"https://api.github.com/users/Asnelchristian/orgs","repos_url":"https://api.github.com/users/Asnelchristian/repos","events_url":"https://api.github.com/users/Asnelchristian/events{/privacy}","received_events_url":"https://api.github.com/users/Asnelchristian/received_events","type":"User","site_admin":false},"repo":{"id":59472985,"name":"coala","full_name":"Asnelchristian/coala","owner":{"login":"Asnelchristian","id":10449314,"avatar_url":"https://avatars2.githubusercontent.com/u/10449314?v=4","gravatar_id":"","url":"https://api.github.com/users/Asnelchristian","html_url":"https://github.com/Asnelchristian","followers_url":"https://api.github.com/users/Asnelchristian/followers","following_url":"https://api.github.com/users/Asnelchristian/following{/other_user}","gists_url":"https://api.github.com/users/Asnelchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/Asnelchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asnelchristian/subscriptions","organizations_url":"https://api.github.com/users/Asnelchristian/orgs","repos_url":"https://api.github.com/users/Asnelchristian/repos","events_url":"https://api.github.com/users/Asnelchristian/events{/privacy}","received_events_url":"https://api.github.com/users/Asnelchristian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Asnelchristian/coala","description":"Easy to use code analysis framework/application - yes! For all languages!","fork":true,"url":"https://api.github.com/repos/Asnelchristian/coala","forks_url":"https://api.github.com/repos/Asnelchristian/coala/forks","keys_url":"https://api.github.com/repos/Asnelchristian/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Asnelchristian/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Asnelchristian/coala/teams","hooks_url":"https://api.github.com/repos/Asnelchristian/coala/hooks","issue_events_url":"https://api.github.com/repos/Asnelchristian/coala/issues/events{/number}","events_url":"https://api.github.com/repos/Asnelchristian/coala/events","assignees_url":"https://api.github.com/repos/Asnelchristian/coala/assignees{/user}","branches_url":"https://api.github.com/repos/Asnelchristian/coala/branches{/branch}","tags_url":"https://api.github.com/repos/Asnelchristian/coala/tags","blobs_url":"https://api.github.com/repos/Asnelchristian/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Asnelchristian/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Asnelchristian/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/Asnelchristian/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Asnelchristian/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/Asnelchristian/coala/languages","stargazers_url":"https://api.github.com/repos/Asnelchristian/coala/stargazers","contributors_url":"https://api.github.com/repos/Asnelchristian/coala/contributors","subscribers_url":"https://api.github.com/repos/Asnelchristian/coala/subscribers","subscription_url":"https://api.github.com/repos/Asnelchristian/coala/subscription","commits_url":"https://api.github.com/repos/Asnelchristian/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/Asnelchristian/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/Asnelchristian/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/Asnelchristian/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/Asnelchristian/coala/contents/{+path}","compare_url":"https://api.github.com/repos/Asnelchristian/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Asnelchristian/coala/merges","archive_url":"https://api.github.com/repos/Asnelchristian/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Asnelchristian/coala/downloads","issues_url":"https://api.github.com/repos/Asnelchristian/coala/issues{/number}","pulls_url":"https://api.github.com/repos/Asnelchristian/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/Asnelchristian/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/Asnelchristian/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Asnelchristian/coala/labels{/name}","releases_url":"https://api.github.com/repos/Asnelchristian/coala/releases{/id}","deployments_url":"https://api.github.com/repos/Asnelchristian/coala/deployments","created_at":"2016-05-23T10:16:30Z","updated_at":"2016-05-23T10:16:31Z","pushed_at":"2017-07-23T18:32:43Z","git_url":"git://github.com/Asnelchristian/coala.git","ssh_url":"git@github.com:Asnelchristian/coala.git","clone_url":"https://github.com/Asnelchristian/coala.git","svn_url":"https://github.com/Asnelchristian/coala","homepage":"http://coala-analyzer.org/","size":11601,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"c4706db8e2d8f3df0f806480cfd1cff189c16963","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","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":19816973,"name":"coala","full_name":"coala/coala","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","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","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":false,"url":"https://api.github.com/repos/coala/coala","forks_url":"https://api.github.com/repos/coala/coala/forks","keys_url":"https://api.github.com/repos/coala/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala/teams","hooks_url":"https://api.github.com/repos/coala/coala/hooks","issue_events_url":"https://api.github.com/repos/coala/coala/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala/events","assignees_url":"https://api.github.com/repos/coala/coala/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala/tags","blobs_url":"https://api.github.com/repos/coala/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala/languages","stargazers_url":"https://api.github.com/repos/coala/coala/stargazers","contributors_url":"https://api.github.com/repos/coala/coala/contributors","subscribers_url":"https://api.github.com/repos/coala/coala/subscribers","subscription_url":"https://api.github.com/repos/coala/coala/subscription","commits_url":"https://api.github.com/repos/coala/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala/merges","archive_url":"https://api.github.com/repos/coala/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala/downloads","issues_url":"https://api.github.com/repos/coala/coala/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala/deployments","created_at":"2014-05-15T11:35:34Z","updated_at":"2017-07-23T02:47:56Z","pushed_at":"2017-07-23T18:32:45Z","git_url":"git://github.com/coala/coala.git","ssh_url":"git@github.com:coala/coala.git","clone_url":"https://github.com/coala/coala.git","svn_url":"https://github.com/coala/coala","homepage":"https://coala.io/","size":11850,"stargazers_count":1368,"watchers_count":1368,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":678,"mirror_url":null,"open_issues_count":650,"forks":678,"open_issues":650,"watchers":1368,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/4367"},"html":{"href":"https://github.com/coala/coala/pull/4367"},"issue":{"href":"https://api.github.com/repos/coala/coala/issues/4367"},"comments":{"href":"https://api.github.com/repos/coala/coala/issues/4367/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala/pulls/4367/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala/pulls/4367/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala/statuses/c32c36f1d2a256760e741dfe822587c970bd9063"}}}}
{"actor":{"display_login":"gitmate-bot"}}