GitHub PullRequestReviewCommentEvent at 2014-12-11 20:54:53
Repository: Field-Journal
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/comments/21708678","id":21708678,"diff_hunk":"@@ -0,0 +1,50 @@\n+class Neighbors\n+  DISTANCE_FROM_OBJECT = 0.1\n+\n+  def initialize(object_with_coordinates, collection)\n+    @object = object_with_coordinates\n+    @collection = collection\n+  end\n+\n+  def results \n+    @collection.select { |e| close?(e) } - [@object]\n+  end\n+\n+  def close?(e)\n+    has_coordinates?(e) &&\n+      (latitude(e) - latitude(@object)).abs <= DISTANCE_FROM_OBJECT &&\n+      (longitude(e) - longitude(@object)).abs <= DISTANCE_FROM_OBJECT     ","path":"app/models/neighbors.rb","position":16,"original_position":16,"commit_id":"eb05a27802ab262b970149a09e20ef39a834b8c2","original_commit_id":"eb05a27802ab262b970149a09e20ef39a834b8c2","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Trailing whitespace detected.","created_at":"2014-12-11T20:54:53Z","updated_at":"2014-12-11T20:54:53Z","html_url":"https://github.com/JohnBuonomo/Field-Journal/pull/15#discussion_r21708678","pull_request_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/comments/21708678"},"html":{"href":"https://github.com/JohnBuonomo/Field-Journal/pull/15#discussion_r21708678"},"pull_request":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15","id":25693704,"html_url":"https://github.com/JohnBuonomo/Field-Journal/pull/15","diff_url":"https://github.com/JohnBuonomo/Field-Journal/pull/15.diff","patch_url":"https://github.com/JohnBuonomo/Field-Journal/pull/15.patch","issue_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/15","number":15,"state":"open","locked":false,"title":"automatic locations","user":{"login":"JohnBuonomo","id":8364590,"avatar_url":"https://avatars.githubusercontent.com/u/8364590?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnBuonomo","html_url":"https://github.com/JohnBuonomo","followers_url":"https://api.github.com/users/JohnBuonomo/followers","following_url":"https://api.github.com/users/JohnBuonomo/following{/other_user}","gists_url":"https://api.github.com/users/JohnBuonomo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBuonomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBuonomo/subscriptions","organizations_url":"https://api.github.com/users/JohnBuonomo/orgs","repos_url":"https://api.github.com/users/JohnBuonomo/repos","events_url":"https://api.github.com/users/JohnBuonomo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBuonomo/received_events","type":"User","site_admin":false},"body":"Creates a command that generates locations object for locations with many entries. \r\nDoes this with 6 models:\r\n * EntryWeb takes an entry and finds entries with close coordinates\r\n * NetworkCenter evaluates a web of entries and finds the ones that are central (that have the most nearby entries)\r\n * NetWorkCenter is helped by a NestedHashConverter which converts hashes of objects into hashes of coordinates\r\n * DataParser takes a text file with the name of every city, it cleans it, and makes it into a list of city names and coordinates.\r\n * LocationMaker uses the NetworkCenter to find coordinates in the center of entry density.  It uses CityNameSearcher to find the names of cities near those coordinates.  Then it generates Location objects for those cities.","created_at":"2014-12-08T20:18:42Z","updated_at":"2014-12-11T20:54:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"661f0d71934af318b9eca303f137703c3a8fdc06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15/commits","review_comments_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15/comments","review_comment_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/comments/{number}","comments_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/15/comments","statuses_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/statuses/eb05a27802ab262b970149a09e20ef39a834b8c2","head":{"label":"JohnBuonomo:data-parser","ref":"data-parser","sha":"eb05a27802ab262b970149a09e20ef39a834b8c2","user":{"login":"JohnBuonomo","id":8364590,"avatar_url":"https://avatars.githubusercontent.com/u/8364590?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnBuonomo","html_url":"https://github.com/JohnBuonomo","followers_url":"https://api.github.com/users/JohnBuonomo/followers","following_url":"https://api.github.com/users/JohnBuonomo/following{/other_user}","gists_url":"https://api.github.com/users/JohnBuonomo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBuonomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBuonomo/subscriptions","organizations_url":"https://api.github.com/users/JohnBuonomo/orgs","repos_url":"https://api.github.com/users/JohnBuonomo/repos","events_url":"https://api.github.com/users/JohnBuonomo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBuonomo/received_events","type":"User","site_admin":false},"repo":{"id":27388263,"name":"Field-Journal","full_name":"JohnBuonomo/Field-Journal","owner":{"login":"JohnBuonomo","id":8364590,"avatar_url":"https://avatars.githubusercontent.com/u/8364590?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnBuonomo","html_url":"https://github.com/JohnBuonomo","followers_url":"https://api.github.com/users/JohnBuonomo/followers","following_url":"https://api.github.com/users/JohnBuonomo/following{/other_user}","gists_url":"https://api.github.com/users/JohnBuonomo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBuonomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBuonomo/subscriptions","organizations_url":"https://api.github.com/users/JohnBuonomo/orgs","repos_url":"https://api.github.com/users/JohnBuonomo/repos","events_url":"https://api.github.com/users/JohnBuonomo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBuonomo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnBuonomo/Field-Journal","description":"","fork":false,"url":"https://api.github.com/repos/JohnBuonomo/Field-Journal","forks_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/forks","keys_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/teams","hooks_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/hooks","issue_events_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/events{/number}","events_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/events","assignees_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/assignees{/user}","branches_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/branches{/branch}","tags_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/tags","blobs_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/languages","stargazers_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/stargazers","contributors_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/contributors","subscribers_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/subscribers","subscription_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/subscription","commits_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/comments/{number}","contents_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/contents/{+path}","compare_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/merges","archive_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/downloads","issues_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues{/number}","pulls_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/labels{/name}","releases_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/releases{/id}","created_at":"2014-12-01T16:29:47Z","updated_at":"2014-12-11T19:37:30Z","pushed_at":"2014-12-11T20:54:48Z","git_url":"git://github.com/JohnBuonomo/Field-Journal.git","ssh_url":"git@github.com:JohnBuonomo/Field-Journal.git","clone_url":"https://github.com/JohnBuonomo/Field-Journal.git","svn_url":"https://github.com/JohnBuonomo/Field-Journal","homepage":null,"size":2664,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"JohnBuonomo:master","ref":"master","sha":"d9f536d00e10fd438bc8ea6c97c861836865d067","user":{"login":"JohnBuonomo","id":8364590,"avatar_url":"https://avatars.githubusercontent.com/u/8364590?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnBuonomo","html_url":"https://github.com/JohnBuonomo","followers_url":"https://api.github.com/users/JohnBuonomo/followers","following_url":"https://api.github.com/users/JohnBuonomo/following{/other_user}","gists_url":"https://api.github.com/users/JohnBuonomo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBuonomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBuonomo/subscriptions","organizations_url":"https://api.github.com/users/JohnBuonomo/orgs","repos_url":"https://api.github.com/users/JohnBuonomo/repos","events_url":"https://api.github.com/users/JohnBuonomo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBuonomo/received_events","type":"User","site_admin":false},"repo":{"id":27388263,"name":"Field-Journal","full_name":"JohnBuonomo/Field-Journal","owner":{"login":"JohnBuonomo","id":8364590,"avatar_url":"https://avatars.githubusercontent.com/u/8364590?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnBuonomo","html_url":"https://github.com/JohnBuonomo","followers_url":"https://api.github.com/users/JohnBuonomo/followers","following_url":"https://api.github.com/users/JohnBuonomo/following{/other_user}","gists_url":"https://api.github.com/users/JohnBuonomo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBuonomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBuonomo/subscriptions","organizations_url":"https://api.github.com/users/JohnBuonomo/orgs","repos_url":"https://api.github.com/users/JohnBuonomo/repos","events_url":"https://api.github.com/users/JohnBuonomo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBuonomo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnBuonomo/Field-Journal","description":"","fork":false,"url":"https://api.github.com/repos/JohnBuonomo/Field-Journal","forks_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/forks","keys_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/teams","hooks_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/hooks","issue_events_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/events{/number}","events_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/events","assignees_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/assignees{/user}","branches_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/branches{/branch}","tags_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/tags","blobs_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/languages","stargazers_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/stargazers","contributors_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/contributors","subscribers_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/subscribers","subscription_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/subscription","commits_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/comments/{number}","contents_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/contents/{+path}","compare_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/merges","archive_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/downloads","issues_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues{/number}","pulls_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/labels{/name}","releases_url":"https://api.github.com/repos/JohnBuonomo/Field-Journal/releases{/id}","created_at":"2014-12-01T16:29:47Z","updated_at":"2014-12-11T19:37:30Z","pushed_at":"2014-12-11T20:54:48Z","git_url":"git://github.com/JohnBuonomo/Field-Journal.git","ssh_url":"git@github.com:JohnBuonomo/Field-Journal.git","clone_url":"https://github.com/JohnBuonomo/Field-Journal.git","svn_url":"https://github.com/JohnBuonomo/Field-Journal","homepage":null,"size":2664,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15"},"html":{"href":"https://github.com/JohnBuonomo/Field-Journal/pull/15"},"issue":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/15"},"comments":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/JohnBuonomo/Field-Journal/statuses/eb05a27802ab262b970149a09e20ef39a834b8c2"}}}}