{"action":"created","comment":{"url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/comments/28579150","id":28579150,"diff_hunk":"@@ -0,0 +1,46 @@\n+class EnglishChecker():\n+    \"\"\"This class serves the purpose of checking if a statement is English or not.\n+       Two filter methods accomplish this by ensuring:\n+        1. At least 85% of the message comprises of english alphabets\n+        2. At least 25% of the words in the sentence are contained in\n+           the dictionary file, an exhaustive list of english words\n+    \"\"\"\n+    def __init__(self):\n+        self.UPPERLETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n+        lower = self.UPPERLETTERS.lower()\n+        self.LETTERS_AND_SPACE = self.UPPERLETTERS + lower + ' \\t\\n'\n+        f = open('dictionary.txt')","path":"libcipher/utils.py","position":12,"original_position":12,"commit_id":"054bb5573505dfbd14e8b76b143969b32ecc2814","original_commit_id":"054bb5573505dfbd14e8b76b143969b32ecc2814","user":{"login":"bravegnu","id":1171852,"avatar_url":"https://avatars.githubusercontent.com/u/1171852?v=3","gravatar_id":"","url":"https://api.github.com/users/bravegnu","html_url":"https://github.com/bravegnu","followers_url":"https://api.github.com/users/bravegnu/followers","following_url":"https://api.github.com/users/bravegnu/following{/other_user}","gists_url":"https://api.github.com/users/bravegnu/gists{/gist_id}","starred_url":"https://api.github.com/users/bravegnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravegnu/subscriptions","organizations_url":"https://api.github.com/users/bravegnu/orgs","repos_url":"https://api.github.com/users/bravegnu/repos","events_url":"https://api.github.com/users/bravegnu/events{/privacy}","received_events_url":"https://api.github.com/users/bravegnu/received_events","type":"User","site_admin":false},"body":"Use `with` statement. Also need to handle `IOError`.","created_at":"2015-04-17T08:54:41Z","updated_at":"2015-04-17T08:54:41Z","html_url":"https://github.com/Chennaipy/libcipher/pull/11#discussion_r28579150","pull_request_url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/comments/28579150"},"html":{"href":"https://github.com/Chennaipy/libcipher/pull/11#discussion_r28579150"},"pull_request":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11","id":33488221,"html_url":"https://github.com/Chennaipy/libcipher/pull/11","diff_url":"https://github.com/Chennaipy/libcipher/pull/11.diff","patch_url":"https://github.com/Chennaipy/libcipher/pull/11.patch","issue_url":"https://api.github.com/repos/Chennaipy/libcipher/issues/11","number":11,"state":"open","locked":false,"title":"Request to evaluate added utils module","user":{"login":"Anupama-Github","id":1543857,"avatar_url":"https://avatars.githubusercontent.com/u/1543857?v=3","gravatar_id":"","url":"https://api.github.com/users/Anupama-Github","html_url":"https://github.com/Anupama-Github","followers_url":"https://api.github.com/users/Anupama-Github/followers","following_url":"https://api.github.com/users/Anupama-Github/following{/other_user}","gists_url":"https://api.github.com/users/Anupama-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/Anupama-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anupama-Github/subscriptions","organizations_url":"https://api.github.com/users/Anupama-Github/orgs","repos_url":"https://api.github.com/users/Anupama-Github/repos","events_url":"https://api.github.com/users/Anupama-Github/events{/privacy}","received_events_url":"https://api.github.com/users/Anupama-Github/received_events","type":"User","site_admin":false},"body":"@bravegnu Could you evaluate the code for utils module and let me know the corrections?\r\nThank you","created_at":"2015-04-16T20:14:55Z","updated_at":"2015-04-17T08:54:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7f51a9e382818de3aa728931ff6572aaf43301b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Chennaipy/libcipher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chennaipy/libcipher/issues/11/comments","statuses_url":"https://api.github.com/repos/Chennaipy/libcipher/statuses/054bb5573505dfbd14e8b76b143969b32ecc2814","head":{"label":"Anupama-Github:master","ref":"master","sha":"054bb5573505dfbd14e8b76b143969b32ecc2814","user":{"login":"Anupama-Github","id":1543857,"avatar_url":"https://avatars.githubusercontent.com/u/1543857?v=3","gravatar_id":"","url":"https://api.github.com/users/Anupama-Github","html_url":"https://github.com/Anupama-Github","followers_url":"https://api.github.com/users/Anupama-Github/followers","following_url":"https://api.github.com/users/Anupama-Github/following{/other_user}","gists_url":"https://api.github.com/users/Anupama-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/Anupama-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anupama-Github/subscriptions","organizations_url":"https://api.github.com/users/Anupama-Github/orgs","repos_url":"https://api.github.com/users/Anupama-Github/repos","events_url":"https://api.github.com/users/Anupama-Github/events{/privacy}","received_events_url":"https://api.github.com/users/Anupama-Github/received_events","type":"User","site_admin":false},"repo":{"id":34076502,"name":"libcipher","full_name":"Anupama-Github/libcipher","owner":{"login":"Anupama-Github","id":1543857,"avatar_url":"https://avatars.githubusercontent.com/u/1543857?v=3","gravatar_id":"","url":"https://api.github.com/users/Anupama-Github","html_url":"https://github.com/Anupama-Github","followers_url":"https://api.github.com/users/Anupama-Github/followers","following_url":"https://api.github.com/users/Anupama-Github/following{/other_user}","gists_url":"https://api.github.com/users/Anupama-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/Anupama-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anupama-Github/subscriptions","organizations_url":"https://api.github.com/users/Anupama-Github/orgs","repos_url":"https://api.github.com/users/Anupama-Github/repos","events_url":"https://api.github.com/users/Anupama-Github/events{/privacy}","received_events_url":"https://api.github.com/users/Anupama-Github/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anupama-Github/libcipher","description":"A library of cipher functions, derived from the book \"Hacking Secret Ciphers with Python\".","fork":true,"url":"https://api.github.com/repos/Anupama-Github/libcipher","forks_url":"https://api.github.com/repos/Anupama-Github/libcipher/forks","keys_url":"https://api.github.com/repos/Anupama-Github/libcipher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anupama-Github/libcipher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anupama-Github/libcipher/teams","hooks_url":"https://api.github.com/repos/Anupama-Github/libcipher/hooks","issue_events_url":"https://api.github.com/repos/Anupama-Github/libcipher/issues/events{/number}","events_url":"https://api.github.com/repos/Anupama-Github/libcipher/events","assignees_url":"https://api.github.com/repos/Anupama-Github/libcipher/assignees{/user}","branches_url":"https://api.github.com/repos/Anupama-Github/libcipher/branches{/branch}","tags_url":"https://api.github.com/repos/Anupama-Github/libcipher/tags","blobs_url":"https://api.github.com/repos/Anupama-Github/libcipher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anupama-Github/libcipher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anupama-Github/libcipher/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anupama-Github/libcipher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anupama-Github/libcipher/statuses/{sha}","languages_url":"https://api.github.com/repos/Anupama-Github/libcipher/languages","stargazers_url":"https://api.github.com/repos/Anupama-Github/libcipher/stargazers","contributors_url":"https://api.github.com/repos/Anupama-Github/libcipher/contributors","subscribers_url":"https://api.github.com/repos/Anupama-Github/libcipher/subscribers","subscription_url":"https://api.github.com/repos/Anupama-Github/libcipher/subscription","commits_url":"https://api.github.com/repos/Anupama-Github/libcipher/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anupama-Github/libcipher/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anupama-Github/libcipher/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anupama-Github/libcipher/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anupama-Github/libcipher/contents/{+path}","compare_url":"https://api.github.com/repos/Anupama-Github/libcipher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anupama-Github/libcipher/merges","archive_url":"https://api.github.com/repos/Anupama-Github/libcipher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anupama-Github/libcipher/downloads","issues_url":"https://api.github.com/repos/Anupama-Github/libcipher/issues{/number}","pulls_url":"https://api.github.com/repos/Anupama-Github/libcipher/pulls{/number}","milestones_url":"https://api.github.com/repos/Anupama-Github/libcipher/milestones{/number}","notifications_url":"https://api.github.com/repos/Anupama-Github/libcipher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anupama-Github/libcipher/labels{/name}","releases_url":"https://api.github.com/repos/Anupama-Github/libcipher/releases{/id}","created_at":"2015-04-16T19:38:01Z","updated_at":"2015-04-17T04:21:30Z","pushed_at":"2015-04-17T04:21:29Z","git_url":"git://github.com/Anupama-Github/libcipher.git","ssh_url":"git@github.com:Anupama-Github/libcipher.git","clone_url":"https://github.com/Anupama-Github/libcipher.git","svn_url":"https://github.com/Anupama-Github/libcipher","homepage":null,"size":0,"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":"Chennaipy:master","ref":"master","sha":"29e40ba287fe769a3197cc265b1d3d184ba236c1","user":{"login":"Chennaipy","id":8838798,"avatar_url":"https://avatars.githubusercontent.com/u/8838798?v=3","gravatar_id":"","url":"https://api.github.com/users/Chennaipy","html_url":"https://github.com/Chennaipy","followers_url":"https://api.github.com/users/Chennaipy/followers","following_url":"https://api.github.com/users/Chennaipy/following{/other_user}","gists_url":"https://api.github.com/users/Chennaipy/gists{/gist_id}","starred_url":"https://api.github.com/users/Chennaipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chennaipy/subscriptions","organizations_url":"https://api.github.com/users/Chennaipy/orgs","repos_url":"https://api.github.com/users/Chennaipy/repos","events_url":"https://api.github.com/users/Chennaipy/events{/privacy}","received_events_url":"https://api.github.com/users/Chennaipy/received_events","type":"Organization","site_admin":false},"repo":{"id":33808068,"name":"libcipher","full_name":"Chennaipy/libcipher","owner":{"login":"Chennaipy","id":8838798,"avatar_url":"https://avatars.githubusercontent.com/u/8838798?v=3","gravatar_id":"","url":"https://api.github.com/users/Chennaipy","html_url":"https://github.com/Chennaipy","followers_url":"https://api.github.com/users/Chennaipy/followers","following_url":"https://api.github.com/users/Chennaipy/following{/other_user}","gists_url":"https://api.github.com/users/Chennaipy/gists{/gist_id}","starred_url":"https://api.github.com/users/Chennaipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chennaipy/subscriptions","organizations_url":"https://api.github.com/users/Chennaipy/orgs","repos_url":"https://api.github.com/users/Chennaipy/repos","events_url":"https://api.github.com/users/Chennaipy/events{/privacy}","received_events_url":"https://api.github.com/users/Chennaipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Chennaipy/libcipher","description":"A library of cipher functions, derived from the book \"Hacking Secret Ciphers with Python\".","fork":false,"url":"https://api.github.com/repos/Chennaipy/libcipher","forks_url":"https://api.github.com/repos/Chennaipy/libcipher/forks","keys_url":"https://api.github.com/repos/Chennaipy/libcipher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chennaipy/libcipher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chennaipy/libcipher/teams","hooks_url":"https://api.github.com/repos/Chennaipy/libcipher/hooks","issue_events_url":"https://api.github.com/repos/Chennaipy/libcipher/issues/events{/number}","events_url":"https://api.github.com/repos/Chennaipy/libcipher/events","assignees_url":"https://api.github.com/repos/Chennaipy/libcipher/assignees{/user}","branches_url":"https://api.github.com/repos/Chennaipy/libcipher/branches{/branch}","tags_url":"https://api.github.com/repos/Chennaipy/libcipher/tags","blobs_url":"https://api.github.com/repos/Chennaipy/libcipher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chennaipy/libcipher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chennaipy/libcipher/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chennaipy/libcipher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chennaipy/libcipher/statuses/{sha}","languages_url":"https://api.github.com/repos/Chennaipy/libcipher/languages","stargazers_url":"https://api.github.com/repos/Chennaipy/libcipher/stargazers","contributors_url":"https://api.github.com/repos/Chennaipy/libcipher/contributors","subscribers_url":"https://api.github.com/repos/Chennaipy/libcipher/subscribers","subscription_url":"https://api.github.com/repos/Chennaipy/libcipher/subscription","commits_url":"https://api.github.com/repos/Chennaipy/libcipher/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chennaipy/libcipher/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chennaipy/libcipher/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chennaipy/libcipher/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chennaipy/libcipher/contents/{+path}","compare_url":"https://api.github.com/repos/Chennaipy/libcipher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chennaipy/libcipher/merges","archive_url":"https://api.github.com/repos/Chennaipy/libcipher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chennaipy/libcipher/downloads","issues_url":"https://api.github.com/repos/Chennaipy/libcipher/issues{/number}","pulls_url":"https://api.github.com/repos/Chennaipy/libcipher/pulls{/number}","milestones_url":"https://api.github.com/repos/Chennaipy/libcipher/milestones{/number}","notifications_url":"https://api.github.com/repos/Chennaipy/libcipher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chennaipy/libcipher/labels{/name}","releases_url":"https://api.github.com/repos/Chennaipy/libcipher/releases{/id}","created_at":"2015-04-12T07:48:38Z","updated_at":"2015-04-16T18:45:21Z","pushed_at":"2015-04-17T04:21:29Z","git_url":"git://github.com/Chennaipy/libcipher.git","ssh_url":"git@github.com:Chennaipy/libcipher.git","clone_url":"https://github.com/Chennaipy/libcipher.git","svn_url":"https://github.com/Chennaipy/libcipher","homepage":null,"size":0,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11"},"html":{"href":"https://github.com/Chennaipy/libcipher/pull/11"},"issue":{"href":"https://api.github.com/repos/Chennaipy/libcipher/issues/11"},"comments":{"href":"https://api.github.com/repos/Chennaipy/libcipher/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chennaipy/libcipher/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Chennaipy/libcipher/statuses/054bb5573505dfbd14e8b76b143969b32ecc2814"}}}}