{"action":"created","comment":{"url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/comments/194173641","pull_request_review_id":127305562,"id":194173641,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDE3MzY0MQ==","diff_hunk":"@@ -0,0 +1,15 @@\n+'''N-gram function\n+\n+Find n-grams of a given string\n+\n+More: https://en.wikipedia.org/wiki/N-gram\n+'''\n+\n+import sys\n+\n+def find_n_grams(n, str):\n+    return [str[i:i+n] for i in range(len(str) - (n-1))]","path":"osm-fudge/n_gram.py","position":null,"original_position":11,"commit_id":"fb9f2fc4c2e4c9c2d4fa1fbbb2b80c5e3a8748fe","original_commit_id":"0065693810870e4d6fcf8d689b4b1c29358179a0","user":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"body":"Couldn't get good documents for preconditon/postcondition as decorators. Did it with an assert statement\r\n\r\n```\r\nassert n > 0 and n <= len(str)\r\n```\r\n\r\n","created_at":"2018-06-08T20:31:45Z","updated_at":"2018-06-08T20:31:46Z","html_url":"https://github.com/amishas157/osm-fudge/pull/5#discussion_r194173641","pull_request_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/comments/194173641"},"html":{"href":"https://github.com/amishas157/osm-fudge/pull/5#discussion_r194173641"},"pull_request":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5"}},"in_reply_to_id":192693909},"pull_request":{"url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5","id":190776174,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNzc2MTc0","html_url":"https://github.com/amishas157/osm-fudge/pull/5","diff_url":"https://github.com/amishas157/osm-fudge/pull/5.diff","patch_url":"https://github.com/amishas157/osm-fudge/pull/5.patch","issue_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/5","number":5,"state":"open","locked":false,"title":"Add module to calculate levenshtein distance between two strings","user":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/amishas157/osm-fudge/issues/2","created_at":"2018-05-27T08:21:15Z","updated_at":"2018-06-08T20:31:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"901797697a9b2797c3b33131b52d3ecfe0649576","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5/commits","review_comments_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5/comments","review_comment_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/5/comments","statuses_url":"https://api.github.com/repos/amishas157/osm-fudge/statuses/fb9f2fc4c2e4c9c2d4fa1fbbb2b80c5e3a8748fe","head":{"label":"amishas157:levenshtein-distance","ref":"levenshtein-distance","sha":"fb9f2fc4c2e4c9c2d4fa1fbbb2b80c5e3a8748fe","user":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"repo":{"id":134967566,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ5Njc1NjY=","name":"osm-fudge","full_name":"amishas157/osm-fudge","owner":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amishas157/osm-fudge","description":"An application to suggest best matched places from OpenStreetMap, for your input place name.","fork":false,"url":"https://api.github.com/repos/amishas157/osm-fudge","forks_url":"https://api.github.com/repos/amishas157/osm-fudge/forks","keys_url":"https://api.github.com/repos/amishas157/osm-fudge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amishas157/osm-fudge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amishas157/osm-fudge/teams","hooks_url":"https://api.github.com/repos/amishas157/osm-fudge/hooks","issue_events_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/events{/number}","events_url":"https://api.github.com/repos/amishas157/osm-fudge/events","assignees_url":"https://api.github.com/repos/amishas157/osm-fudge/assignees{/user}","branches_url":"https://api.github.com/repos/amishas157/osm-fudge/branches{/branch}","tags_url":"https://api.github.com/repos/amishas157/osm-fudge/tags","blobs_url":"https://api.github.com/repos/amishas157/osm-fudge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amishas157/osm-fudge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amishas157/osm-fudge/git/refs{/sha}","trees_url":"https://api.github.com/repos/amishas157/osm-fudge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amishas157/osm-fudge/statuses/{sha}","languages_url":"https://api.github.com/repos/amishas157/osm-fudge/languages","stargazers_url":"https://api.github.com/repos/amishas157/osm-fudge/stargazers","contributors_url":"https://api.github.com/repos/amishas157/osm-fudge/contributors","subscribers_url":"https://api.github.com/repos/amishas157/osm-fudge/subscribers","subscription_url":"https://api.github.com/repos/amishas157/osm-fudge/subscription","commits_url":"https://api.github.com/repos/amishas157/osm-fudge/commits{/sha}","git_commits_url":"https://api.github.com/repos/amishas157/osm-fudge/git/commits{/sha}","comments_url":"https://api.github.com/repos/amishas157/osm-fudge/comments{/number}","issue_comment_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/comments{/number}","contents_url":"https://api.github.com/repos/amishas157/osm-fudge/contents/{+path}","compare_url":"https://api.github.com/repos/amishas157/osm-fudge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amishas157/osm-fudge/merges","archive_url":"https://api.github.com/repos/amishas157/osm-fudge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amishas157/osm-fudge/downloads","issues_url":"https://api.github.com/repos/amishas157/osm-fudge/issues{/number}","pulls_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls{/number}","milestones_url":"https://api.github.com/repos/amishas157/osm-fudge/milestones{/number}","notifications_url":"https://api.github.com/repos/amishas157/osm-fudge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amishas157/osm-fudge/labels{/name}","releases_url":"https://api.github.com/repos/amishas157/osm-fudge/releases{/id}","deployments_url":"https://api.github.com/repos/amishas157/osm-fudge/deployments","created_at":"2018-05-26T14:18:21Z","updated_at":"2018-06-08T18:50:34Z","pushed_at":"2018-06-08T20:30:17Z","git_url":"git://github.com/amishas157/osm-fudge.git","ssh_url":"git@github.com:amishas157/osm-fudge.git","clone_url":"https://github.com/amishas157/osm-fudge.git","svn_url":"https://github.com/amishas157/osm-fudge","homepage":null,"size":510,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"amishas157:osmium-handler","ref":"osmium-handler","sha":"abfeda0cdd690205ddee9fe43e7cdc3111b68aef","user":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"repo":{"id":134967566,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ5Njc1NjY=","name":"osm-fudge","full_name":"amishas157/osm-fudge","owner":{"login":"amishas157","id":4952872,"node_id":"MDQ6VXNlcjQ5NTI4NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4952872?v=4","gravatar_id":"","url":"https://api.github.com/users/amishas157","html_url":"https://github.com/amishas157","followers_url":"https://api.github.com/users/amishas157/followers","following_url":"https://api.github.com/users/amishas157/following{/other_user}","gists_url":"https://api.github.com/users/amishas157/gists{/gist_id}","starred_url":"https://api.github.com/users/amishas157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amishas157/subscriptions","organizations_url":"https://api.github.com/users/amishas157/orgs","repos_url":"https://api.github.com/users/amishas157/repos","events_url":"https://api.github.com/users/amishas157/events{/privacy}","received_events_url":"https://api.github.com/users/amishas157/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amishas157/osm-fudge","description":"An application to suggest best matched places from OpenStreetMap, for your input place name.","fork":false,"url":"https://api.github.com/repos/amishas157/osm-fudge","forks_url":"https://api.github.com/repos/amishas157/osm-fudge/forks","keys_url":"https://api.github.com/repos/amishas157/osm-fudge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amishas157/osm-fudge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amishas157/osm-fudge/teams","hooks_url":"https://api.github.com/repos/amishas157/osm-fudge/hooks","issue_events_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/events{/number}","events_url":"https://api.github.com/repos/amishas157/osm-fudge/events","assignees_url":"https://api.github.com/repos/amishas157/osm-fudge/assignees{/user}","branches_url":"https://api.github.com/repos/amishas157/osm-fudge/branches{/branch}","tags_url":"https://api.github.com/repos/amishas157/osm-fudge/tags","blobs_url":"https://api.github.com/repos/amishas157/osm-fudge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amishas157/osm-fudge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amishas157/osm-fudge/git/refs{/sha}","trees_url":"https://api.github.com/repos/amishas157/osm-fudge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amishas157/osm-fudge/statuses/{sha}","languages_url":"https://api.github.com/repos/amishas157/osm-fudge/languages","stargazers_url":"https://api.github.com/repos/amishas157/osm-fudge/stargazers","contributors_url":"https://api.github.com/repos/amishas157/osm-fudge/contributors","subscribers_url":"https://api.github.com/repos/amishas157/osm-fudge/subscribers","subscription_url":"https://api.github.com/repos/amishas157/osm-fudge/subscription","commits_url":"https://api.github.com/repos/amishas157/osm-fudge/commits{/sha}","git_commits_url":"https://api.github.com/repos/amishas157/osm-fudge/git/commits{/sha}","comments_url":"https://api.github.com/repos/amishas157/osm-fudge/comments{/number}","issue_comment_url":"https://api.github.com/repos/amishas157/osm-fudge/issues/comments{/number}","contents_url":"https://api.github.com/repos/amishas157/osm-fudge/contents/{+path}","compare_url":"https://api.github.com/repos/amishas157/osm-fudge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amishas157/osm-fudge/merges","archive_url":"https://api.github.com/repos/amishas157/osm-fudge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amishas157/osm-fudge/downloads","issues_url":"https://api.github.com/repos/amishas157/osm-fudge/issues{/number}","pulls_url":"https://api.github.com/repos/amishas157/osm-fudge/pulls{/number}","milestones_url":"https://api.github.com/repos/amishas157/osm-fudge/milestones{/number}","notifications_url":"https://api.github.com/repos/amishas157/osm-fudge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amishas157/osm-fudge/labels{/name}","releases_url":"https://api.github.com/repos/amishas157/osm-fudge/releases{/id}","deployments_url":"https://api.github.com/repos/amishas157/osm-fudge/deployments","created_at":"2018-05-26T14:18:21Z","updated_at":"2018-06-08T18:50:34Z","pushed_at":"2018-06-08T20:30:17Z","git_url":"git://github.com/amishas157/osm-fudge.git","ssh_url":"git@github.com:amishas157/osm-fudge.git","clone_url":"https://github.com/amishas157/osm-fudge.git","svn_url":"https://github.com/amishas157/osm-fudge","homepage":null,"size":510,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5"},"html":{"href":"https://github.com/amishas157/osm-fudge/pull/5"},"issue":{"href":"https://api.github.com/repos/amishas157/osm-fudge/issues/5"},"comments":{"href":"https://api.github.com/repos/amishas157/osm-fudge/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amishas157/osm-fudge/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/amishas157/osm-fudge/statuses/fb9f2fc4c2e4c9c2d4fa1fbbb2b80c5e3a8748fe"}},"author_association":"OWNER"}}
{"actor":{"display_login":"amishas157"}}