{"action":"created","comment":{"url":"https://api.github.com/repos/aosabook/500lines/pulls/comments/27792680","id":27792680,"diff_hunk":"@@ -200,24 +199,22 @@ Furthermore, we need some way to initialize a new cluster.\n \n But enough talk of theory and algorithms -- let's have a look at the code.\n \n-Introducing Cluster\n-===================\n+## Introducing Cluster\n \n-The \"Cluster\" library in this chapter implements a simple form of Multi-Paxos.\n+The *Cluster* library in this chapter implements a simple form of Multi-Paxos.\n It is designed as a library to provide a consensus service to a larger application.\n \n-Users of this library will depend on its correctness, so it's important to structure the code so that we can see -- and test -- its correspondance to the specification.\n-Complex protocols can exhibit complex failures, too, so we will build support for reproducing and debugging rare failures.\n+Users of this library will depend on its correctness, so it's important to structure the code so that we can see -- and test -- its correspondence to the specification.\n+Complex protocols can exhibit complex failures, so we will build support for reproducing and debugging rare failures.\n \n The implementation in this chapter is proof-of-concept code: enough to demonstrate that the core concept is practical, but without all of the mundane equipment required for use in production.\n-However, the code is structured so that such equipment can be added later with minimal changes to the core implementation.\n+The code is structured so that such equipment can be added later with minimal changes to the core implementation.\n \n Let's get started.\n \n-Types and Constants\n--------------------\n+### Types and Constants\n \n-Cluster's protocol uses 15 different message types, each defined as a Python ``namedtuple``.\n+Cluster's protocol uses fifteen different message types, each defined as a Python ``namedtuple``.\n \n {{{ from_to cluster.py '# message types' '^$'","path":"cluster/CHAPTER.rst","position":196,"original_position":196,"commit_id":"1d36627abb26e7161b3cc5693084045a567d2683","original_commit_id":"1d36627abb26e7161b3cc5693084045a567d2683","user":{"login":"MichaelDiBernardo","id":2091754,"avatar_url":"https://avatars.githubusercontent.com/u/2091754?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelDiBernardo","html_url":"https://github.com/MichaelDiBernardo","followers_url":"https://api.github.com/users/MichaelDiBernardo/followers","following_url":"https://api.github.com/users/MichaelDiBernardo/following{/other_user}","gists_url":"https://api.github.com/users/MichaelDiBernardo/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelDiBernardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelDiBernardo/subscriptions","organizations_url":"https://api.github.com/users/MichaelDiBernardo/orgs","repos_url":"https://api.github.com/users/MichaelDiBernardo/repos","events_url":"https://api.github.com/users/MichaelDiBernardo/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelDiBernardo/received_events","type":"User","site_admin":false},"body":"For the record, I did think about stealing this :)","created_at":"2015-04-06T11:03:13Z","updated_at":"2015-04-06T11:03:13Z","html_url":"https://github.com/aosabook/500lines/pull/116#discussion_r27792680","pull_request_url":"https://api.github.com/repos/aosabook/500lines/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/comments/27792680"},"html":{"href":"https://github.com/aosabook/500lines/pull/116#discussion_r27792680"},"pull_request":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/aosabook/500lines/pulls/116","id":32552631,"html_url":"https://github.com/aosabook/500lines/pull/116","diff_url":"https://github.com/aosabook/500lines/pull/116.diff","patch_url":"https://github.com/aosabook/500lines/pull/116.patch","issue_url":"https://api.github.com/repos/aosabook/500lines/issues/116","number":116,"state":"open","locked":false,"title":"Copyedits to the Paxos clustering chapter","user":{"login":"amyrbrown","id":3077295,"avatar_url":"https://avatars.githubusercontent.com/u/3077295?v=3","gravatar_id":"","url":"https://api.github.com/users/amyrbrown","html_url":"https://github.com/amyrbrown","followers_url":"https://api.github.com/users/amyrbrown/followers","following_url":"https://api.github.com/users/amyrbrown/following{/other_user}","gists_url":"https://api.github.com/users/amyrbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/amyrbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyrbrown/subscriptions","organizations_url":"https://api.github.com/users/amyrbrown/orgs","repos_url":"https://api.github.com/users/amyrbrown/repos","events_url":"https://api.github.com/users/amyrbrown/events{/privacy}","received_events_url":"https://api.github.com/users/amyrbrown/received_events","type":"User","site_admin":false},"body":"See comments and queries inline. Some of my changes are converting from RST to MD (which is not complete), there are some spelling fixes, and other things.","created_at":"2015-04-02T21:34:59Z","updated_at":"2015-04-06T11:03:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"780a5c173ada6cf5eb228e098b1d310e77bdabf1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aosabook/500lines/pulls/116/commits","review_comments_url":"https://api.github.com/repos/aosabook/500lines/pulls/116/comments","review_comment_url":"https://api.github.com/repos/aosabook/500lines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aosabook/500lines/issues/116/comments","statuses_url":"https://api.github.com/repos/aosabook/500lines/statuses/1d36627abb26e7161b3cc5693084045a567d2683","head":{"label":"amyrbrown:paxos-edits","ref":"paxos-edits","sha":"1d36627abb26e7161b3cc5693084045a567d2683","user":{"login":"amyrbrown","id":3077295,"avatar_url":"https://avatars.githubusercontent.com/u/3077295?v=3","gravatar_id":"","url":"https://api.github.com/users/amyrbrown","html_url":"https://github.com/amyrbrown","followers_url":"https://api.github.com/users/amyrbrown/followers","following_url":"https://api.github.com/users/amyrbrown/following{/other_user}","gists_url":"https://api.github.com/users/amyrbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/amyrbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyrbrown/subscriptions","organizations_url":"https://api.github.com/users/amyrbrown/orgs","repos_url":"https://api.github.com/users/amyrbrown/repos","events_url":"https://api.github.com/users/amyrbrown/events{/privacy}","received_events_url":"https://api.github.com/users/amyrbrown/received_events","type":"User","site_admin":false},"repo":{"id":30090695,"name":"500lines","full_name":"amyrbrown/500lines","owner":{"login":"amyrbrown","id":3077295,"avatar_url":"https://avatars.githubusercontent.com/u/3077295?v=3","gravatar_id":"","url":"https://api.github.com/users/amyrbrown","html_url":"https://github.com/amyrbrown","followers_url":"https://api.github.com/users/amyrbrown/followers","following_url":"https://api.github.com/users/amyrbrown/following{/other_user}","gists_url":"https://api.github.com/users/amyrbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/amyrbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyrbrown/subscriptions","organizations_url":"https://api.github.com/users/amyrbrown/orgs","repos_url":"https://api.github.com/users/amyrbrown/repos","events_url":"https://api.github.com/users/amyrbrown/events{/privacy}","received_events_url":"https://api.github.com/users/amyrbrown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amyrbrown/500lines","description":"500 Lines or Less","fork":true,"url":"https://api.github.com/repos/amyrbrown/500lines","forks_url":"https://api.github.com/repos/amyrbrown/500lines/forks","keys_url":"https://api.github.com/repos/amyrbrown/500lines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amyrbrown/500lines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amyrbrown/500lines/teams","hooks_url":"https://api.github.com/repos/amyrbrown/500lines/hooks","issue_events_url":"https://api.github.com/repos/amyrbrown/500lines/issues/events{/number}","events_url":"https://api.github.com/repos/amyrbrown/500lines/events","assignees_url":"https://api.github.com/repos/amyrbrown/500lines/assignees{/user}","branches_url":"https://api.github.com/repos/amyrbrown/500lines/branches{/branch}","tags_url":"https://api.github.com/repos/amyrbrown/500lines/tags","blobs_url":"https://api.github.com/repos/amyrbrown/500lines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amyrbrown/500lines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amyrbrown/500lines/git/refs{/sha}","trees_url":"https://api.github.com/repos/amyrbrown/500lines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amyrbrown/500lines/statuses/{sha}","languages_url":"https://api.github.com/repos/amyrbrown/500lines/languages","stargazers_url":"https://api.github.com/repos/amyrbrown/500lines/stargazers","contributors_url":"https://api.github.com/repos/amyrbrown/500lines/contributors","subscribers_url":"https://api.github.com/repos/amyrbrown/500lines/subscribers","subscription_url":"https://api.github.com/repos/amyrbrown/500lines/subscription","commits_url":"https://api.github.com/repos/amyrbrown/500lines/commits{/sha}","git_commits_url":"https://api.github.com/repos/amyrbrown/500lines/git/commits{/sha}","comments_url":"https://api.github.com/repos/amyrbrown/500lines/comments{/number}","issue_comment_url":"https://api.github.com/repos/amyrbrown/500lines/issues/comments{/number}","contents_url":"https://api.github.com/repos/amyrbrown/500lines/contents/{+path}","compare_url":"https://api.github.com/repos/amyrbrown/500lines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amyrbrown/500lines/merges","archive_url":"https://api.github.com/repos/amyrbrown/500lines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amyrbrown/500lines/downloads","issues_url":"https://api.github.com/repos/amyrbrown/500lines/issues{/number}","pulls_url":"https://api.github.com/repos/amyrbrown/500lines/pulls{/number}","milestones_url":"https://api.github.com/repos/amyrbrown/500lines/milestones{/number}","notifications_url":"https://api.github.com/repos/amyrbrown/500lines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amyrbrown/500lines/labels{/name}","releases_url":"https://api.github.com/repos/amyrbrown/500lines/releases{/id}","created_at":"2015-01-30T21:04:37Z","updated_at":"2015-04-02T22:02:50Z","pushed_at":"2015-04-02T22:02:46Z","git_url":"git://github.com/amyrbrown/500lines.git","ssh_url":"git@github.com:amyrbrown/500lines.git","clone_url":"https://github.com/amyrbrown/500lines.git","svn_url":"https://github.com/amyrbrown/500lines","homepage":null,"size":42557,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aosabook:master","ref":"master","sha":"4256b848e3fe5e9e173fa53c046074fc13440233","user":{"login":"aosabook","id":5631751,"avatar_url":"https://avatars.githubusercontent.com/u/5631751?v=3","gravatar_id":"","url":"https://api.github.com/users/aosabook","html_url":"https://github.com/aosabook","followers_url":"https://api.github.com/users/aosabook/followers","following_url":"https://api.github.com/users/aosabook/following{/other_user}","gists_url":"https://api.github.com/users/aosabook/gists{/gist_id}","starred_url":"https://api.github.com/users/aosabook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosabook/subscriptions","organizations_url":"https://api.github.com/users/aosabook/orgs","repos_url":"https://api.github.com/users/aosabook/repos","events_url":"https://api.github.com/users/aosabook/events{/privacy}","received_events_url":"https://api.github.com/users/aosabook/received_events","type":"User","site_admin":false},"repo":{"id":14098121,"name":"500lines","full_name":"aosabook/500lines","owner":{"login":"aosabook","id":5631751,"avatar_url":"https://avatars.githubusercontent.com/u/5631751?v=3","gravatar_id":"","url":"https://api.github.com/users/aosabook","html_url":"https://github.com/aosabook","followers_url":"https://api.github.com/users/aosabook/followers","following_url":"https://api.github.com/users/aosabook/following{/other_user}","gists_url":"https://api.github.com/users/aosabook/gists{/gist_id}","starred_url":"https://api.github.com/users/aosabook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosabook/subscriptions","organizations_url":"https://api.github.com/users/aosabook/orgs","repos_url":"https://api.github.com/users/aosabook/repos","events_url":"https://api.github.com/users/aosabook/events{/privacy}","received_events_url":"https://api.github.com/users/aosabook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aosabook/500lines","description":"500 Lines or Less","fork":false,"url":"https://api.github.com/repos/aosabook/500lines","forks_url":"https://api.github.com/repos/aosabook/500lines/forks","keys_url":"https://api.github.com/repos/aosabook/500lines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aosabook/500lines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aosabook/500lines/teams","hooks_url":"https://api.github.com/repos/aosabook/500lines/hooks","issue_events_url":"https://api.github.com/repos/aosabook/500lines/issues/events{/number}","events_url":"https://api.github.com/repos/aosabook/500lines/events","assignees_url":"https://api.github.com/repos/aosabook/500lines/assignees{/user}","branches_url":"https://api.github.com/repos/aosabook/500lines/branches{/branch}","tags_url":"https://api.github.com/repos/aosabook/500lines/tags","blobs_url":"https://api.github.com/repos/aosabook/500lines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aosabook/500lines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aosabook/500lines/git/refs{/sha}","trees_url":"https://api.github.com/repos/aosabook/500lines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aosabook/500lines/statuses/{sha}","languages_url":"https://api.github.com/repos/aosabook/500lines/languages","stargazers_url":"https://api.github.com/repos/aosabook/500lines/stargazers","contributors_url":"https://api.github.com/repos/aosabook/500lines/contributors","subscribers_url":"https://api.github.com/repos/aosabook/500lines/subscribers","subscription_url":"https://api.github.com/repos/aosabook/500lines/subscription","commits_url":"https://api.github.com/repos/aosabook/500lines/commits{/sha}","git_commits_url":"https://api.github.com/repos/aosabook/500lines/git/commits{/sha}","comments_url":"https://api.github.com/repos/aosabook/500lines/comments{/number}","issue_comment_url":"https://api.github.com/repos/aosabook/500lines/issues/comments{/number}","contents_url":"https://api.github.com/repos/aosabook/500lines/contents/{+path}","compare_url":"https://api.github.com/repos/aosabook/500lines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aosabook/500lines/merges","archive_url":"https://api.github.com/repos/aosabook/500lines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aosabook/500lines/downloads","issues_url":"https://api.github.com/repos/aosabook/500lines/issues{/number}","pulls_url":"https://api.github.com/repos/aosabook/500lines/pulls{/number}","milestones_url":"https://api.github.com/repos/aosabook/500lines/milestones{/number}","notifications_url":"https://api.github.com/repos/aosabook/500lines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aosabook/500lines/labels{/name}","releases_url":"https://api.github.com/repos/aosabook/500lines/releases{/id}","created_at":"2013-11-04T02:02:53Z","updated_at":"2015-04-06T08:23:27Z","pushed_at":"2015-04-03T11:15:55Z","git_url":"git://github.com/aosabook/500lines.git","ssh_url":"git@github.com:aosabook/500lines.git","clone_url":"https://github.com/aosabook/500lines.git","svn_url":"https://github.com/aosabook/500lines","homepage":null,"size":56401,"stargazers_count":4870,"watchers_count":4870,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":963,"mirror_url":null,"open_issues_count":21,"forks":963,"open_issues":21,"watchers":4870,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/116"},"html":{"href":"https://github.com/aosabook/500lines/pull/116"},"issue":{"href":"https://api.github.com/repos/aosabook/500lines/issues/116"},"comments":{"href":"https://api.github.com/repos/aosabook/500lines/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aosabook/500lines/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/aosabook/500lines/statuses/1d36627abb26e7161b3cc5693084045a567d2683"}}}}