{"action":"created","comment":{"url":"https://api.github.com/repos/google/compare-codecs/pulls/comments/23359345","id":23359345,"diff_hunk":"@@ -0,0 +1,86 @@\n+#!/usr/bin/python\n+# Copyright 2015 Google.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#    http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# Generate bitrate sweep data - a JSON file providing the encoding info for\n+# all attempts at encoding a file with an encoder that is part of the\n+# served pages.\n+# This will serve as the basis for graphs that show the performance of\n+# specific configurations.\n+\n+import encoder\n+import glob\n+import json\n+import optimizer\n+import pick_codec\n+import re\n+import score_tools\n+import sys\n+\n+def ReportOneSweep(codec_name, criterion_name, videofile_name, encoder_name):","path":"bin/generate_sweep_data","position":31,"original_position":31,"commit_id":"9fa83a816a3b49336184f7e1be5d6dd2c060a950","original_commit_id":"9fa83a816a3b49336184f7e1be5d6dd2c060a950","user":{"login":"phoglund","id":7911315,"avatar_url":"https://avatars.githubusercontent.com/u/7911315?v=3","gravatar_id":"","url":"https://api.github.com/users/phoglund","html_url":"https://github.com/phoglund","followers_url":"https://api.github.com/users/phoglund/followers","following_url":"https://api.github.com/users/phoglund/following{/other_user}","gists_url":"https://api.github.com/users/phoglund/gists{/gist_id}","starred_url":"https://api.github.com/users/phoglund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoglund/subscriptions","organizations_url":"https://api.github.com/users/phoglund/orgs","repos_url":"https://api.github.com/users/phoglund/repos","events_url":"https://api.github.com/users/phoglund/events{/privacy}","received_events_url":"https://api.github.com/users/phoglund/received_events","type":"User","site_admin":false},"body":"Nit: two blank lines","created_at":"2015-01-22T07:40:40Z","updated_at":"2015-01-22T07:40:40Z","html_url":"https://github.com/google/compare-codecs/pull/21#discussion_r23359345","pull_request_url":"https://api.github.com/repos/google/compare-codecs/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/comments/23359345"},"html":{"href":"https://github.com/google/compare-codecs/pull/21#discussion_r23359345"},"pull_request":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/google/compare-codecs/pulls/21","id":27777526,"html_url":"https://github.com/google/compare-codecs/pull/21","diff_url":"https://github.com/google/compare-codecs/pull/21.diff","patch_url":"https://github.com/google/compare-codecs/pull/21.patch","issue_url":"https://api.github.com/repos/google/compare-codecs/issues/21","number":21,"state":"open","locked":false,"title":"Config sweeps","user":{"login":"alvestrand","id":480893,"avatar_url":"https://avatars.githubusercontent.com/u/480893?v=3","gravatar_id":"","url":"https://api.github.com/users/alvestrand","html_url":"https://github.com/alvestrand","followers_url":"https://api.github.com/users/alvestrand/followers","following_url":"https://api.github.com/users/alvestrand/following{/other_user}","gists_url":"https://api.github.com/users/alvestrand/gists{/gist_id}","starred_url":"https://api.github.com/users/alvestrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvestrand/subscriptions","organizations_url":"https://api.github.com/users/alvestrand/orgs","repos_url":"https://api.github.com/users/alvestrand/repos","events_url":"https://api.github.com/users/alvestrand/events{/privacy}","received_events_url":"https://api.github.com/users/alvestrand/received_events","type":"User","site_admin":false},"body":"This should be inspected primarily by @louquillio for sane HTML / Jekyll usage.\r\n\r\nPython should be inspected by @phoglund.\r\n\r\nJavascript should be inspected by someone....\r\n","created_at":"2015-01-21T17:19:02Z","updated_at":"2015-01-22T07:40:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b23bd1ccf1c26613183777ffb98c0db0e6741859","assignee":{"login":"louquillio","id":30157,"avatar_url":"https://avatars.githubusercontent.com/u/30157?v=3","gravatar_id":"","url":"https://api.github.com/users/louquillio","html_url":"https://github.com/louquillio","followers_url":"https://api.github.com/users/louquillio/followers","following_url":"https://api.github.com/users/louquillio/following{/other_user}","gists_url":"https://api.github.com/users/louquillio/gists{/gist_id}","starred_url":"https://api.github.com/users/louquillio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louquillio/subscriptions","organizations_url":"https://api.github.com/users/louquillio/orgs","repos_url":"https://api.github.com/users/louquillio/repos","events_url":"https://api.github.com/users/louquillio/events{/privacy}","received_events_url":"https://api.github.com/users/louquillio/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/compare-codecs/pulls/21/commits","review_comments_url":"https://api.github.com/repos/google/compare-codecs/pulls/21/comments","review_comment_url":"https://api.github.com/repos/google/compare-codecs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/google/compare-codecs/issues/21/comments","statuses_url":"https://api.github.com/repos/google/compare-codecs/statuses/9fa83a816a3b49336184f7e1be5d6dd2c060a950","head":{"label":"google:config-sweeps","ref":"config-sweeps","sha":"9fa83a816a3b49336184f7e1be5d6dd2c060a950","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":27724471,"name":"compare-codecs","full_name":"google/compare-codecs","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/compare-codecs","description":null,"fork":false,"url":"https://api.github.com/repos/google/compare-codecs","forks_url":"https://api.github.com/repos/google/compare-codecs/forks","keys_url":"https://api.github.com/repos/google/compare-codecs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/compare-codecs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/compare-codecs/teams","hooks_url":"https://api.github.com/repos/google/compare-codecs/hooks","issue_events_url":"https://api.github.com/repos/google/compare-codecs/issues/events{/number}","events_url":"https://api.github.com/repos/google/compare-codecs/events","assignees_url":"https://api.github.com/repos/google/compare-codecs/assignees{/user}","branches_url":"https://api.github.com/repos/google/compare-codecs/branches{/branch}","tags_url":"https://api.github.com/repos/google/compare-codecs/tags","blobs_url":"https://api.github.com/repos/google/compare-codecs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/compare-codecs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/compare-codecs/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/compare-codecs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/compare-codecs/statuses/{sha}","languages_url":"https://api.github.com/repos/google/compare-codecs/languages","stargazers_url":"https://api.github.com/repos/google/compare-codecs/stargazers","contributors_url":"https://api.github.com/repos/google/compare-codecs/contributors","subscribers_url":"https://api.github.com/repos/google/compare-codecs/subscribers","subscription_url":"https://api.github.com/repos/google/compare-codecs/subscription","commits_url":"https://api.github.com/repos/google/compare-codecs/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/compare-codecs/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/compare-codecs/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/compare-codecs/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/compare-codecs/contents/{+path}","compare_url":"https://api.github.com/repos/google/compare-codecs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/compare-codecs/merges","archive_url":"https://api.github.com/repos/google/compare-codecs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/compare-codecs/downloads","issues_url":"https://api.github.com/repos/google/compare-codecs/issues{/number}","pulls_url":"https://api.github.com/repos/google/compare-codecs/pulls{/number}","milestones_url":"https://api.github.com/repos/google/compare-codecs/milestones{/number}","notifications_url":"https://api.github.com/repos/google/compare-codecs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/compare-codecs/labels{/name}","releases_url":"https://api.github.com/repos/google/compare-codecs/releases{/id}","created_at":"2014-12-08T16:42:21Z","updated_at":"2015-01-20T13:31:07Z","pushed_at":"2015-01-21T17:17:40Z","git_url":"git://github.com/google/compare-codecs.git","ssh_url":"git@github.com:google/compare-codecs.git","clone_url":"https://github.com/google/compare-codecs.git","svn_url":"https://github.com/google/compare-codecs","homepage":null,"size":840,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":6,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"744453d4344d114f9a7e3ea4eed29da5c9c7f468","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":27724471,"name":"compare-codecs","full_name":"google/compare-codecs","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/compare-codecs","description":null,"fork":false,"url":"https://api.github.com/repos/google/compare-codecs","forks_url":"https://api.github.com/repos/google/compare-codecs/forks","keys_url":"https://api.github.com/repos/google/compare-codecs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/compare-codecs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/compare-codecs/teams","hooks_url":"https://api.github.com/repos/google/compare-codecs/hooks","issue_events_url":"https://api.github.com/repos/google/compare-codecs/issues/events{/number}","events_url":"https://api.github.com/repos/google/compare-codecs/events","assignees_url":"https://api.github.com/repos/google/compare-codecs/assignees{/user}","branches_url":"https://api.github.com/repos/google/compare-codecs/branches{/branch}","tags_url":"https://api.github.com/repos/google/compare-codecs/tags","blobs_url":"https://api.github.com/repos/google/compare-codecs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/compare-codecs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/compare-codecs/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/compare-codecs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/compare-codecs/statuses/{sha}","languages_url":"https://api.github.com/repos/google/compare-codecs/languages","stargazers_url":"https://api.github.com/repos/google/compare-codecs/stargazers","contributors_url":"https://api.github.com/repos/google/compare-codecs/contributors","subscribers_url":"https://api.github.com/repos/google/compare-codecs/subscribers","subscription_url":"https://api.github.com/repos/google/compare-codecs/subscription","commits_url":"https://api.github.com/repos/google/compare-codecs/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/compare-codecs/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/compare-codecs/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/compare-codecs/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/compare-codecs/contents/{+path}","compare_url":"https://api.github.com/repos/google/compare-codecs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/compare-codecs/merges","archive_url":"https://api.github.com/repos/google/compare-codecs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/compare-codecs/downloads","issues_url":"https://api.github.com/repos/google/compare-codecs/issues{/number}","pulls_url":"https://api.github.com/repos/google/compare-codecs/pulls{/number}","milestones_url":"https://api.github.com/repos/google/compare-codecs/milestones{/number}","notifications_url":"https://api.github.com/repos/google/compare-codecs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/compare-codecs/labels{/name}","releases_url":"https://api.github.com/repos/google/compare-codecs/releases{/id}","created_at":"2014-12-08T16:42:21Z","updated_at":"2015-01-20T13:31:07Z","pushed_at":"2015-01-21T17:17:40Z","git_url":"git://github.com/google/compare-codecs.git","ssh_url":"git@github.com:google/compare-codecs.git","clone_url":"https://github.com/google/compare-codecs.git","svn_url":"https://github.com/google/compare-codecs","homepage":null,"size":840,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/21"},"html":{"href":"https://github.com/google/compare-codecs/pull/21"},"issue":{"href":"https://api.github.com/repos/google/compare-codecs/issues/21"},"comments":{"href":"https://api.github.com/repos/google/compare-codecs/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/google/compare-codecs/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/google/compare-codecs/statuses/9fa83a816a3b49336184f7e1be5d6dd2c060a950"}}}}