{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1","id":26801903,"html_url":"https://github.com/yhat/python-naive-bayes/pull/1","diff_url":"https://github.com/yhat/python-naive-bayes/pull/1.diff","patch_url":"https://github.com/yhat/python-naive-bayes/pull/1.patch","issue_url":"https://api.github.com/repos/yhat/python-naive-bayes/issues/1","number":1,"state":"closed","locked":false,"title":"make python3 capable","user":{"login":"kylepjohnson","id":1854968,"avatar_url":"https://avatars.githubusercontent.com/u/1854968?v=3","gravatar_id":"","url":"https://api.github.com/users/kylepjohnson","html_url":"https://github.com/kylepjohnson","followers_url":"https://api.github.com/users/kylepjohnson/followers","following_url":"https://api.github.com/users/kylepjohnson/following{/other_user}","gists_url":"https://api.github.com/users/kylepjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/kylepjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylepjohnson/subscriptions","organizations_url":"https://api.github.com/users/kylepjohnson/orgs","repos_url":"https://api.github.com/users/kylepjohnson/repos","events_url":"https://api.github.com/users/kylepjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/kylepjohnson/received_events","type":"User","site_admin":false},"body":"This change makes the script Python 2 and 3 compliant.\r\n\r\nI ran `2to3`, then adjusted the `remove_punctuation()` function to use a `set()` and `join()` instead of `maketrans()`. Surely this is latter change is not as efficient as `maketrans()`, but is arguably more readable.\r\n\r\nI hope you find this useful and not a nuisance! If there are any adjustments you would like made, feel free to let me know and I can do so.","created_at":"2015-01-05T00:28:16Z","updated_at":"2015-01-05T00:33:01Z","closed_at":"2015-01-05T00:33:01Z","merged_at":"2015-01-05T00:33:01Z","merge_commit_sha":"b4d06ea437ad6452fc06643f6fa54885056d36b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1/commits","review_comments_url":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1/comments","review_comment_url":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/comments/{number}","comments_url":"https://api.github.com/repos/yhat/python-naive-bayes/issues/1/comments","statuses_url":"https://api.github.com/repos/yhat/python-naive-bayes/statuses/bd2afa03d2c87bcda00736ef77ecc23e88b41656","head":{"label":"kylepjohnson:master","ref":"master","sha":"bd2afa03d2c87bcda00736ef77ecc23e88b41656","user":{"login":"kylepjohnson","id":1854968,"avatar_url":"https://avatars.githubusercontent.com/u/1854968?v=3","gravatar_id":"","url":"https://api.github.com/users/kylepjohnson","html_url":"https://github.com/kylepjohnson","followers_url":"https://api.github.com/users/kylepjohnson/followers","following_url":"https://api.github.com/users/kylepjohnson/following{/other_user}","gists_url":"https://api.github.com/users/kylepjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/kylepjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylepjohnson/subscriptions","organizations_url":"https://api.github.com/users/kylepjohnson/orgs","repos_url":"https://api.github.com/users/kylepjohnson/repos","events_url":"https://api.github.com/users/kylepjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/kylepjohnson/received_events","type":"User","site_admin":false},"repo":{"id":28789819,"name":"python-naive-bayes","full_name":"kylepjohnson/python-naive-bayes","owner":{"login":"kylepjohnson","id":1854968,"avatar_url":"https://avatars.githubusercontent.com/u/1854968?v=3","gravatar_id":"","url":"https://api.github.com/users/kylepjohnson","html_url":"https://github.com/kylepjohnson","followers_url":"https://api.github.com/users/kylepjohnson/followers","following_url":"https://api.github.com/users/kylepjohnson/following{/other_user}","gists_url":"https://api.github.com/users/kylepjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/kylepjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylepjohnson/subscriptions","organizations_url":"https://api.github.com/users/kylepjohnson/orgs","repos_url":"https://api.github.com/users/kylepjohnson/repos","events_url":"https://api.github.com/users/kylepjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/kylepjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kylepjohnson/python-naive-bayes","description":"Naive Bayes in Python","fork":true,"url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes","forks_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/forks","keys_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/teams","hooks_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/hooks","issue_events_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/issues/events{/number}","events_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/events","assignees_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/assignees{/user}","branches_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/branches{/branch}","tags_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/tags","blobs_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/statuses/{sha}","languages_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/languages","stargazers_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/stargazers","contributors_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/contributors","subscribers_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/subscribers","subscription_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/subscription","commits_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/issues/comments/{number}","contents_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/contents/{+path}","compare_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/merges","archive_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/downloads","issues_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/issues{/number}","pulls_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/pulls{/number}","milestones_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/milestones{/number}","notifications_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/labels{/name}","releases_url":"https://api.github.com/repos/kylepjohnson/python-naive-bayes/releases{/id}","created_at":"2015-01-04T23:47:04Z","updated_at":"2015-01-05T00:06:59Z","pushed_at":"2015-01-05T00:06:59Z","git_url":"git://github.com/kylepjohnson/python-naive-bayes.git","ssh_url":"git@github.com:kylepjohnson/python-naive-bayes.git","clone_url":"https://github.com/kylepjohnson/python-naive-bayes.git","svn_url":"https://github.com/kylepjohnson/python-naive-bayes","homepage":"","size":113,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"yhat:master","ref":"master","sha":"e53fb6de486644ebcf73f664d8c7ee6ed866dfa8","user":{"login":"yhat","id":2684181,"avatar_url":"https://avatars.githubusercontent.com/u/2684181?v=3","gravatar_id":"","url":"https://api.github.com/users/yhat","html_url":"https://github.com/yhat","followers_url":"https://api.github.com/users/yhat/followers","following_url":"https://api.github.com/users/yhat/following{/other_user}","gists_url":"https://api.github.com/users/yhat/gists{/gist_id}","starred_url":"https://api.github.com/users/yhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhat/subscriptions","organizations_url":"https://api.github.com/users/yhat/orgs","repos_url":"https://api.github.com/users/yhat/repos","events_url":"https://api.github.com/users/yhat/events{/privacy}","received_events_url":"https://api.github.com/users/yhat/received_events","type":"Organization","site_admin":false},"repo":{"id":27834177,"name":"python-naive-bayes","full_name":"yhat/python-naive-bayes","owner":{"login":"yhat","id":2684181,"avatar_url":"https://avatars.githubusercontent.com/u/2684181?v=3","gravatar_id":"","url":"https://api.github.com/users/yhat","html_url":"https://github.com/yhat","followers_url":"https://api.github.com/users/yhat/followers","following_url":"https://api.github.com/users/yhat/following{/other_user}","gists_url":"https://api.github.com/users/yhat/gists{/gist_id}","starred_url":"https://api.github.com/users/yhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhat/subscriptions","organizations_url":"https://api.github.com/users/yhat/orgs","repos_url":"https://api.github.com/users/yhat/repos","events_url":"https://api.github.com/users/yhat/events{/privacy}","received_events_url":"https://api.github.com/users/yhat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yhat/python-naive-bayes","description":"Naive Bayes in Python","fork":false,"url":"https://api.github.com/repos/yhat/python-naive-bayes","forks_url":"https://api.github.com/repos/yhat/python-naive-bayes/forks","keys_url":"https://api.github.com/repos/yhat/python-naive-bayes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yhat/python-naive-bayes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yhat/python-naive-bayes/teams","hooks_url":"https://api.github.com/repos/yhat/python-naive-bayes/hooks","issue_events_url":"https://api.github.com/repos/yhat/python-naive-bayes/issues/events{/number}","events_url":"https://api.github.com/repos/yhat/python-naive-bayes/events","assignees_url":"https://api.github.com/repos/yhat/python-naive-bayes/assignees{/user}","branches_url":"https://api.github.com/repos/yhat/python-naive-bayes/branches{/branch}","tags_url":"https://api.github.com/repos/yhat/python-naive-bayes/tags","blobs_url":"https://api.github.com/repos/yhat/python-naive-bayes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yhat/python-naive-bayes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yhat/python-naive-bayes/git/refs{/sha}","trees_url":"https://api.github.com/repos/yhat/python-naive-bayes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yhat/python-naive-bayes/statuses/{sha}","languages_url":"https://api.github.com/repos/yhat/python-naive-bayes/languages","stargazers_url":"https://api.github.com/repos/yhat/python-naive-bayes/stargazers","contributors_url":"https://api.github.com/repos/yhat/python-naive-bayes/contributors","subscribers_url":"https://api.github.com/repos/yhat/python-naive-bayes/subscribers","subscription_url":"https://api.github.com/repos/yhat/python-naive-bayes/subscription","commits_url":"https://api.github.com/repos/yhat/python-naive-bayes/commits{/sha}","git_commits_url":"https://api.github.com/repos/yhat/python-naive-bayes/git/commits{/sha}","comments_url":"https://api.github.com/repos/yhat/python-naive-bayes/comments{/number}","issue_comment_url":"https://api.github.com/repos/yhat/python-naive-bayes/issues/comments/{number}","contents_url":"https://api.github.com/repos/yhat/python-naive-bayes/contents/{+path}","compare_url":"https://api.github.com/repos/yhat/python-naive-bayes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yhat/python-naive-bayes/merges","archive_url":"https://api.github.com/repos/yhat/python-naive-bayes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yhat/python-naive-bayes/downloads","issues_url":"https://api.github.com/repos/yhat/python-naive-bayes/issues{/number}","pulls_url":"https://api.github.com/repos/yhat/python-naive-bayes/pulls{/number}","milestones_url":"https://api.github.com/repos/yhat/python-naive-bayes/milestones{/number}","notifications_url":"https://api.github.com/repos/yhat/python-naive-bayes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yhat/python-naive-bayes/labels{/name}","releases_url":"https://api.github.com/repos/yhat/python-naive-bayes/releases{/id}","created_at":"2014-12-10T18:45:15Z","updated_at":"2014-12-30T20:06:08Z","pushed_at":"2015-01-05T00:33:01Z","git_url":"git://github.com/yhat/python-naive-bayes.git","ssh_url":"git@github.com:yhat/python-naive-bayes.git","clone_url":"https://github.com/yhat/python-naive-bayes.git","svn_url":"https://github.com/yhat/python-naive-bayes","homepage":"","size":140,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":0,"forks":6,"open_issues":0,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1"},"html":{"href":"https://github.com/yhat/python-naive-bayes/pull/1"},"issue":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/issues/1"},"comments":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/yhat/python-naive-bayes/statuses/bd2afa03d2c87bcda00736ef77ecc23e88b41656"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"glamp","id":1409333,"avatar_url":"https://avatars.githubusercontent.com/u/1409333?v=3","gravatar_id":"","url":"https://api.github.com/users/glamp","html_url":"https://github.com/glamp","followers_url":"https://api.github.com/users/glamp/followers","following_url":"https://api.github.com/users/glamp/following{/other_user}","gists_url":"https://api.github.com/users/glamp/gists{/gist_id}","starred_url":"https://api.github.com/users/glamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glamp/subscriptions","organizations_url":"https://api.github.com/users/glamp/orgs","repos_url":"https://api.github.com/users/glamp/repos","events_url":"https://api.github.com/users/glamp/events{/privacy}","received_events_url":"https://api.github.com/users/glamp/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":11,"changed_files":1}}