{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/23385730","id":23385730,"diff_hunk":"@@ -0,0 +1,26 @@\n+#!/bin/bash\n+\n+command -v php >/dev/null 2>&1 || { echo \"I require `php` but it's not available. Aborting.\" >&2; exit 255; }\n+command -v grep >/dev/null 2>&1 || { echo \"I require `grep` but it's not available. Aborting.\" >&2; exit 255; }\n+command -v awk >/dev/null 2>&1 || { echo \"I require `awk` but it's not available. Aborting.\" >&2; exit 255; }\n+\n+if [ \"\" == \"$1\" ] || [ \"\" == \"$2\" ];\n+then\n+\techo \"Usage: bash benchmark.sh BRANCH1 BRANCH2 ...BRANCHN\"\n+\texit 1;\n+fi\n+\n+for BRANCH in $@\n+do\n+\tgit checkout $BRANCH &> /dev/null &&\n+\tgit reset --hard &> /dev/null &&\n+\techo -n $BRANCH\n+\t(for i in {1..10}; do php php-cs-fixer fix . ; done) | grep -i fixed | awk '","path":"benchmark.sh","position":18,"original_position":18,"commit_id":"34cf0e3a78a9603e4dddd74ddd33c2a453fdbbd6","original_commit_id":"34cf0e3a78a9603e4dddd74ddd33c2a453fdbbd6","user":{"login":"dericofilho","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/dericofilho","html_url":"https://github.com/dericofilho","followers_url":"https://api.github.com/users/dericofilho/followers","following_url":"https://api.github.com/users/dericofilho/following{/other_user}","gists_url":"https://api.github.com/users/dericofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/dericofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericofilho/subscriptions","organizations_url":"https://api.github.com/users/dericofilho/orgs","repos_url":"https://api.github.com/users/dericofilho/repos","events_url":"https://api.github.com/users/dericofilho/events{/privacy}","received_events_url":"https://api.github.com/users/dericofilho/received_events","type":"User","site_admin":false},"body":"Install cygwin.","created_at":"2015-01-22T16:04:37Z","updated_at":"2015-01-22T16:04:37Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986#discussion_r23385730","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/23385730"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986#discussion_r23385730"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986","id":27796841,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/986","number":986,"state":"open","locked":false,"title":"Benchmark script - as requested by Keradus","user":{"login":"dericofilho","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/dericofilho","html_url":"https://github.com/dericofilho","followers_url":"https://api.github.com/users/dericofilho/followers","following_url":"https://api.github.com/users/dericofilho/following{/other_user}","gists_url":"https://api.github.com/users/dericofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/dericofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericofilho/subscriptions","organizations_url":"https://api.github.com/users/dericofilho/orgs","repos_url":"https://api.github.com/users/dericofilho/repos","events_url":"https://api.github.com/users/dericofilho/events{/privacy}","received_events_url":"https://api.github.com/users/dericofilho/received_events","type":"User","site_admin":false},"body":"Unix-only","created_at":"2015-01-21T21:34:14Z","updated_at":"2015-01-22T16:04:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8877c82bfbb2cd06f37af109348552426fedea5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986/comments","review_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/986/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/34cf0e3a78a9603e4dddd74ddd33c2a453fdbbd6","head":{"label":"dericofilho:benchmark-script","ref":"benchmark-script","sha":"34cf0e3a78a9603e4dddd74ddd33c2a453fdbbd6","user":{"login":"dericofilho","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/dericofilho","html_url":"https://github.com/dericofilho","followers_url":"https://api.github.com/users/dericofilho/followers","following_url":"https://api.github.com/users/dericofilho/following{/other_user}","gists_url":"https://api.github.com/users/dericofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/dericofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericofilho/subscriptions","organizations_url":"https://api.github.com/users/dericofilho/orgs","repos_url":"https://api.github.com/users/dericofilho/repos","events_url":"https://api.github.com/users/dericofilho/events{/privacy}","received_events_url":"https://api.github.com/users/dericofilho/received_events","type":"User","site_admin":false},"repo":{"id":29616844,"name":"PHP-CS-Fixer","full_name":"dericofilho/PHP-CS-Fixer","owner":{"login":"dericofilho","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/dericofilho","html_url":"https://github.com/dericofilho","followers_url":"https://api.github.com/users/dericofilho/followers","following_url":"https://api.github.com/users/dericofilho/following{/other_user}","gists_url":"https://api.github.com/users/dericofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/dericofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericofilho/subscriptions","organizations_url":"https://api.github.com/users/dericofilho/orgs","repos_url":"https://api.github.com/users/dericofilho/repos","events_url":"https://api.github.com/users/dericofilho/events{/privacy}","received_events_url":"https://api.github.com/users/dericofilho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dericofilho/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":true,"url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/issues/comments/{number}","contents_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/dericofilho/PHP-CS-Fixer/releases{/id}","created_at":"2015-01-21T21:30:48Z","updated_at":"2015-01-21T21:30:49Z","pushed_at":"2015-01-22T15:50:21Z","git_url":"git://github.com/dericofilho/PHP-CS-Fixer.git","ssh_url":"git@github.com:dericofilho/PHP-CS-Fixer.git","clone_url":"https://github.com/dericofilho/PHP-CS-Fixer.git","svn_url":"https://github.com/dericofilho/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":9807,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"1.5"}},"base":{"label":"FriendsOfPHP:1.5","ref":"1.5","sha":"13befa34c0d81c45c4fa4c27628d86157343c6ac","user":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":4344257,"name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","owner":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":false,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/{number}","contents_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/releases{/id}","created_at":"2012-05-16T06:42:23Z","updated_at":"2015-01-22T07:01:21Z","pushed_at":"2015-01-21T21:57:56Z","git_url":"git://github.com/FriendsOfPHP/PHP-CS-Fixer.git","ssh_url":"git@github.com:FriendsOfPHP/PHP-CS-Fixer.git","clone_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer.git","svn_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":9807,"stargazers_count":1928,"watchers_count":1928,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":310,"mirror_url":null,"open_issues_count":53,"forks":310,"open_issues":53,"watchers":1928,"default_branch":"1.5"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/986"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/986"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/986/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/986/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/34cf0e3a78a9603e4dddd74ddd33c2a453fdbbd6"}}}}