{"action":"created","comment":{"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments/43651474","id":43651474,"diff_hunk":"@@ -88,6 +95,16 @@ def read_up_path\n           )\n         end\n \n+        def fingerprint\n+          digest = Digest::MD5.new\n+          digest << current_sexp.file\n+          digest << \"-\"","path":"lib/cc/engine/analyzers/violation.rb","position":36,"original_position":36,"commit_id":"59d47fcdbe448e6e3764a71372e7c4f6d263ac85","original_commit_id":"59d47fcdbe448e6e3764a71372e7c4f6d263ac85","user":{"login":"GordonDiggs","id":245083,"avatar_url":"https://avatars.githubusercontent.com/u/245083?v=3","gravatar_id":"","url":"https://api.github.com/users/GordonDiggs","html_url":"https://github.com/GordonDiggs","followers_url":"https://api.github.com/users/GordonDiggs/followers","following_url":"https://api.github.com/users/GordonDiggs/following{/other_user}","gists_url":"https://api.github.com/users/GordonDiggs/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonDiggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonDiggs/subscriptions","organizations_url":"https://api.github.com/users/GordonDiggs/orgs","repos_url":"https://api.github.com/users/GordonDiggs/repos","events_url":"https://api.github.com/users/GordonDiggs/events{/privacy}","received_events_url":"https://api.github.com/users/GordonDiggs/received_events","type":"User","site_admin":false},"body":"Oh weird - missed that. I think it's fine then! Whatever the old one does we should match","created_at":"2015-11-02T16:59:12Z","updated_at":"2015-11-02T16:59:12Z","html_url":"https://github.com/codeclimate/codeclimate-duplication/pull/34#discussion_r43651474","pull_request_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments/43651474"},"html":{"href":"https://github.com/codeclimate/codeclimate-duplication/pull/34#discussion_r43651474"},"pull_request":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34","id":49450455,"html_url":"https://github.com/codeclimate/codeclimate-duplication/pull/34","diff_url":"https://github.com/codeclimate/codeclimate-duplication/pull/34.diff","patch_url":"https://github.com/codeclimate/codeclimate-duplication/pull/34.patch","issue_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/34","number":34,"state":"open","locked":false,"title":"Add fingerprint to violation json","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"body":"This uses the first filename and the mass of the s-expression as the\r\nfingerprint for duplications.\r\n\r\nThis also changes the tests to test properties instead of a comparing against a fixture like string.","created_at":"2015-11-02T16:11:19Z","updated_at":"2015-11-02T16:59:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3d3904b97658c14d02a2766ff670b13f788dcb9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34/commits","review_comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34/comments","review_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/34/comments","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/59d47fcdbe448e6e3764a71372e7c4f6d263ac85","head":{"label":"codeclimate:bmw-fingerprint","ref":"bmw-fingerprint","sha":"59d47fcdbe448e6e3764a71372e7c4f6d263ac85","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41421994,"name":"codeclimate-duplication","full_name":"codeclimate/codeclimate-duplication","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-duplication","description":"Code Climate engine for code duplication analysis","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/releases{/id}","created_at":"2015-08-26T11:29:43Z","updated_at":"2015-10-13T20:35:37Z","pushed_at":"2015-11-02T16:55:24Z","git_url":"git://github.com/codeclimate/codeclimate-duplication.git","ssh_url":"git@github.com:codeclimate/codeclimate-duplication.git","clone_url":"https://github.com/codeclimate/codeclimate-duplication.git","svn_url":"https://github.com/codeclimate/codeclimate-duplication","homepage":"http://codeclimate.com","size":897,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"codeclimate:master","ref":"master","sha":"4b4ef9958ad1df3382240dc8e694414b2ca7522b","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41421994,"name":"codeclimate-duplication","full_name":"codeclimate/codeclimate-duplication","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-duplication","description":"Code Climate engine for code duplication analysis","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-duplication","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-duplication/releases{/id}","created_at":"2015-08-26T11:29:43Z","updated_at":"2015-10-13T20:35:37Z","pushed_at":"2015-11-02T16:55:24Z","git_url":"git://github.com/codeclimate/codeclimate-duplication.git","ssh_url":"git@github.com:codeclimate/codeclimate-duplication.git","clone_url":"https://github.com/codeclimate/codeclimate-duplication.git","svn_url":"https://github.com/codeclimate/codeclimate-duplication","homepage":"http://codeclimate.com","size":897,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34"},"html":{"href":"https://github.com/codeclimate/codeclimate-duplication/pull/34"},"issue":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/34"},"comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate/codeclimate-duplication/statuses/59d47fcdbe448e6e3764a71372e7c4f6d263ac85"}}}}