{"action":"created","comment":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/comments/219732109","pull_request_review_id":157975083,"id":219732109,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTczMjEwOQ==","diff_hunk":"@@ -61,6 +61,28 @@ def length(self):\n         return self.end - self.start\n \n \n+@attr.s(slots=True)\n+class Block(object):","path":"hypothesis-python/src/hypothesis/internal/conjecture/data.py","position":5,"original_position":5,"commit_id":"35932b7a1a031225a22c56a2cb19f8431ae909d2","original_commit_id":"35932b7a1a031225a22c56a2cb19f8431ae909d2","user":{"login":"DRMacIver","id":28623,"node_id":"MDQ6VXNlcjI4NjIz","avatar_url":"https://avatars0.githubusercontent.com/u/28623?v=4","gravatar_id":"","url":"https://api.github.com/users/DRMacIver","html_url":"https://github.com/DRMacIver","followers_url":"https://api.github.com/users/DRMacIver/followers","following_url":"https://api.github.com/users/DRMacIver/following{/other_user}","gists_url":"https://api.github.com/users/DRMacIver/gists{/gist_id}","starred_url":"https://api.github.com/users/DRMacIver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DRMacIver/subscriptions","organizations_url":"https://api.github.com/users/DRMacIver/orgs","repos_url":"https://api.github.com/users/DRMacIver/repos","events_url":"https://api.github.com/users/DRMacIver/events{/privacy}","received_events_url":"https://api.github.com/users/DRMacIver/received_events","type":"User","site_admin":false},"body":"We haven't done this for `Example` so it's up to you if you want to do it here, but it occurs to me that it would be good to have docstrings explaining what these things represent.","created_at":"2018-09-24T05:32:29Z","updated_at":"2018-09-24T05:33:42Z","html_url":"https://github.com/HypothesisWorks/hypothesis/pull/1594#discussion_r219732109","pull_request_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/comments/219732109"},"html":{"href":"https://github.com/HypothesisWorks/hypothesis/pull/1594#discussion_r219732109"},"pull_request":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594"}}},"pull_request":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594","id":217497002,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDk3MDAy","html_url":"https://github.com/HypothesisWorks/hypothesis/pull/1594","diff_url":"https://github.com/HypothesisWorks/hypothesis/pull/1594.diff","patch_url":"https://github.com/HypothesisWorks/hypothesis/pull/1594.patch","issue_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1594","number":1594,"state":"open","locked":false,"title":"Factor out iteration over pairs of blocks","user":{"login":"Zalathar","id":20290842,"node_id":"MDQ6VXNlcjIwMjkwODQy","avatar_url":"https://avatars0.githubusercontent.com/u/20290842?v=4","gravatar_id":"","url":"https://api.github.com/users/Zalathar","html_url":"https://github.com/Zalathar","followers_url":"https://api.github.com/users/Zalathar/followers","following_url":"https://api.github.com/users/Zalathar/following{/other_user}","gists_url":"https://api.github.com/users/Zalathar/gists{/gist_id}","starred_url":"https://api.github.com/users/Zalathar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zalathar/subscriptions","organizations_url":"https://api.github.com/users/Zalathar/orgs","repos_url":"https://api.github.com/users/Zalathar/repos","events_url":"https://api.github.com/users/Zalathar/events{/privacy}","received_events_url":"https://api.github.com/users/Zalathar/received_events","type":"User","site_admin":false},"body":"This change introduces `Shrinker.for_each_pair_of_blocks`, and updates shrinker passes `shrink_offset_pairs` and `minimize_block_pairs_retaining_sum` to use it instead of manually iterating over block pairs.\r\n\r\nAlong the way it introduces a `Block` class that `ConjectureData` now uses to record its block information, instead of keeping a list of `(start, end)` pairs.","created_at":"2018-09-23T07:24:15Z","updated_at":"2018-09-24T05:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6984ac0f65806746f5ee8aead9af23c9a3db8e64","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594/commits","review_comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594/comments","review_comment_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1594/comments","statuses_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/statuses/35932b7a1a031225a22c56a2cb19f8431ae909d2","head":{"label":"Zalathar:each-pair-of-blocks","ref":"each-pair-of-blocks","sha":"35932b7a1a031225a22c56a2cb19f8431ae909d2","user":{"login":"Zalathar","id":20290842,"node_id":"MDQ6VXNlcjIwMjkwODQy","avatar_url":"https://avatars0.githubusercontent.com/u/20290842?v=4","gravatar_id":"","url":"https://api.github.com/users/Zalathar","html_url":"https://github.com/Zalathar","followers_url":"https://api.github.com/users/Zalathar/followers","following_url":"https://api.github.com/users/Zalathar/following{/other_user}","gists_url":"https://api.github.com/users/Zalathar/gists{/gist_id}","starred_url":"https://api.github.com/users/Zalathar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zalathar/subscriptions","organizations_url":"https://api.github.com/users/Zalathar/orgs","repos_url":"https://api.github.com/users/Zalathar/repos","events_url":"https://api.github.com/users/Zalathar/events{/privacy}","received_events_url":"https://api.github.com/users/Zalathar/received_events","type":"User","site_admin":false},"repo":{"id":144567011,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1NjcwMTE=","name":"hypothesis","full_name":"Zalathar/hypothesis","private":false,"owner":{"login":"Zalathar","id":20290842,"node_id":"MDQ6VXNlcjIwMjkwODQy","avatar_url":"https://avatars0.githubusercontent.com/u/20290842?v=4","gravatar_id":"","url":"https://api.github.com/users/Zalathar","html_url":"https://github.com/Zalathar","followers_url":"https://api.github.com/users/Zalathar/followers","following_url":"https://api.github.com/users/Zalathar/following{/other_user}","gists_url":"https://api.github.com/users/Zalathar/gists{/gist_id}","starred_url":"https://api.github.com/users/Zalathar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zalathar/subscriptions","organizations_url":"https://api.github.com/users/Zalathar/orgs","repos_url":"https://api.github.com/users/Zalathar/repos","events_url":"https://api.github.com/users/Zalathar/events{/privacy}","received_events_url":"https://api.github.com/users/Zalathar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Zalathar/hypothesis","description":"Hypothesis is a powerful, flexible, and easy to use library for property-based testing.","fork":true,"url":"https://api.github.com/repos/Zalathar/hypothesis","forks_url":"https://api.github.com/repos/Zalathar/hypothesis/forks","keys_url":"https://api.github.com/repos/Zalathar/hypothesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zalathar/hypothesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zalathar/hypothesis/teams","hooks_url":"https://api.github.com/repos/Zalathar/hypothesis/hooks","issue_events_url":"https://api.github.com/repos/Zalathar/hypothesis/issues/events{/number}","events_url":"https://api.github.com/repos/Zalathar/hypothesis/events","assignees_url":"https://api.github.com/repos/Zalathar/hypothesis/assignees{/user}","branches_url":"https://api.github.com/repos/Zalathar/hypothesis/branches{/branch}","tags_url":"https://api.github.com/repos/Zalathar/hypothesis/tags","blobs_url":"https://api.github.com/repos/Zalathar/hypothesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zalathar/hypothesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zalathar/hypothesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zalathar/hypothesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zalathar/hypothesis/statuses/{sha}","languages_url":"https://api.github.com/repos/Zalathar/hypothesis/languages","stargazers_url":"https://api.github.com/repos/Zalathar/hypothesis/stargazers","contributors_url":"https://api.github.com/repos/Zalathar/hypothesis/contributors","subscribers_url":"https://api.github.com/repos/Zalathar/hypothesis/subscribers","subscription_url":"https://api.github.com/repos/Zalathar/hypothesis/subscription","commits_url":"https://api.github.com/repos/Zalathar/hypothesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zalathar/hypothesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zalathar/hypothesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zalathar/hypothesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zalathar/hypothesis/contents/{+path}","compare_url":"https://api.github.com/repos/Zalathar/hypothesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zalathar/hypothesis/merges","archive_url":"https://api.github.com/repos/Zalathar/hypothesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zalathar/hypothesis/downloads","issues_url":"https://api.github.com/repos/Zalathar/hypothesis/issues{/number}","pulls_url":"https://api.github.com/repos/Zalathar/hypothesis/pulls{/number}","milestones_url":"https://api.github.com/repos/Zalathar/hypothesis/milestones{/number}","notifications_url":"https://api.github.com/repos/Zalathar/hypothesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zalathar/hypothesis/labels{/name}","releases_url":"https://api.github.com/repos/Zalathar/hypothesis/releases{/id}","deployments_url":"https://api.github.com/repos/Zalathar/hypothesis/deployments","created_at":"2018-08-13T10:52:36Z","updated_at":"2018-09-19T12:00:06Z","pushed_at":"2018-09-23T07:21:14Z","git_url":"git://github.com/Zalathar/hypothesis.git","ssh_url":"git@github.com:Zalathar/hypothesis.git","clone_url":"https://github.com/Zalathar/hypothesis.git","svn_url":"https://github.com/Zalathar/hypothesis","homepage":"http://hypothesis.works","size":12740,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HypothesisWorks:master","ref":"master","sha":"c4cf92422f97365427d3c938b85495a7b0429928","user":{"login":"HypothesisWorks","id":18481919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgxOTE5","avatar_url":"https://avatars1.githubusercontent.com/u/18481919?v=4","gravatar_id":"","url":"https://api.github.com/users/HypothesisWorks","html_url":"https://github.com/HypothesisWorks","followers_url":"https://api.github.com/users/HypothesisWorks/followers","following_url":"https://api.github.com/users/HypothesisWorks/following{/other_user}","gists_url":"https://api.github.com/users/HypothesisWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HypothesisWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HypothesisWorks/subscriptions","organizations_url":"https://api.github.com/users/HypothesisWorks/orgs","repos_url":"https://api.github.com/users/HypothesisWorks/repos","events_url":"https://api.github.com/users/HypothesisWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HypothesisWorks/received_events","type":"Organization","site_admin":false},"repo":{"id":8685799,"node_id":"MDEwOlJlcG9zaXRvcnk4Njg1Nzk5","name":"hypothesis","full_name":"HypothesisWorks/hypothesis","private":false,"owner":{"login":"HypothesisWorks","id":18481919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDgxOTE5","avatar_url":"https://avatars1.githubusercontent.com/u/18481919?v=4","gravatar_id":"","url":"https://api.github.com/users/HypothesisWorks","html_url":"https://github.com/HypothesisWorks","followers_url":"https://api.github.com/users/HypothesisWorks/followers","following_url":"https://api.github.com/users/HypothesisWorks/following{/other_user}","gists_url":"https://api.github.com/users/HypothesisWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HypothesisWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HypothesisWorks/subscriptions","organizations_url":"https://api.github.com/users/HypothesisWorks/orgs","repos_url":"https://api.github.com/users/HypothesisWorks/repos","events_url":"https://api.github.com/users/HypothesisWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HypothesisWorks/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HypothesisWorks/hypothesis","description":"Hypothesis is a powerful, flexible, and easy to use library for property-based testing.","fork":false,"url":"https://api.github.com/repos/HypothesisWorks/hypothesis","forks_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/forks","keys_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/teams","hooks_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/hooks","issue_events_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/events{/number}","events_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/events","assignees_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/assignees{/user}","branches_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/branches{/branch}","tags_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/tags","blobs_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/statuses/{sha}","languages_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/languages","stargazers_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/stargazers","contributors_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/contributors","subscribers_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/subscribers","subscription_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/subscription","commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/contents/{+path}","compare_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/merges","archive_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/downloads","issues_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues{/number}","pulls_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls{/number}","milestones_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/milestones{/number}","notifications_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/labels{/name}","releases_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/releases{/id}","deployments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/deployments","created_at":"2013-03-10T13:51:19Z","updated_at":"2018-09-24T03:17:53Z","pushed_at":"2018-09-23T13:41:05Z","git_url":"git://github.com/HypothesisWorks/hypothesis.git","ssh_url":"git@github.com:HypothesisWorks/hypothesis.git","clone_url":"https://github.com/HypothesisWorks/hypothesis.git","svn_url":"https://github.com/HypothesisWorks/hypothesis","homepage":"http://hypothesis.works","size":13166,"stargazers_count":2944,"watchers_count":2944,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":269,"mirror_url":null,"archived":false,"open_issues_count":86,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":269,"open_issues":86,"watchers":2944,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594"},"html":{"href":"https://github.com/HypothesisWorks/hypothesis/pull/1594"},"issue":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1594"},"comments":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1594/comments"},"review_comments":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594/comments"},"review_comment":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/pulls/1594/commits"},"statuses":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis/statuses/35932b7a1a031225a22c56a2cb19f8431ae909d2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DRMacIver"}}