{"action":"created","comment":{"url":"https://api.github.com/repos/pelias/fences-builder/pulls/comments/28439905","id":28439905,"diff_hunk":"@@ -56,6 +56,20 @@ describe('fences-builder', function () {\n       return array.sort(function (a, b) {\n         if (a.name < b.name) { return -1; }\n         if (a.name > b.name) { return 1; }\n+\n+        function sum(previousValue, currentValue) {\n+          return previousValue + currentValue;\n+        }\n+        var avgA = a.geometry.coordinates.reduce(sum);\n+        var avgB = b.geometry.coordinates.reduce(sum);","path":"test/fences-builder.js","position":30,"original_position":30,"commit_id":"927be332a2e47ab12b14aa9fe5d4b185d5b3907e","original_commit_id":"927be332a2e47ab12b14aa9fe5d4b185d5b3907e","user":{"login":"dianashk","id":5446511,"avatar_url":"https://avatars.githubusercontent.com/u/5446511?v=3","gravatar_id":"","url":"https://api.github.com/users/dianashk","html_url":"https://github.com/dianashk","followers_url":"https://api.github.com/users/dianashk/followers","following_url":"https://api.github.com/users/dianashk/following{/other_user}","gists_url":"https://api.github.com/users/dianashk/gists{/gist_id}","starred_url":"https://api.github.com/users/dianashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianashk/subscriptions","organizations_url":"https://api.github.com/users/dianashk/orgs","repos_url":"https://api.github.com/users/dianashk/repos","events_url":"https://api.github.com/users/dianashk/events{/privacy}","received_events_url":"https://api.github.com/users/dianashk/received_events","type":"User","site_admin":false},"body":"oops, i started out wanting to make an avg, but then decided sum would be good enough. i'll update the variable names. good catch.","created_at":"2015-04-15T17:04:58Z","updated_at":"2015-04-15T17:04:58Z","html_url":"https://github.com/pelias/fences-builder/pull/22#discussion_r28439905","pull_request_url":"https://api.github.com/repos/pelias/fences-builder/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/comments/28439905"},"html":{"href":"https://github.com/pelias/fences-builder/pull/22#discussion_r28439905"},"pull_request":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/pelias/fences-builder/pulls/22","id":33267433,"html_url":"https://github.com/pelias/fences-builder/pull/22","diff_url":"https://github.com/pelias/fences-builder/pull/22.diff","patch_url":"https://github.com/pelias/fences-builder/pull/22.patch","issue_url":"https://api.github.com/repos/pelias/fences-builder/issues/22","number":22,"state":"open","locked":false,"title":"Use TIGER name tag where name isn't found","user":{"login":"dianashk","id":5446511,"avatar_url":"https://avatars.githubusercontent.com/u/5446511?v=3","gravatar_id":"","url":"https://api.github.com/users/dianashk","html_url":"https://github.com/dianashk","followers_url":"https://api.github.com/users/dianashk/followers","following_url":"https://api.github.com/users/dianashk/following{/other_user}","gists_url":"https://api.github.com/users/dianashk/gists{/gist_id}","starred_url":"https://api.github.com/users/dianashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianashk/subscriptions","organizations_url":"https://api.github.com/users/dianashk/orgs","repos_url":"https://api.github.com/users/dianashk/repos","events_url":"https://api.github.com/users/dianashk/events{/privacy}","received_events_url":"https://api.github.com/users/dianashk/received_events","type":"User","site_admin":false},"body":"Fixes #14","created_at":"2015-04-14T15:13:49Z","updated_at":"2015-04-15T17:04:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef614aa75bc868578ab4ab2e55b32917482f0029","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pelias/fences-builder/pulls/22/commits","review_comments_url":"https://api.github.com/repos/pelias/fences-builder/pulls/22/comments","review_comment_url":"https://api.github.com/repos/pelias/fences-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pelias/fences-builder/issues/22/comments","statuses_url":"https://api.github.com/repos/pelias/fences-builder/statuses/927be332a2e47ab12b14aa9fe5d4b185d5b3907e","head":{"label":"pelias:tiger","ref":"tiger","sha":"927be332a2e47ab12b14aa9fe5d4b185d5b3907e","user":{"login":"pelias","id":8240367,"avatar_url":"https://avatars.githubusercontent.com/u/8240367?v=3","gravatar_id":"","url":"https://api.github.com/users/pelias","html_url":"https://github.com/pelias","followers_url":"https://api.github.com/users/pelias/followers","following_url":"https://api.github.com/users/pelias/following{/other_user}","gists_url":"https://api.github.com/users/pelias/gists{/gist_id}","starred_url":"https://api.github.com/users/pelias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelias/subscriptions","organizations_url":"https://api.github.com/users/pelias/orgs","repos_url":"https://api.github.com/users/pelias/repos","events_url":"https://api.github.com/users/pelias/events{/privacy}","received_events_url":"https://api.github.com/users/pelias/received_events","type":"Organization","site_admin":false},"repo":{"id":30472033,"name":"fences-builder","full_name":"pelias/fences-builder","owner":{"login":"pelias","id":8240367,"avatar_url":"https://avatars.githubusercontent.com/u/8240367?v=3","gravatar_id":"","url":"https://api.github.com/users/pelias","html_url":"https://github.com/pelias","followers_url":"https://api.github.com/users/pelias/followers","following_url":"https://api.github.com/users/pelias/following{/other_user}","gists_url":"https://api.github.com/users/pelias/gists{/gist_id}","starred_url":"https://api.github.com/users/pelias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelias/subscriptions","organizations_url":"https://api.github.com/users/pelias/orgs","repos_url":"https://api.github.com/users/pelias/repos","events_url":"https://api.github.com/users/pelias/events{/privacy}","received_events_url":"https://api.github.com/users/pelias/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pelias/fences-builder","description":"Polygon extractor for openstreetmap data","fork":false,"url":"https://api.github.com/repos/pelias/fences-builder","forks_url":"https://api.github.com/repos/pelias/fences-builder/forks","keys_url":"https://api.github.com/repos/pelias/fences-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelias/fences-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelias/fences-builder/teams","hooks_url":"https://api.github.com/repos/pelias/fences-builder/hooks","issue_events_url":"https://api.github.com/repos/pelias/fences-builder/issues/events{/number}","events_url":"https://api.github.com/repos/pelias/fences-builder/events","assignees_url":"https://api.github.com/repos/pelias/fences-builder/assignees{/user}","branches_url":"https://api.github.com/repos/pelias/fences-builder/branches{/branch}","tags_url":"https://api.github.com/repos/pelias/fences-builder/tags","blobs_url":"https://api.github.com/repos/pelias/fences-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelias/fences-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelias/fences-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelias/fences-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelias/fences-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/pelias/fences-builder/languages","stargazers_url":"https://api.github.com/repos/pelias/fences-builder/stargazers","contributors_url":"https://api.github.com/repos/pelias/fences-builder/contributors","subscribers_url":"https://api.github.com/repos/pelias/fences-builder/subscribers","subscription_url":"https://api.github.com/repos/pelias/fences-builder/subscription","commits_url":"https://api.github.com/repos/pelias/fences-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelias/fences-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelias/fences-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelias/fences-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelias/fences-builder/contents/{+path}","compare_url":"https://api.github.com/repos/pelias/fences-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelias/fences-builder/merges","archive_url":"https://api.github.com/repos/pelias/fences-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelias/fences-builder/downloads","issues_url":"https://api.github.com/repos/pelias/fences-builder/issues{/number}","pulls_url":"https://api.github.com/repos/pelias/fences-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/pelias/fences-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/pelias/fences-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelias/fences-builder/labels{/name}","releases_url":"https://api.github.com/repos/pelias/fences-builder/releases{/id}","created_at":"2015-02-07T22:08:48Z","updated_at":"2015-04-10T21:11:00Z","pushed_at":"2015-04-14T19:30:14Z","git_url":"git://github.com/pelias/fences-builder.git","ssh_url":"git@github.com:pelias/fences-builder.git","clone_url":"https://github.com/pelias/fences-builder.git","svn_url":"https://github.com/pelias/fences-builder","homepage":null,"size":21453,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"pelias:master","ref":"master","sha":"2776d4bd64e11a59da94a6aa66dd41a290f121ed","user":{"login":"pelias","id":8240367,"avatar_url":"https://avatars.githubusercontent.com/u/8240367?v=3","gravatar_id":"","url":"https://api.github.com/users/pelias","html_url":"https://github.com/pelias","followers_url":"https://api.github.com/users/pelias/followers","following_url":"https://api.github.com/users/pelias/following{/other_user}","gists_url":"https://api.github.com/users/pelias/gists{/gist_id}","starred_url":"https://api.github.com/users/pelias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelias/subscriptions","organizations_url":"https://api.github.com/users/pelias/orgs","repos_url":"https://api.github.com/users/pelias/repos","events_url":"https://api.github.com/users/pelias/events{/privacy}","received_events_url":"https://api.github.com/users/pelias/received_events","type":"Organization","site_admin":false},"repo":{"id":30472033,"name":"fences-builder","full_name":"pelias/fences-builder","owner":{"login":"pelias","id":8240367,"avatar_url":"https://avatars.githubusercontent.com/u/8240367?v=3","gravatar_id":"","url":"https://api.github.com/users/pelias","html_url":"https://github.com/pelias","followers_url":"https://api.github.com/users/pelias/followers","following_url":"https://api.github.com/users/pelias/following{/other_user}","gists_url":"https://api.github.com/users/pelias/gists{/gist_id}","starred_url":"https://api.github.com/users/pelias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelias/subscriptions","organizations_url":"https://api.github.com/users/pelias/orgs","repos_url":"https://api.github.com/users/pelias/repos","events_url":"https://api.github.com/users/pelias/events{/privacy}","received_events_url":"https://api.github.com/users/pelias/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pelias/fences-builder","description":"Polygon extractor for openstreetmap data","fork":false,"url":"https://api.github.com/repos/pelias/fences-builder","forks_url":"https://api.github.com/repos/pelias/fences-builder/forks","keys_url":"https://api.github.com/repos/pelias/fences-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pelias/fences-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pelias/fences-builder/teams","hooks_url":"https://api.github.com/repos/pelias/fences-builder/hooks","issue_events_url":"https://api.github.com/repos/pelias/fences-builder/issues/events{/number}","events_url":"https://api.github.com/repos/pelias/fences-builder/events","assignees_url":"https://api.github.com/repos/pelias/fences-builder/assignees{/user}","branches_url":"https://api.github.com/repos/pelias/fences-builder/branches{/branch}","tags_url":"https://api.github.com/repos/pelias/fences-builder/tags","blobs_url":"https://api.github.com/repos/pelias/fences-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pelias/fences-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pelias/fences-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/pelias/fences-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pelias/fences-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/pelias/fences-builder/languages","stargazers_url":"https://api.github.com/repos/pelias/fences-builder/stargazers","contributors_url":"https://api.github.com/repos/pelias/fences-builder/contributors","subscribers_url":"https://api.github.com/repos/pelias/fences-builder/subscribers","subscription_url":"https://api.github.com/repos/pelias/fences-builder/subscription","commits_url":"https://api.github.com/repos/pelias/fences-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/pelias/fences-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/pelias/fences-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/pelias/fences-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/pelias/fences-builder/contents/{+path}","compare_url":"https://api.github.com/repos/pelias/fences-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pelias/fences-builder/merges","archive_url":"https://api.github.com/repos/pelias/fences-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pelias/fences-builder/downloads","issues_url":"https://api.github.com/repos/pelias/fences-builder/issues{/number}","pulls_url":"https://api.github.com/repos/pelias/fences-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/pelias/fences-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/pelias/fences-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pelias/fences-builder/labels{/name}","releases_url":"https://api.github.com/repos/pelias/fences-builder/releases{/id}","created_at":"2015-02-07T22:08:48Z","updated_at":"2015-04-10T21:11:00Z","pushed_at":"2015-04-14T19:30:14Z","git_url":"git://github.com/pelias/fences-builder.git","ssh_url":"git@github.com:pelias/fences-builder.git","clone_url":"https://github.com/pelias/fences-builder.git","svn_url":"https://github.com/pelias/fences-builder","homepage":null,"size":21453,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/22"},"html":{"href":"https://github.com/pelias/fences-builder/pull/22"},"issue":{"href":"https://api.github.com/repos/pelias/fences-builder/issues/22"},"comments":{"href":"https://api.github.com/repos/pelias/fences-builder/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pelias/fences-builder/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/pelias/fences-builder/statuses/927be332a2e47ab12b14aa9fe5d4b185d5b3907e"}}}}