{"action":"created","comment":{"url":"https://api.github.com/repos/dysnomian/bacon/pulls/comments/23131069","id":23131069,"diff_hunk":"@@ -0,0 +1,64 @@\n+# Descriptive methods for actors. Also, most of the node methods. Hmm.\n+class Actor < ActiveRecord::Base\n+  # NOTE(dysnomian) Because it's easier to use a consistent and\n+  # unrealistically high integer than work with Float::INFINITY\n+  INFINITY = 999_999\n+\n+  has_one :actor, as: :previous_node\n+  has_and_belongs_to_many :films\n+\n+  scope :source, -> { find_by_distance!(0) }\n+\n+  def self.define_source(actor_name = 'Kevin Bacon')","path":"app/models/actor.rb","position":12,"original_position":12,"commit_id":"f046c936d329920067d0ae05682fa705f19560af","original_commit_id":"f046c936d329920067d0ae05682fa705f19560af","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-01-18T05:36:52Z","updated_at":"2015-01-18T05:36:52Z","html_url":"https://github.com/dysnomian/bacon/pull/1#discussion_r23131069","pull_request_url":"https://api.github.com/repos/dysnomian/bacon/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/comments/23131069"},"html":{"href":"https://github.com/dysnomian/bacon/pull/1#discussion_r23131069"},"pull_request":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dysnomian/bacon/pulls/1","id":27567263,"html_url":"https://github.com/dysnomian/bacon/pull/1","diff_url":"https://github.com/dysnomian/bacon/pull/1.diff","patch_url":"https://github.com/dysnomian/bacon/pull/1.patch","issue_url":"https://api.github.com/repos/dysnomian/bacon/issues/1","number":1,"state":"open","locked":false,"title":"All the magic!","user":{"login":"dysnomian","id":200723,"avatar_url":"https://avatars.githubusercontent.com/u/200723?v=3","gravatar_id":"","url":"https://api.github.com/users/dysnomian","html_url":"https://github.com/dysnomian","followers_url":"https://api.github.com/users/dysnomian/followers","following_url":"https://api.github.com/users/dysnomian/following{/other_user}","gists_url":"https://api.github.com/users/dysnomian/gists{/gist_id}","starred_url":"https://api.github.com/users/dysnomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dysnomian/subscriptions","organizations_url":"https://api.github.com/users/dysnomian/orgs","repos_url":"https://api.github.com/users/dysnomian/repos","events_url":"https://api.github.com/users/dysnomian/events{/privacy}","received_events_url":"https://api.github.com/users/dysnomian/received_events","type":"User","site_admin":false},"body":"Yep, here it is. The end of the better part of three weeks of Git mismanagement going into master. At least the tests pass now!\r\n\r\nWhat?\r\n\r\nThe tests on the actual algorithm are still meaningless?\r\n\r\nWell, at least it's not all ghettoized in a branch so I can think through what I'm doing better.\r\n\r\nCheap branches are cool. I should use them.","created_at":"2015-01-18T05:36:46Z","updated_at":"2015-01-18T05:36:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0febb69033f524473f5c50ac2b5230cad6a72d30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dysnomian/bacon/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dysnomian/bacon/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dysnomian/bacon/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dysnomian/bacon/issues/1/comments","statuses_url":"https://api.github.com/repos/dysnomian/bacon/statuses/f046c936d329920067d0ae05682fa705f19560af","head":{"label":"dysnomian:refining_dijkstra","ref":"refining_dijkstra","sha":"f046c936d329920067d0ae05682fa705f19560af","user":{"login":"dysnomian","id":200723,"avatar_url":"https://avatars.githubusercontent.com/u/200723?v=3","gravatar_id":"","url":"https://api.github.com/users/dysnomian","html_url":"https://github.com/dysnomian","followers_url":"https://api.github.com/users/dysnomian/followers","following_url":"https://api.github.com/users/dysnomian/following{/other_user}","gists_url":"https://api.github.com/users/dysnomian/gists{/gist_id}","starred_url":"https://api.github.com/users/dysnomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dysnomian/subscriptions","organizations_url":"https://api.github.com/users/dysnomian/orgs","repos_url":"https://api.github.com/users/dysnomian/repos","events_url":"https://api.github.com/users/dysnomian/events{/privacy}","received_events_url":"https://api.github.com/users/dysnomian/received_events","type":"User","site_admin":false},"repo":{"id":29412646,"name":"bacon","full_name":"dysnomian/bacon","owner":{"login":"dysnomian","id":200723,"avatar_url":"https://avatars.githubusercontent.com/u/200723?v=3","gravatar_id":"","url":"https://api.github.com/users/dysnomian","html_url":"https://github.com/dysnomian","followers_url":"https://api.github.com/users/dysnomian/followers","following_url":"https://api.github.com/users/dysnomian/following{/other_user}","gists_url":"https://api.github.com/users/dysnomian/gists{/gist_id}","starred_url":"https://api.github.com/users/dysnomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dysnomian/subscriptions","organizations_url":"https://api.github.com/users/dysnomian/orgs","repos_url":"https://api.github.com/users/dysnomian/repos","events_url":"https://api.github.com/users/dysnomian/events{/privacy}","received_events_url":"https://api.github.com/users/dysnomian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dysnomian/bacon","description":"Degrees of Bacon calculator","fork":false,"url":"https://api.github.com/repos/dysnomian/bacon","forks_url":"https://api.github.com/repos/dysnomian/bacon/forks","keys_url":"https://api.github.com/repos/dysnomian/bacon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dysnomian/bacon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dysnomian/bacon/teams","hooks_url":"https://api.github.com/repos/dysnomian/bacon/hooks","issue_events_url":"https://api.github.com/repos/dysnomian/bacon/issues/events{/number}","events_url":"https://api.github.com/repos/dysnomian/bacon/events","assignees_url":"https://api.github.com/repos/dysnomian/bacon/assignees{/user}","branches_url":"https://api.github.com/repos/dysnomian/bacon/branches{/branch}","tags_url":"https://api.github.com/repos/dysnomian/bacon/tags","blobs_url":"https://api.github.com/repos/dysnomian/bacon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dysnomian/bacon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dysnomian/bacon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dysnomian/bacon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dysnomian/bacon/statuses/{sha}","languages_url":"https://api.github.com/repos/dysnomian/bacon/languages","stargazers_url":"https://api.github.com/repos/dysnomian/bacon/stargazers","contributors_url":"https://api.github.com/repos/dysnomian/bacon/contributors","subscribers_url":"https://api.github.com/repos/dysnomian/bacon/subscribers","subscription_url":"https://api.github.com/repos/dysnomian/bacon/subscription","commits_url":"https://api.github.com/repos/dysnomian/bacon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dysnomian/bacon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dysnomian/bacon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dysnomian/bacon/issues/comments/{number}","contents_url":"https://api.github.com/repos/dysnomian/bacon/contents/{+path}","compare_url":"https://api.github.com/repos/dysnomian/bacon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dysnomian/bacon/merges","archive_url":"https://api.github.com/repos/dysnomian/bacon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dysnomian/bacon/downloads","issues_url":"https://api.github.com/repos/dysnomian/bacon/issues{/number}","pulls_url":"https://api.github.com/repos/dysnomian/bacon/pulls{/number}","milestones_url":"https://api.github.com/repos/dysnomian/bacon/milestones{/number}","notifications_url":"https://api.github.com/repos/dysnomian/bacon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dysnomian/bacon/labels{/name}","releases_url":"https://api.github.com/repos/dysnomian/bacon/releases{/id}","created_at":"2015-01-18T02:02:32Z","updated_at":"2015-01-18T05:17:24Z","pushed_at":"2015-01-18T05:17:24Z","git_url":"git://github.com/dysnomian/bacon.git","ssh_url":"git@github.com:dysnomian/bacon.git","clone_url":"https://github.com/dysnomian/bacon.git","svn_url":"https://github.com/dysnomian/bacon","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"refining_dijkstra"}},"base":{"label":"dysnomian:master","ref":"master","sha":"78ce53dd28543a21be2346f97e03e6c804158a34","user":{"login":"dysnomian","id":200723,"avatar_url":"https://avatars.githubusercontent.com/u/200723?v=3","gravatar_id":"","url":"https://api.github.com/users/dysnomian","html_url":"https://github.com/dysnomian","followers_url":"https://api.github.com/users/dysnomian/followers","following_url":"https://api.github.com/users/dysnomian/following{/other_user}","gists_url":"https://api.github.com/users/dysnomian/gists{/gist_id}","starred_url":"https://api.github.com/users/dysnomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dysnomian/subscriptions","organizations_url":"https://api.github.com/users/dysnomian/orgs","repos_url":"https://api.github.com/users/dysnomian/repos","events_url":"https://api.github.com/users/dysnomian/events{/privacy}","received_events_url":"https://api.github.com/users/dysnomian/received_events","type":"User","site_admin":false},"repo":{"id":29412646,"name":"bacon","full_name":"dysnomian/bacon","owner":{"login":"dysnomian","id":200723,"avatar_url":"https://avatars.githubusercontent.com/u/200723?v=3","gravatar_id":"","url":"https://api.github.com/users/dysnomian","html_url":"https://github.com/dysnomian","followers_url":"https://api.github.com/users/dysnomian/followers","following_url":"https://api.github.com/users/dysnomian/following{/other_user}","gists_url":"https://api.github.com/users/dysnomian/gists{/gist_id}","starred_url":"https://api.github.com/users/dysnomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dysnomian/subscriptions","organizations_url":"https://api.github.com/users/dysnomian/orgs","repos_url":"https://api.github.com/users/dysnomian/repos","events_url":"https://api.github.com/users/dysnomian/events{/privacy}","received_events_url":"https://api.github.com/users/dysnomian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dysnomian/bacon","description":"Degrees of Bacon calculator","fork":false,"url":"https://api.github.com/repos/dysnomian/bacon","forks_url":"https://api.github.com/repos/dysnomian/bacon/forks","keys_url":"https://api.github.com/repos/dysnomian/bacon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dysnomian/bacon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dysnomian/bacon/teams","hooks_url":"https://api.github.com/repos/dysnomian/bacon/hooks","issue_events_url":"https://api.github.com/repos/dysnomian/bacon/issues/events{/number}","events_url":"https://api.github.com/repos/dysnomian/bacon/events","assignees_url":"https://api.github.com/repos/dysnomian/bacon/assignees{/user}","branches_url":"https://api.github.com/repos/dysnomian/bacon/branches{/branch}","tags_url":"https://api.github.com/repos/dysnomian/bacon/tags","blobs_url":"https://api.github.com/repos/dysnomian/bacon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dysnomian/bacon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dysnomian/bacon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dysnomian/bacon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dysnomian/bacon/statuses/{sha}","languages_url":"https://api.github.com/repos/dysnomian/bacon/languages","stargazers_url":"https://api.github.com/repos/dysnomian/bacon/stargazers","contributors_url":"https://api.github.com/repos/dysnomian/bacon/contributors","subscribers_url":"https://api.github.com/repos/dysnomian/bacon/subscribers","subscription_url":"https://api.github.com/repos/dysnomian/bacon/subscription","commits_url":"https://api.github.com/repos/dysnomian/bacon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dysnomian/bacon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dysnomian/bacon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dysnomian/bacon/issues/comments/{number}","contents_url":"https://api.github.com/repos/dysnomian/bacon/contents/{+path}","compare_url":"https://api.github.com/repos/dysnomian/bacon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dysnomian/bacon/merges","archive_url":"https://api.github.com/repos/dysnomian/bacon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dysnomian/bacon/downloads","issues_url":"https://api.github.com/repos/dysnomian/bacon/issues{/number}","pulls_url":"https://api.github.com/repos/dysnomian/bacon/pulls{/number}","milestones_url":"https://api.github.com/repos/dysnomian/bacon/milestones{/number}","notifications_url":"https://api.github.com/repos/dysnomian/bacon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dysnomian/bacon/labels{/name}","releases_url":"https://api.github.com/repos/dysnomian/bacon/releases{/id}","created_at":"2015-01-18T02:02:32Z","updated_at":"2015-01-18T05:17:24Z","pushed_at":"2015-01-18T05:17:24Z","git_url":"git://github.com/dysnomian/bacon.git","ssh_url":"git@github.com:dysnomian/bacon.git","clone_url":"https://github.com/dysnomian/bacon.git","svn_url":"https://github.com/dysnomian/bacon","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"refining_dijkstra"}},"_links":{"self":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/1"},"html":{"href":"https://github.com/dysnomian/bacon/pull/1"},"issue":{"href":"https://api.github.com/repos/dysnomian/bacon/issues/1"},"comments":{"href":"https://api.github.com/repos/dysnomian/bacon/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dysnomian/bacon/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dysnomian/bacon/statuses/f046c936d329920067d0ae05682fa705f19560af"}}}}