{"action":"created","comment":{"url":"https://api.github.com/repos/coala-analyzer/coala/pulls/comments/59992157","id":59992157,"diff_hunk":"@@ -298,3 +298,29 @@ def decorated(*args, **kwargs):\n         return function(*args, **kwargs)\n \n     return decorated\n+\n+\n+class classproperty(property):\n+    \"\"\"\n+    Decorator to set a class function to a class property.\n+    \n+    Given a class like:\n+\n+    >>> class test:\n+    ...     @classproperty\n+    ...     def func(self):\n+    ...         return 1\n+    ","path":"coalib/misc/Decorators.py","position":16,"original_position":16,"commit_id":"cdca827a90dbb89dd33851a974b68b7a8d32a414","original_commit_id":"0f50e01936609ce263e630ed81acc575664abd36","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/coalib/misc/Decorators.py\n+++ b/coalib/misc/Decorators.py\n@@ -310,7 +310,7 @@\n     ...     @classproperty\n     ...     def func(self):\n     ...         return 1\n-    \n+\n     We can now access the class property using the class name:\n     \n     >>> test.func\n```","created_at":"2016-04-17T20:39:27Z","updated_at":"2016-04-17T20:39:27Z","html_url":"https://github.com/coala-analyzer/coala/pull/1936#discussion_r59992157","pull_request_url":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936","_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/comments/59992157"},"html":{"href":"https://github.com/coala-analyzer/coala/pull/1936#discussion_r59992157"},"pull_request":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936"}}},"pull_request":{"url":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936","id":63624440,"html_url":"https://github.com/coala-analyzer/coala/pull/1936","diff_url":"https://github.com/coala-analyzer/coala/pull/1936.diff","patch_url":"https://github.com/coala-analyzer/coala/pull/1936.patch","issue_url":"https://api.github.com/repos/coala-analyzer/coala/issues/1936","number":1936,"state":"open","locked":false,"title":"Bear: Add helper function name()","user":{"login":"djkonro","id":8269451,"avatar_url":"https://avatars.githubusercontent.com/u/8269451?v=3","gravatar_id":"","url":"https://api.github.com/users/djkonro","html_url":"https://github.com/djkonro","followers_url":"https://api.github.com/users/djkonro/followers","following_url":"https://api.github.com/users/djkonro/following{/other_user}","gists_url":"https://api.github.com/users/djkonro/gists{/gist_id}","starred_url":"https://api.github.com/users/djkonro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkonro/subscriptions","organizations_url":"https://api.github.com/users/djkonro/orgs","repos_url":"https://api.github.com/users/djkonro/repos","events_url":"https://api.github.com/users/djkonro/events{/privacy}","received_events_url":"https://api.github.com/users/djkonro/received_events","type":"User","site_admin":false},"body":"Frequently, we need to use the name of the bear\r\ninside the bear.\r\nThis should add the name() function which allows\r\nusers to just do self.name() easily.\r\n\r\nFixes https://github.com/coala-analyzer/coala/issues/1893","created_at":"2016-03-21T20:10:02Z","updated_at":"2016-04-17T20:39:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cebf27dc6aae09478a48b2aea4e594c0295840da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936/commits","review_comments_url":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936/comments","review_comment_url":"https://api.github.com/repos/coala-analyzer/coala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala-analyzer/coala/issues/1936/comments","statuses_url":"https://api.github.com/repos/coala-analyzer/coala/statuses/cdca827a90dbb89dd33851a974b68b7a8d32a414","head":{"label":"djkonro:master","ref":"master","sha":"cdca827a90dbb89dd33851a974b68b7a8d32a414","user":{"login":"djkonro","id":8269451,"avatar_url":"https://avatars.githubusercontent.com/u/8269451?v=3","gravatar_id":"","url":"https://api.github.com/users/djkonro","html_url":"https://github.com/djkonro","followers_url":"https://api.github.com/users/djkonro/followers","following_url":"https://api.github.com/users/djkonro/following{/other_user}","gists_url":"https://api.github.com/users/djkonro/gists{/gist_id}","starred_url":"https://api.github.com/users/djkonro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkonro/subscriptions","organizations_url":"https://api.github.com/users/djkonro/orgs","repos_url":"https://api.github.com/users/djkonro/repos","events_url":"https://api.github.com/users/djkonro/events{/privacy}","received_events_url":"https://api.github.com/users/djkonro/received_events","type":"User","site_admin":false},"repo":{"id":53957456,"name":"coala","full_name":"djkonro/coala","owner":{"login":"djkonro","id":8269451,"avatar_url":"https://avatars.githubusercontent.com/u/8269451?v=3","gravatar_id":"","url":"https://api.github.com/users/djkonro","html_url":"https://github.com/djkonro","followers_url":"https://api.github.com/users/djkonro/followers","following_url":"https://api.github.com/users/djkonro/following{/other_user}","gists_url":"https://api.github.com/users/djkonro/gists{/gist_id}","starred_url":"https://api.github.com/users/djkonro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkonro/subscriptions","organizations_url":"https://api.github.com/users/djkonro/orgs","repos_url":"https://api.github.com/users/djkonro/repos","events_url":"https://api.github.com/users/djkonro/events{/privacy}","received_events_url":"https://api.github.com/users/djkonro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djkonro/coala","description":"Easy to use COde AnaLysis Application - yes! For all languages!","fork":true,"url":"https://api.github.com/repos/djkonro/coala","forks_url":"https://api.github.com/repos/djkonro/coala/forks","keys_url":"https://api.github.com/repos/djkonro/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djkonro/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djkonro/coala/teams","hooks_url":"https://api.github.com/repos/djkonro/coala/hooks","issue_events_url":"https://api.github.com/repos/djkonro/coala/issues/events{/number}","events_url":"https://api.github.com/repos/djkonro/coala/events","assignees_url":"https://api.github.com/repos/djkonro/coala/assignees{/user}","branches_url":"https://api.github.com/repos/djkonro/coala/branches{/branch}","tags_url":"https://api.github.com/repos/djkonro/coala/tags","blobs_url":"https://api.github.com/repos/djkonro/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djkonro/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djkonro/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/djkonro/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djkonro/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/djkonro/coala/languages","stargazers_url":"https://api.github.com/repos/djkonro/coala/stargazers","contributors_url":"https://api.github.com/repos/djkonro/coala/contributors","subscribers_url":"https://api.github.com/repos/djkonro/coala/subscribers","subscription_url":"https://api.github.com/repos/djkonro/coala/subscription","commits_url":"https://api.github.com/repos/djkonro/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/djkonro/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/djkonro/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/djkonro/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/djkonro/coala/contents/{+path}","compare_url":"https://api.github.com/repos/djkonro/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djkonro/coala/merges","archive_url":"https://api.github.com/repos/djkonro/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djkonro/coala/downloads","issues_url":"https://api.github.com/repos/djkonro/coala/issues{/number}","pulls_url":"https://api.github.com/repos/djkonro/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/djkonro/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/djkonro/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djkonro/coala/labels{/name}","releases_url":"https://api.github.com/repos/djkonro/coala/releases{/id}","deployments_url":"https://api.github.com/repos/djkonro/coala/deployments","created_at":"2016-03-15T15:44:50Z","updated_at":"2016-03-15T15:44:51Z","pushed_at":"2016-04-17T20:38:31Z","git_url":"git://github.com/djkonro/coala.git","ssh_url":"git@github.com:djkonro/coala.git","clone_url":"https://github.com/djkonro/coala.git","svn_url":"https://github.com/djkonro/coala","homepage":"http://coala-analyzer.org/","size":9421,"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":"faf22a430325e52906039265a2940b3cd76bdaaf","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":19816973,"name":"coala","full_name":"coala-analyzer/coala","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","description":"Easy to use COde AnaLysis Application - yes! For all languages!","fork":false,"url":"https://api.github.com/repos/coala-analyzer/coala","forks_url":"https://api.github.com/repos/coala-analyzer/coala/forks","keys_url":"https://api.github.com/repos/coala-analyzer/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala-analyzer/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala-analyzer/coala/teams","hooks_url":"https://api.github.com/repos/coala-analyzer/coala/hooks","issue_events_url":"https://api.github.com/repos/coala-analyzer/coala/issues/events{/number}","events_url":"https://api.github.com/repos/coala-analyzer/coala/events","assignees_url":"https://api.github.com/repos/coala-analyzer/coala/assignees{/user}","branches_url":"https://api.github.com/repos/coala-analyzer/coala/branches{/branch}","tags_url":"https://api.github.com/repos/coala-analyzer/coala/tags","blobs_url":"https://api.github.com/repos/coala-analyzer/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala-analyzer/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala-analyzer/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala-analyzer/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala-analyzer/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/coala-analyzer/coala/languages","stargazers_url":"https://api.github.com/repos/coala-analyzer/coala/stargazers","contributors_url":"https://api.github.com/repos/coala-analyzer/coala/contributors","subscribers_url":"https://api.github.com/repos/coala-analyzer/coala/subscribers","subscription_url":"https://api.github.com/repos/coala-analyzer/coala/subscription","commits_url":"https://api.github.com/repos/coala-analyzer/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala-analyzer/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala-analyzer/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala-analyzer/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala-analyzer/coala/contents/{+path}","compare_url":"https://api.github.com/repos/coala-analyzer/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala-analyzer/coala/merges","archive_url":"https://api.github.com/repos/coala-analyzer/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala-analyzer/coala/downloads","issues_url":"https://api.github.com/repos/coala-analyzer/coala/issues{/number}","pulls_url":"https://api.github.com/repos/coala-analyzer/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/coala-analyzer/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/coala-analyzer/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala-analyzer/coala/labels{/name}","releases_url":"https://api.github.com/repos/coala-analyzer/coala/releases{/id}","deployments_url":"https://api.github.com/repos/coala-analyzer/coala/deployments","created_at":"2014-05-15T11:35:34Z","updated_at":"2016-04-07T21:54:17Z","pushed_at":"2016-04-17T20:38:31Z","git_url":"git://github.com/coala-analyzer/coala.git","ssh_url":"git@github.com:coala-analyzer/coala.git","clone_url":"https://github.com/coala-analyzer/coala.git","svn_url":"https://github.com/coala-analyzer/coala","homepage":"http://coala-analyzer.org/","size":11425,"stargazers_count":95,"watchers_count":95,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":128,"forks":112,"open_issues":128,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936"},"html":{"href":"https://github.com/coala-analyzer/coala/pull/1936"},"issue":{"href":"https://api.github.com/repos/coala-analyzer/coala/issues/1936"},"comments":{"href":"https://api.github.com/repos/coala-analyzer/coala/issues/1936/comments"},"review_comments":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936/comments"},"review_comment":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala-analyzer/coala/pulls/1936/commits"},"statuses":{"href":"https://api.github.com/repos/coala-analyzer/coala/statuses/cdca827a90dbb89dd33851a974b68b7a8d32a414"}}}}