payload: {"action":"created","comment":{"url":"https://api.github.com/repos/nkansal96/blaze/pulls/comments/354986369","pull_request_review_id":328400140,"id":354986369,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NDk4NjM2OQ==","diff_hunk":"@@ -62,13 +63,22 @@ def random_push_policy(args):\n     help=\"Returns the speed index of the page calculated using pwmetrics. As a float.\",\n     action=\"store_true\",\n )\n+@command.argument(\n+    \"--use_push_all\",\n+    help=\"Push policy is simply push/preload all. Does not use the model to get a policy.\",\n+    default=False,\n+    action=\"store_true\",\n+)\n @command.command\n def test_push(args):\n     \"\"\"\n     Runs a pre-defined test on the given webpage\n     \"\"\"\n-    weight = 0 if args.policy_type == \"preload\" else 1 if args.policy_type == \"push\" else None\n-    policy_generator = _random_push_preload_policy_generator(weight)\n+    if args.use_push_all:","path":"blaze/command/push.py","position":25,"original_position":25,"commit_id":"699e31d629b080d5560c66559b66394be5ddff83","original_commit_id":"699e31d629b080d5560c66559b66394be5ddff83","user":{"login":"nkansal96","id":3259309,"node_id":"MDQ6VXNlcjMyNTkzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/3259309?v=4","gravatar_id":"","url":"https://api.github.com/users/nkansal96","html_url":"https://github.com/nkansal96","followers_url":"https://api.github.com/users/nkansal96/followers","following_url":"https://api.github.com/users/nkansal96/following{/other_user}","gists_url":"https://api.github.com/users/nkansal96/gists{/gist_id}","starred_url":"https://api.github.com/users/nkansal96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkansal96/subscriptions","organizations_url":"https://api.github.com/users/nkansal96/orgs","repos_url":"https://api.github.com/users/nkansal96/repos","events_url":"https://api.github.com/users/nkansal96/events{/privacy}","received_events_url":"https://api.github.com/users/nkansal96/received_events","type":"User","site_admin":false},"body":"also, shouldn't this condition be negated?","created_at":"2019-12-06T19:08:50Z","updated_at":"2019-12-06T19:10:14Z","html_url":"https://github.com/nkansal96/blaze/pull/60#discussion_r354986369","pull_request_url":"https://api.github.com/repos/nkansal96/blaze/pulls/60","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/comments/354986369"},"html":{"href":"https://github.com/nkansal96/blaze/pull/60#discussion_r354986369"},"pull_request":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/60"}},"in_reply_to_id":354986253},"pull_request":{"url":"https://api.github.com/repos/nkansal96/blaze/pulls/60","id":350148668,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUwMTQ4NjY4","html_url":"https://github.com/nkansal96/blaze/pull/60","diff_url":"https://github.com/nkansal96/blaze/pull/60.diff","patch_url":"https://github.com/nkansal96/blaze/pull/60.patch","issue_url":"https://api.github.com/repos/nkansal96/blaze/issues/60","number":60,"state":"open","locked":false,"title":"add support for generating push everything policy. ","user":{"login":"muralisr","id":2168895,"node_id":"MDQ6VXNlcjIxNjg4OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2168895?v=4","gravatar_id":"","url":"https://api.github.com/users/muralisr","html_url":"https://github.com/muralisr","followers_url":"https://api.github.com/users/muralisr/followers","following_url":"https://api.github.com/users/muralisr/following{/other_user}","gists_url":"https://api.github.com/users/muralisr/gists{/gist_id}","starred_url":"https://api.github.com/users/muralisr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muralisr/subscriptions","organizations_url":"https://api.github.com/users/muralisr/orgs","repos_url":"https://api.github.com/users/muralisr/repos","events_url":"https://api.github.com/users/muralisr/events{/privacy}","received_events_url":"https://api.github.com/users/muralisr/received_events","type":"User","site_admin":false},"body":"add flag to evaluate using this policy.","created_at":"2019-12-06T18:34:26Z","updated_at":"2019-12-06T19:10:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afd0193665dbc52d6fa6381b0633daae76d6f43f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nkansal96/blaze/pulls/60/commits","review_comments_url":"https://api.github.com/repos/nkansal96/blaze/pulls/60/comments","review_comment_url":"https://api.github.com/repos/nkansal96/blaze/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nkansal96/blaze/issues/60/comments","statuses_url":"https://api.github.com/repos/nkansal96/blaze/statuses/699e31d629b080d5560c66559b66394be5ddff83","head":{"label":"nkansal96:push-preload-everything","ref":"push-preload-everything","sha":"699e31d629b080d5560c66559b66394be5ddff83","user":{"login":"nkansal96","id":3259309,"node_id":"MDQ6VXNlcjMyNTkzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/3259309?v=4","gravatar_id":"","url":"https://api.github.com/users/nkansal96","html_url":"https://github.com/nkansal96","followers_url":"https://api.github.com/users/nkansal96/followers","following_url":"https://api.github.com/users/nkansal96/following{/other_user}","gists_url":"https://api.github.com/users/nkansal96/gists{/gist_id}","starred_url":"https://api.github.com/users/nkansal96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkansal96/subscriptions","organizations_url":"https://api.github.com/users/nkansal96/orgs","repos_url":"https://api.github.com/users/nkansal96/repos","events_url":"https://api.github.com/users/nkansal96/events{/privacy}","received_events_url":"https://api.github.com/users/nkansal96/received_events","type":"User","site_admin":false},"repo":{"id":177245817,"node_id":"MDEwOlJlcG9zaXRvcnkxNzcyNDU4MTc=","name":"blaze","full_name":"nkansal96/blaze","private":false,"owner":{"login":"nkansal96","id":3259309,"node_id":"MDQ6VXNlcjMyNTkzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/3259309?v=4","gravatar_id":"","url":"https://api.github.com/users/nkansal96","html_url":"https://github.com/nkansal96","followers_url":"https://api.github.com/users/nkansal96/followers","following_url":"https://api.github.com/users/nkansal96/following{/other_user}","gists_url":"https://api.github.com/users/nkansal96/gists{/gist_id}","starred_url":"https://api.github.com/users/nkansal96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkansal96/subscriptions","organizations_url":"https://api.github.com/users/nkansal96/orgs","repos_url":"https://api.github.com/users/nkansal96/repos","events_url":"https://api.github.com/users/nkansal96/events{/privacy}","received_events_url":"https://api.github.com/users/nkansal96/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nkansal96/blaze","description":"Automatic push policy generation via reinforcement learning","fork":false,"url":"https://api.github.com/repos/nkansal96/blaze","forks_url":"https://api.github.com/repos/nkansal96/blaze/forks","keys_url":"https://api.github.com/repos/nkansal96/blaze/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkansal96/blaze/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkansal96/blaze/teams","hooks_url":"https://api.github.com/repos/nkansal96/blaze/hooks","issue_events_url":"https://api.github.com/repos/nkansal96/blaze/issues/events{/number}","events_url":"https://api.github.com/repos/nkansal96/blaze/events","assignees_url":"https://api.github.com/repos/nkansal96/blaze/assignees{/user}","branches_url":"https://api.github.com/repos/nkansal96/blaze/branches{/branch}","tags_url":"https://api.github.com/repos/nkansal96/blaze/tags","blobs_url":"https://api.github.com/repos/nkansal96/blaze/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkansal96/blaze/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkansal96/blaze/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkansal96/blaze/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkansal96/blaze/statuses/{sha}","languages_url":"https://api.github.com/repos/nkansal96/blaze/languages","stargazers_url":"https://api.github.com/repos/nkansal96/blaze/stargazers","contributors_url":"https://api.github.com/repos/nkansal96/blaze/contributors","subscribers_url":"https://api.github.com/repos/nkansal96/blaze/subscribers","subscription_url":"https://api.github.com/repos/nkansal96/blaze/subscription","commits_url":"https://api.github.com/repos/nkansal96/blaze/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkansal96/blaze/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkansal96/blaze/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkansal96/blaze/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkansal96/blaze/contents/{+path}","compare_url":"https://api.github.com/repos/nkansal96/blaze/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkansal96/blaze/merges","archive_url":"https://api.github.com/repos/nkansal96/blaze/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkansal96/blaze/downloads","issues_url":"https://api.github.com/repos/nkansal96/blaze/issues{/number}","pulls_url":"https://api.github.com/repos/nkansal96/blaze/pulls{/number}","milestones_url":"https://api.github.com/repos/nkansal96/blaze/milestones{/number}","notifications_url":"https://api.github.com/repos/nkansal96/blaze/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkansal96/blaze/labels{/name}","releases_url":"https://api.github.com/repos/nkansal96/blaze/releases{/id}","deployments_url":"https://api.github.com/repos/nkansal96/blaze/deployments","created_at":"2019-03-23T04:55:44Z","updated_at":"2019-12-06T19:01:04Z","pushed_at":"2019-12-06T19:04:42Z","git_url":"git://github.com/nkansal96/blaze.git","ssh_url":"git@github.com:nkansal96/blaze.git","clone_url":"https://github.com/nkansal96/blaze.git","svn_url":"https://github.com/nkansal96/blaze","homepage":null,"size":1200,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"nkansal96:master","ref":"master","sha":"827673ea1bb59e1c66c867c25c179cba1073486b","user":{"login":"nkansal96","id":3259309,"node_id":"MDQ6VXNlcjMyNTkzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/3259309?v=4","gravatar_id":"","url":"https://api.github.com/users/nkansal96","html_url":"https://github.com/nkansal96","followers_url":"https://api.github.com/users/nkansal96/followers","following_url":"https://api.github.com/users/nkansal96/following{/other_user}","gists_url":"https://api.github.com/users/nkansal96/gists{/gist_id}","starred_url":"https://api.github.com/users/nkansal96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkansal96/subscriptions","organizations_url":"https://api.github.com/users/nkansal96/orgs","repos_url":"https://api.github.com/users/nkansal96/repos","events_url":"https://api.github.com/users/nkansal96/events{/privacy}","received_events_url":"https://api.github.com/users/nkansal96/received_events","type":"User","site_admin":false},"repo":{"id":177245817,"node_id":"MDEwOlJlcG9zaXRvcnkxNzcyNDU4MTc=","name":"blaze","full_name":"nkansal96/blaze","private":false,"owner":{"login":"nkansal96","id":3259309,"node_id":"MDQ6VXNlcjMyNTkzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/3259309?v=4","gravatar_id":"","url":"https://api.github.com/users/nkansal96","html_url":"https://github.com/nkansal96","followers_url":"https://api.github.com/users/nkansal96/followers","following_url":"https://api.github.com/users/nkansal96/following{/other_user}","gists_url":"https://api.github.com/users/nkansal96/gists{/gist_id}","starred_url":"https://api.github.com/users/nkansal96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkansal96/subscriptions","organizations_url":"https://api.github.com/users/nkansal96/orgs","repos_url":"https://api.github.com/users/nkansal96/repos","events_url":"https://api.github.com/users/nkansal96/events{/privacy}","received_events_url":"https://api.github.com/users/nkansal96/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nkansal96/blaze","description":"Automatic push policy generation via reinforcement learning","fork":false,"url":"https://api.github.com/repos/nkansal96/blaze","forks_url":"https://api.github.com/repos/nkansal96/blaze/forks","keys_url":"https://api.github.com/repos/nkansal96/blaze/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkansal96/blaze/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkansal96/blaze/teams","hooks_url":"https://api.github.com/repos/nkansal96/blaze/hooks","issue_events_url":"https://api.github.com/repos/nkansal96/blaze/issues/events{/number}","events_url":"https://api.github.com/repos/nkansal96/blaze/events","assignees_url":"https://api.github.com/repos/nkansal96/blaze/assignees{/user}","branches_url":"https://api.github.com/repos/nkansal96/blaze/branches{/branch}","tags_url":"https://api.github.com/repos/nkansal96/blaze/tags","blobs_url":"https://api.github.com/repos/nkansal96/blaze/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkansal96/blaze/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkansal96/blaze/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkansal96/blaze/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkansal96/blaze/statuses/{sha}","languages_url":"https://api.github.com/repos/nkansal96/blaze/languages","stargazers_url":"https://api.github.com/repos/nkansal96/blaze/stargazers","contributors_url":"https://api.github.com/repos/nkansal96/blaze/contributors","subscribers_url":"https://api.github.com/repos/nkansal96/blaze/subscribers","subscription_url":"https://api.github.com/repos/nkansal96/blaze/subscription","commits_url":"https://api.github.com/repos/nkansal96/blaze/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkansal96/blaze/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkansal96/blaze/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkansal96/blaze/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkansal96/blaze/contents/{+path}","compare_url":"https://api.github.com/repos/nkansal96/blaze/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkansal96/blaze/merges","archive_url":"https://api.github.com/repos/nkansal96/blaze/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkansal96/blaze/downloads","issues_url":"https://api.github.com/repos/nkansal96/blaze/issues{/number}","pulls_url":"https://api.github.com/repos/nkansal96/blaze/pulls{/number}","milestones_url":"https://api.github.com/repos/nkansal96/blaze/milestones{/number}","notifications_url":"https://api.github.com/repos/nkansal96/blaze/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkansal96/blaze/labels{/name}","releases_url":"https://api.github.com/repos/nkansal96/blaze/releases{/id}","deployments_url":"https://api.github.com/repos/nkansal96/blaze/deployments","created_at":"2019-03-23T04:55:44Z","updated_at":"2019-12-06T19:01:04Z","pushed_at":"2019-12-06T19:04:42Z","git_url":"git://github.com/nkansal96/blaze.git","ssh_url":"git@github.com:nkansal96/blaze.git","clone_url":"https://github.com/nkansal96/blaze.git","svn_url":"https://github.com/nkansal96/blaze","homepage":null,"size":1200,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/60"},"html":{"href":"https://github.com/nkansal96/blaze/pull/60"},"issue":{"href":"https://api.github.com/repos/nkansal96/blaze/issues/60"},"comments":{"href":"https://api.github.com/repos/nkansal96/blaze/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nkansal96/blaze/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/nkansal96/blaze/statuses/699e31d629b080d5560c66559b66394be5ddff83"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"nkansal96"}}