{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/beard/pulls/comments/23924924","id":23924924,"diff_hunk":"@@ -164,3 +166,48 @@ def jaro_winkler(s1, s2, p=0.1):\n             break\n \n     return jaro_distance + (p * common_prefix * (1 - jaro_distance))\n+\n+\n+def levenshtein(a, b):\n+    \"\"\"Calculate the levenshtein distance between strings a and b.","path":"beard/metrics/text.py","position":20,"original_position":20,"commit_id":"a637dcd47d26440d0a23abb005badaa97bd2f82d","original_commit_id":"a637dcd47d26440d0a23abb005badaa97bd2f82d","user":{"login":"glouppe","id":477771,"avatar_url":"https://avatars.githubusercontent.com/u/477771?v=3","gravatar_id":"","url":"https://api.github.com/users/glouppe","html_url":"https://github.com/glouppe","followers_url":"https://api.github.com/users/glouppe/followers","following_url":"https://api.github.com/users/glouppe/following{/other_user}","gists_url":"https://api.github.com/users/glouppe/gists{/gist_id}","starred_url":"https://api.github.com/users/glouppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glouppe/subscriptions","organizations_url":"https://api.github.com/users/glouppe/orgs","repos_url":"https://api.github.com/users/glouppe/repos","events_url":"https://api.github.com/users/glouppe/events{/privacy}","received_events_url":"https://api.github.com/users/glouppe/received_events","type":"User","site_admin":false},"body":"Can you add a note about case sensitivity?","created_at":"2015-02-02T13:48:17Z","updated_at":"2015-02-02T13:48:17Z","html_url":"https://github.com/inveniosoftware/beard/pull/18#discussion_r23924924","pull_request_url":"https://api.github.com/repos/inveniosoftware/beard/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/comments/23924924"},"html":{"href":"https://github.com/inveniosoftware/beard/pull/18#discussion_r23924924"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/beard/pulls/18","id":28468403,"html_url":"https://github.com/inveniosoftware/beard/pull/18","diff_url":"https://github.com/inveniosoftware/beard/pull/18.diff","patch_url":"https://github.com/inveniosoftware/beard/pull/18.patch","issue_url":"https://api.github.com/repos/inveniosoftware/beard/issues/18","number":18,"state":"open","locked":false,"title":"metrics: levenshtein distance metric","user":{"login":"etzemis","id":6728974,"avatar_url":"https://avatars.githubusercontent.com/u/6728974?v=3","gravatar_id":"","url":"https://api.github.com/users/etzemis","html_url":"https://github.com/etzemis","followers_url":"https://api.github.com/users/etzemis/followers","following_url":"https://api.github.com/users/etzemis/following{/other_user}","gists_url":"https://api.github.com/users/etzemis/gists{/gist_id}","starred_url":"https://api.github.com/users/etzemis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etzemis/subscriptions","organizations_url":"https://api.github.com/users/etzemis/orgs","repos_url":"https://api.github.com/users/etzemis/repos","events_url":"https://api.github.com/users/etzemis/events{/privacy}","received_events_url":"https://api.github.com/users/etzemis/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-02T13:38:46Z","updated_at":"2015-02-02T13:48:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inveniosoftware/beard/pulls/18/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/beard/pulls/18/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/beard/pulls/comments/{number}","comments_url":"https://api.github.com/repos/inveniosoftware/beard/issues/18/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/beard/statuses/a637dcd47d26440d0a23abb005badaa97bd2f82d","head":{"label":"etzemis:levenshtein","ref":"levenshtein","sha":"a637dcd47d26440d0a23abb005badaa97bd2f82d","user":{"login":"etzemis","id":6728974,"avatar_url":"https://avatars.githubusercontent.com/u/6728974?v=3","gravatar_id":"","url":"https://api.github.com/users/etzemis","html_url":"https://github.com/etzemis","followers_url":"https://api.github.com/users/etzemis/followers","following_url":"https://api.github.com/users/etzemis/following{/other_user}","gists_url":"https://api.github.com/users/etzemis/gists{/gist_id}","starred_url":"https://api.github.com/users/etzemis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etzemis/subscriptions","organizations_url":"https://api.github.com/users/etzemis/orgs","repos_url":"https://api.github.com/users/etzemis/repos","events_url":"https://api.github.com/users/etzemis/events{/privacy}","received_events_url":"https://api.github.com/users/etzemis/received_events","type":"User","site_admin":false},"repo":{"id":29530217,"name":"beard","full_name":"etzemis/beard","owner":{"login":"etzemis","id":6728974,"avatar_url":"https://avatars.githubusercontent.com/u/6728974?v=3","gravatar_id":"","url":"https://api.github.com/users/etzemis","html_url":"https://github.com/etzemis","followers_url":"https://api.github.com/users/etzemis/followers","following_url":"https://api.github.com/users/etzemis/following{/other_user}","gists_url":"https://api.github.com/users/etzemis/gists{/gist_id}","starred_url":"https://api.github.com/users/etzemis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etzemis/subscriptions","organizations_url":"https://api.github.com/users/etzemis/orgs","repos_url":"https://api.github.com/users/etzemis/repos","events_url":"https://api.github.com/users/etzemis/events{/privacy}","received_events_url":"https://api.github.com/users/etzemis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etzemis/beard","description":"Bibliographic Entity Automatic Recognition and Disambiguation","fork":true,"url":"https://api.github.com/repos/etzemis/beard","forks_url":"https://api.github.com/repos/etzemis/beard/forks","keys_url":"https://api.github.com/repos/etzemis/beard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etzemis/beard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etzemis/beard/teams","hooks_url":"https://api.github.com/repos/etzemis/beard/hooks","issue_events_url":"https://api.github.com/repos/etzemis/beard/issues/events{/number}","events_url":"https://api.github.com/repos/etzemis/beard/events","assignees_url":"https://api.github.com/repos/etzemis/beard/assignees{/user}","branches_url":"https://api.github.com/repos/etzemis/beard/branches{/branch}","tags_url":"https://api.github.com/repos/etzemis/beard/tags","blobs_url":"https://api.github.com/repos/etzemis/beard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etzemis/beard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etzemis/beard/git/refs{/sha}","trees_url":"https://api.github.com/repos/etzemis/beard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etzemis/beard/statuses/{sha}","languages_url":"https://api.github.com/repos/etzemis/beard/languages","stargazers_url":"https://api.github.com/repos/etzemis/beard/stargazers","contributors_url":"https://api.github.com/repos/etzemis/beard/contributors","subscribers_url":"https://api.github.com/repos/etzemis/beard/subscribers","subscription_url":"https://api.github.com/repos/etzemis/beard/subscription","commits_url":"https://api.github.com/repos/etzemis/beard/commits{/sha}","git_commits_url":"https://api.github.com/repos/etzemis/beard/git/commits{/sha}","comments_url":"https://api.github.com/repos/etzemis/beard/comments{/number}","issue_comment_url":"https://api.github.com/repos/etzemis/beard/issues/comments/{number}","contents_url":"https://api.github.com/repos/etzemis/beard/contents/{+path}","compare_url":"https://api.github.com/repos/etzemis/beard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etzemis/beard/merges","archive_url":"https://api.github.com/repos/etzemis/beard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etzemis/beard/downloads","issues_url":"https://api.github.com/repos/etzemis/beard/issues{/number}","pulls_url":"https://api.github.com/repos/etzemis/beard/pulls{/number}","milestones_url":"https://api.github.com/repos/etzemis/beard/milestones{/number}","notifications_url":"https://api.github.com/repos/etzemis/beard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etzemis/beard/labels{/name}","releases_url":"https://api.github.com/repos/etzemis/beard/releases{/id}","created_at":"2015-01-20T13:09:04Z","updated_at":"2015-01-21T15:38:49Z","pushed_at":"2015-02-02T13:37:20Z","git_url":"git://github.com/etzemis/beard.git","ssh_url":"git@github.com:etzemis/beard.git","clone_url":"https://github.com/etzemis/beard.git","svn_url":"https://github.com/etzemis/beard","homepage":null,"size":597,"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":"inveniosoftware:master","ref":"master","sha":"ffb2eaab78b730c9915fc283978375f0aef4c766","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":25808549,"name":"beard","full_name":"inveniosoftware/beard","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/beard","description":"Bibliographic Entity Automatic Recognition and Disambiguation","fork":false,"url":"https://api.github.com/repos/inveniosoftware/beard","forks_url":"https://api.github.com/repos/inveniosoftware/beard/forks","keys_url":"https://api.github.com/repos/inveniosoftware/beard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/beard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/beard/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/beard/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/beard/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/beard/events","assignees_url":"https://api.github.com/repos/inveniosoftware/beard/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/beard/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/beard/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/beard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/beard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/beard/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/beard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/beard/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/beard/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/beard/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/beard/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/beard/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/beard/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/beard/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/beard/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/beard/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/beard/issues/comments/{number}","contents_url":"https://api.github.com/repos/inveniosoftware/beard/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/beard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/beard/merges","archive_url":"https://api.github.com/repos/inveniosoftware/beard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/beard/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/beard/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/beard/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/beard/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/beard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/beard/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/beard/releases{/id}","created_at":"2014-10-27T07:52:27Z","updated_at":"2015-02-02T12:51:46Z","pushed_at":"2015-02-02T12:51:46Z","git_url":"git://github.com/inveniosoftware/beard.git","ssh_url":"git@github.com:inveniosoftware/beard.git","clone_url":"https://github.com/inveniosoftware/beard.git","svn_url":"https://github.com/inveniosoftware/beard","homepage":null,"size":1404,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/18"},"html":{"href":"https://github.com/inveniosoftware/beard/pull/18"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/beard/issues/18"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/beard/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/beard/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/beard/statuses/a637dcd47d26440d0a23abb005badaa97bd2f82d"}}}}