{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala/pulls/comments/203497728","pull_request_review_id":138399403,"id":203497728,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzQ5NzcyOA==","diff_hunk":"@@ -305,6 +314,36 @@ def log_message(self, log_message, timestamp=None, **kwargs):\n     def run(self, *args, dependency_results=None, **kwargs):\n         raise NotImplementedError\n \n+    def setup_profile(self, profiler=None):\n+        filename = '{}_{}.prof'.format(self.section.name, self.name)\n+        if self.profile is True:\n+            profiler.dump_stats(filename)\n+        elif os.path.exists(self.profile) and os.path.isdir(self.profile):\n+            profiler.dump_stats(os.path.join(self.profile, filename))\n+        elif not os.path.isfile(self.profile):\n+            os.mkdir(os.path.join(self.profile))\n+            profiler.dump_stats(os.path.join(self.profile, filename))","path":"coalib/bears/Bear.py","position":50,"original_position":50,"commit_id":"728a7d00dd54464300f6a0dc70911b1954c5b23a","original_commit_id":"728a7d00dd54464300f6a0dc70911b1954c5b23a","user":{"login":"RaiVaibhav","id":22278438,"node_id":"MDQ6VXNlcjIyMjc4NDM4","avatar_url":"https://avatars3.githubusercontent.com/u/22278438?v=4","gravatar_id":"","url":"https://api.github.com/users/RaiVaibhav","html_url":"https://github.com/RaiVaibhav","followers_url":"https://api.github.com/users/RaiVaibhav/followers","following_url":"https://api.github.com/users/RaiVaibhav/following{/other_user}","gists_url":"https://api.github.com/users/RaiVaibhav/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiVaibhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiVaibhav/subscriptions","organizations_url":"https://api.github.com/users/RaiVaibhav/orgs","repos_url":"https://api.github.com/users/RaiVaibhav/repos","events_url":"https://api.github.com/users/RaiVaibhav/events{/privacy}","received_events_url":"https://api.github.com/users/RaiVaibhav/received_events","type":"User","site_admin":false},"body":"No its not, If I understand here correctly then you are talking about this `filename = '{}_{}.prof'.format(self.section.name, self.name)` this part was added in cEP and also it is also giving a useful information like suppose some bear `ABCBear` in 2 different sections of `.coafile` then it will create a files with name `sectionOne_ABCBear` and `sectionTwo_ABCBear`. (here section name is my assumption)","created_at":"2018-07-18T19:14:45Z","updated_at":"2018-07-18T19:14:45Z","html_url":"https://github.com/coala/coala/pull/5599#discussion_r203497728","pull_request_url":"https://api.github.com/repos/coala/coala/pulls/5599","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/comments/203497728"},"html":{"href":"https://github.com/coala/coala/pull/5599#discussion_r203497728"},"pull_request":{"href":"https://api.github.com/repos/coala/coala/pulls/5599"}},"in_reply_to_id":203481183},"pull_request":{"url":"https://api.github.com/repos/coala/coala/pulls/5599","id":199454599,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NDU0NTk5","html_url":"https://github.com/coala/coala/pull/5599","diff_url":"https://github.com/coala/coala/pull/5599.diff","patch_url":"https://github.com/coala/coala/pull/5599.patch","issue_url":"https://api.github.com/repos/coala/coala/issues/5599","number":5599,"state":"open","locked":false,"title":"Add: Profiling Interface","user":{"login":"RaiVaibhav","id":22278438,"node_id":"MDQ6VXNlcjIyMjc4NDM4","avatar_url":"https://avatars3.githubusercontent.com/u/22278438?v=4","gravatar_id":"","url":"https://api.github.com/users/RaiVaibhav","html_url":"https://github.com/RaiVaibhav","followers_url":"https://api.github.com/users/RaiVaibhav/followers","following_url":"https://api.github.com/users/RaiVaibhav/following{/other_user}","gists_url":"https://api.github.com/users/RaiVaibhav/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiVaibhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiVaibhav/subscriptions","organizations_url":"https://api.github.com/users/RaiVaibhav/orgs","repos_url":"https://api.github.com/users/RaiVaibhav/repos","events_url":"https://api.github.com/users/RaiVaibhav/events{/privacy}","received_events_url":"https://api.github.com/users/RaiVaibhav/received_events","type":"User","site_admin":false},"body":"Add initial commit\r\n\r\nRelated to https://github.com/coala/coala/issues/565\r\n","created_at":"2018-07-05T12:30:54Z","updated_at":"2018-07-18T19:14:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76cc070ca69fc60043d8a6d5c16e74d7c845b882","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":141036774,"node_id":"MDU6TGFiZWwxNDEwMzY3NzQ=","url":"https://api.github.com/repos/coala/coala/labels/process/pending%20review","name":"process/pending review","color":"bfe5bf","default":false},{"id":293861065,"node_id":"MDU6TGFiZWwyOTM4NjEwNjU=","url":"https://api.github.com/repos/coala/coala/labels/size/S","name":"size/S","color":"B1CF0A","default":false},{"id":959853861,"node_id":"MDU6TGFiZWw5NTk4NTM4NjE=","url":"https://api.github.com/repos/coala/coala/labels/status/ci-approved","name":"status/ci-approved","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala/pulls/5599/commits","review_comments_url":"https://api.github.com/repos/coala/coala/pulls/5599/comments","review_comment_url":"https://api.github.com/repos/coala/coala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala/issues/5599/comments","statuses_url":"https://api.github.com/repos/coala/coala/statuses/728a7d00dd54464300f6a0dc70911b1954c5b23a","head":{"label":"RaiVaibhav:profile_code","ref":"profile_code","sha":"728a7d00dd54464300f6a0dc70911b1954c5b23a","user":{"login":"RaiVaibhav","id":22278438,"node_id":"MDQ6VXNlcjIyMjc4NDM4","avatar_url":"https://avatars3.githubusercontent.com/u/22278438?v=4","gravatar_id":"","url":"https://api.github.com/users/RaiVaibhav","html_url":"https://github.com/RaiVaibhav","followers_url":"https://api.github.com/users/RaiVaibhav/followers","following_url":"https://api.github.com/users/RaiVaibhav/following{/other_user}","gists_url":"https://api.github.com/users/RaiVaibhav/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiVaibhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiVaibhav/subscriptions","organizations_url":"https://api.github.com/users/RaiVaibhav/orgs","repos_url":"https://api.github.com/users/RaiVaibhav/repos","events_url":"https://api.github.com/users/RaiVaibhav/events{/privacy}","received_events_url":"https://api.github.com/users/RaiVaibhav/received_events","type":"User","site_admin":false},"repo":{"id":110449239,"node_id":"MDEwOlJlcG9zaXRvcnkxMTA0NDkyMzk=","name":"coala","full_name":"RaiVaibhav/coala","owner":{"login":"RaiVaibhav","id":22278438,"node_id":"MDQ6VXNlcjIyMjc4NDM4","avatar_url":"https://avatars3.githubusercontent.com/u/22278438?v=4","gravatar_id":"","url":"https://api.github.com/users/RaiVaibhav","html_url":"https://github.com/RaiVaibhav","followers_url":"https://api.github.com/users/RaiVaibhav/followers","following_url":"https://api.github.com/users/RaiVaibhav/following{/other_user}","gists_url":"https://api.github.com/users/RaiVaibhav/gists{/gist_id}","starred_url":"https://api.github.com/users/RaiVaibhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaiVaibhav/subscriptions","organizations_url":"https://api.github.com/users/RaiVaibhav/orgs","repos_url":"https://api.github.com/users/RaiVaibhav/repos","events_url":"https://api.github.com/users/RaiVaibhav/events{/privacy}","received_events_url":"https://api.github.com/users/RaiVaibhav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RaiVaibhav/coala","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":true,"url":"https://api.github.com/repos/RaiVaibhav/coala","forks_url":"https://api.github.com/repos/RaiVaibhav/coala/forks","keys_url":"https://api.github.com/repos/RaiVaibhav/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaiVaibhav/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaiVaibhav/coala/teams","hooks_url":"https://api.github.com/repos/RaiVaibhav/coala/hooks","issue_events_url":"https://api.github.com/repos/RaiVaibhav/coala/issues/events{/number}","events_url":"https://api.github.com/repos/RaiVaibhav/coala/events","assignees_url":"https://api.github.com/repos/RaiVaibhav/coala/assignees{/user}","branches_url":"https://api.github.com/repos/RaiVaibhav/coala/branches{/branch}","tags_url":"https://api.github.com/repos/RaiVaibhav/coala/tags","blobs_url":"https://api.github.com/repos/RaiVaibhav/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaiVaibhav/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaiVaibhav/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaiVaibhav/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaiVaibhav/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/RaiVaibhav/coala/languages","stargazers_url":"https://api.github.com/repos/RaiVaibhav/coala/stargazers","contributors_url":"https://api.github.com/repos/RaiVaibhav/coala/contributors","subscribers_url":"https://api.github.com/repos/RaiVaibhav/coala/subscribers","subscription_url":"https://api.github.com/repos/RaiVaibhav/coala/subscription","commits_url":"https://api.github.com/repos/RaiVaibhav/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaiVaibhav/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaiVaibhav/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaiVaibhav/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaiVaibhav/coala/contents/{+path}","compare_url":"https://api.github.com/repos/RaiVaibhav/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaiVaibhav/coala/merges","archive_url":"https://api.github.com/repos/RaiVaibhav/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaiVaibhav/coala/downloads","issues_url":"https://api.github.com/repos/RaiVaibhav/coala/issues{/number}","pulls_url":"https://api.github.com/repos/RaiVaibhav/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/RaiVaibhav/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/RaiVaibhav/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaiVaibhav/coala/labels{/name}","releases_url":"https://api.github.com/repos/RaiVaibhav/coala/releases{/id}","deployments_url":"https://api.github.com/repos/RaiVaibhav/coala/deployments","created_at":"2017-11-12T16:34:45Z","updated_at":"2018-07-10T10:45:27Z","pushed_at":"2018-07-18T04:26:07Z","git_url":"git://github.com/RaiVaibhav/coala.git","ssh_url":"git@github.com:RaiVaibhav/coala.git","clone_url":"https://github.com/RaiVaibhav/coala.git","svn_url":"https://github.com/RaiVaibhav/coala","homepage":"https://coala.io/","size":13588,"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":7,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"89833995c1380b813f30bf2048e3f63d495dd71a","user":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","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,"node_id":"MDEwOlJlcG9zaXRvcnkxOTgxNjk3Mw==","name":"coala","full_name":"coala/coala","owner":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","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":"2018-07-18T18:20:10Z","pushed_at":"2018-07-18T12:41:24Z","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":13477,"stargazers_count":2287,"watchers_count":2287,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1068,"mirror_url":null,"archived":false,"open_issues_count":768,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":1068,"open_issues":768,"watchers":2287,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/5599"},"html":{"href":"https://github.com/coala/coala/pull/5599"},"issue":{"href":"https://api.github.com/repos/coala/coala/issues/5599"},"comments":{"href":"https://api.github.com/repos/coala/coala/issues/5599/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala/pulls/5599/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala/pulls/5599/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala/statuses/728a7d00dd54464300f6a0dc70911b1954c5b23a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"RaiVaibhav"}}