{"action":"created","comment":{"url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/comments/31720827","id":31720827,"diff_hunk":"@@ -1,9 +1,37 @@\n-# Implement this in such a way that when called below, detect_anagram will result in true or false.\n-def canonical(word)\n-end\n+# By Kaleb Davis and Bryon Wilkins\n+# VERSION ONE\n+# Implement your solution below\n \n def detect_anagram(word1, word2)\n+\n   canonical(word1) == canonical(word2)\n+=begin  \n+  #Insert your solution below here.\n+    tally1 = Hash.new(0)\n+  tally2 = Hash.new(0)\n+  word1.downcase!\n+  word2.downcase!\n+  word1.split(\"\").each do |letter|\n+    tally1[letter]+=1\n+  end\n+  word2.split(\"\").each do |letter|\n+    tally2[letter]+=1\n+  end\n+  tally1.eql? tally2\n+=end\n+end\n+\n+\n+# VERSION TWO\n+# Implement this version by uncommenting the line in the function.\n+# Then move your solution into the canonical function\n+# Modify it in such a way that when called from detect_anagram it results in true or false\n+\n+\n+def canonical(word)\n+ \n+  word.downcase.chars.sort()","path":"anagram_detector.rb","position":36,"original_position":36,"commit_id":"b21c929b23a99d53dcd9e08f4598f32d9e2d9ae6","original_commit_id":"b21c929b23a99d53dcd9e08f4598f32d9e2d9ae6","user":{"login":"jaybobo","id":5685984,"avatar_url":"https://avatars.githubusercontent.com/u/5685984?v=3","gravatar_id":"","url":"https://api.github.com/users/jaybobo","html_url":"https://github.com/jaybobo","followers_url":"https://api.github.com/users/jaybobo/followers","following_url":"https://api.github.com/users/jaybobo/following{/other_user}","gists_url":"https://api.github.com/users/jaybobo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaybobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaybobo/subscriptions","organizations_url":"https://api.github.com/users/jaybobo/orgs","repos_url":"https://api.github.com/users/jaybobo/repos","events_url":"https://api.github.com/users/jaybobo/events{/privacy}","received_events_url":"https://api.github.com/users/jaybobo/received_events","type":"User","site_admin":false},"body":"No need for (). Its not python :)","created_at":"2015-06-04T13:46:14Z","updated_at":"2015-06-04T13:46:14Z","html_url":"https://github.com/paircolumbus/FindTheAnagrams/pull/24#discussion_r31720827","pull_request_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/comments/31720827"},"html":{"href":"https://github.com/paircolumbus/FindTheAnagrams/pull/24#discussion_r31720827"},"pull_request":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24","id":36935083,"html_url":"https://github.com/paircolumbus/FindTheAnagrams/pull/24","diff_url":"https://github.com/paircolumbus/FindTheAnagrams/pull/24.diff","patch_url":"https://github.com/paircolumbus/FindTheAnagrams/pull/24.patch","issue_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/24","number":24,"state":"open","locked":false,"title":"Completed part 1 and 2","user":{"login":"paradime","id":3420904,"avatar_url":"https://avatars.githubusercontent.com/u/3420904?v=3","gravatar_id":"","url":"https://api.github.com/users/paradime","html_url":"https://github.com/paradime","followers_url":"https://api.github.com/users/paradime/followers","following_url":"https://api.github.com/users/paradime/following{/other_user}","gists_url":"https://api.github.com/users/paradime/gists{/gist_id}","starred_url":"https://api.github.com/users/paradime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paradime/subscriptions","organizations_url":"https://api.github.com/users/paradime/orgs","repos_url":"https://api.github.com/users/paradime/repos","events_url":"https://api.github.com/users/paradime/events{/privacy}","received_events_url":"https://api.github.com/users/paradime/received_events","type":"User","site_admin":false},"body":"High quality algorithms right here","created_at":"2015-06-04T13:43:09Z","updated_at":"2015-06-04T13:46:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2cf35602111615795df307048a9afd249311863","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24/commits","review_comments_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24/comments","review_comment_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/24/comments","statuses_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/statuses/b21c929b23a99d53dcd9e08f4598f32d9e2d9ae6","head":{"label":"paircolumbus:BryonWilkins","ref":"BryonWilkins","sha":"b21c929b23a99d53dcd9e08f4598f32d9e2d9ae6","user":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"repo":{"id":24874742,"name":"FindTheAnagrams","full_name":"paircolumbus/FindTheAnagrams","owner":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paircolumbus/FindTheAnagrams","description":"Craft an anagram detector.","fork":false,"url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams","forks_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/forks","keys_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/teams","hooks_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/hooks","issue_events_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/events{/number}","events_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/events","assignees_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/assignees{/user}","branches_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/branches{/branch}","tags_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/tags","blobs_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/refs{/sha}","trees_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/statuses/{sha}","languages_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/languages","stargazers_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/stargazers","contributors_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/contributors","subscribers_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/subscribers","subscription_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/subscription","commits_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/commits{/sha}","git_commits_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/commits{/sha}","comments_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/comments{/number}","issue_comment_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/comments{/number}","contents_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/contents/{+path}","compare_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/merges","archive_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/downloads","issues_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues{/number}","pulls_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls{/number}","milestones_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/milestones{/number}","notifications_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/labels{/name}","releases_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/releases{/id}","created_at":"2014-10-07T02:59:24Z","updated_at":"2015-01-02T17:45:00Z","pushed_at":"2015-06-04T13:43:10Z","git_url":"git://github.com/paircolumbus/FindTheAnagrams.git","ssh_url":"git@github.com:paircolumbus/FindTheAnagrams.git","clone_url":"https://github.com/paircolumbus/FindTheAnagrams.git","svn_url":"https://github.com/paircolumbus/FindTheAnagrams","homepage":null,"size":517,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":21,"forks":10,"open_issues":21,"watchers":0,"default_branch":"master"}},"base":{"label":"paircolumbus:master","ref":"master","sha":"fd1fcf897f6dcbafe29a4b8189a719006d8392f8","user":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"repo":{"id":24874742,"name":"FindTheAnagrams","full_name":"paircolumbus/FindTheAnagrams","owner":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paircolumbus/FindTheAnagrams","description":"Craft an anagram detector.","fork":false,"url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams","forks_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/forks","keys_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/teams","hooks_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/hooks","issue_events_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/events{/number}","events_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/events","assignees_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/assignees{/user}","branches_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/branches{/branch}","tags_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/tags","blobs_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/refs{/sha}","trees_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/statuses/{sha}","languages_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/languages","stargazers_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/stargazers","contributors_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/contributors","subscribers_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/subscribers","subscription_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/subscription","commits_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/commits{/sha}","git_commits_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/git/commits{/sha}","comments_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/comments{/number}","issue_comment_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/comments{/number}","contents_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/contents/{+path}","compare_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/merges","archive_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/downloads","issues_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues{/number}","pulls_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls{/number}","milestones_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/milestones{/number}","notifications_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/labels{/name}","releases_url":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/releases{/id}","created_at":"2014-10-07T02:59:24Z","updated_at":"2015-01-02T17:45:00Z","pushed_at":"2015-06-04T13:43:10Z","git_url":"git://github.com/paircolumbus/FindTheAnagrams.git","ssh_url":"git@github.com:paircolumbus/FindTheAnagrams.git","clone_url":"https://github.com/paircolumbus/FindTheAnagrams.git","svn_url":"https://github.com/paircolumbus/FindTheAnagrams","homepage":null,"size":517,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":21,"forks":10,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24"},"html":{"href":"https://github.com/paircolumbus/FindTheAnagrams/pull/24"},"issue":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/24"},"comments":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/paircolumbus/FindTheAnagrams/statuses/b21c929b23a99d53dcd9e08f4598f32d9e2d9ae6"}}}}