{"action":"created","comment":{"url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/comments/42924556","id":42924556,"diff_hunk":"@@ -0,0 +1,19 @@\n+# Ankit Gupta\n+# CS 205\n+import pyspark\n+sc = pyspark.SparkContext(appName=\"Spark1\")\n+import numpy as np \n+import itertools\n+\n+\n+# Returns all orderings of a string\n+# These are not necessarily all valid words\n+def get_anagrams(s):\n+\treturn [\"\".join(perm) for perm in itertools.permutations(s)]\n+\n+wlist = sc.textFile('../P3/EOWL_words.txt')\n+\n+sorted_letter_to_word = wlist.map(lambda x: (''.join(sorted(x)), x))\\\n+                            .groupByKey().map(lambda (x, y): (x, len(y), list(y)))\\\n+                            .sortBy(lambda x: (-1)*x[1])","path":"HW1/P3/P3.py","position":18,"original_position":18,"commit_id":"56f511564f1226c9f68348e2227b86b61f225756","original_commit_id":"56f511564f1226c9f68348e2227b86b61f225756","user":{"login":"neelspatel","id":2560285,"avatar_url":"https://avatars.githubusercontent.com/u/2560285?v=3","gravatar_id":"","url":"https://api.github.com/users/neelspatel","html_url":"https://github.com/neelspatel","followers_url":"https://api.github.com/users/neelspatel/followers","following_url":"https://api.github.com/users/neelspatel/following{/other_user}","gists_url":"https://api.github.com/users/neelspatel/gists{/gist_id}","starred_url":"https://api.github.com/users/neelspatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neelspatel/subscriptions","organizations_url":"https://api.github.com/users/neelspatel/orgs","repos_url":"https://api.github.com/users/neelspatel/repos","events_url":"https://api.github.com/users/neelspatel/events{/privacy}","received_events_url":"https://api.github.com/users/neelspatel/received_events","type":"User","site_admin":false},"body":"It would be helpful to add some comments about lines 17 and 18 so that it's clear how the data is being transformed and why, but this code is very clean so it's not that necessary","created_at":"2015-10-23T23:24:44Z","updated_at":"2015-10-23T23:24:44Z","html_url":"https://github.com/harvard-cs205/cs205-homework/pull/256#discussion_r42924556","pull_request_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256","_links":{"self":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/comments/42924556"},"html":{"href":"https://github.com/harvard-cs205/cs205-homework/pull/256#discussion_r42924556"},"pull_request":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256","id":46864699,"html_url":"https://github.com/harvard-cs205/cs205-homework/pull/256","diff_url":"https://github.com/harvard-cs205/cs205-homework/pull/256.diff","patch_url":"https://github.com/harvard-cs205/cs205-homework/pull/256.patch","issue_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/256","number":256,"state":"open","locked":false,"title":"Hw1","user":{"login":"ankitvgupta","id":5473865,"avatar_url":"https://avatars.githubusercontent.com/u/5473865?v=3","gravatar_id":"","url":"https://api.github.com/users/ankitvgupta","html_url":"https://github.com/ankitvgupta","followers_url":"https://api.github.com/users/ankitvgupta/followers","following_url":"https://api.github.com/users/ankitvgupta/following{/other_user}","gists_url":"https://api.github.com/users/ankitvgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitvgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitvgupta/subscriptions","organizations_url":"https://api.github.com/users/ankitvgupta/orgs","repos_url":"https://api.github.com/users/ankitvgupta/repos","events_url":"https://api.github.com/users/ankitvgupta/events{/privacy}","received_events_url":"https://api.github.com/users/ankitvgupta/received_events","type":"User","site_admin":false},"body":"Homework 1 Submission - Ankit Gupta","created_at":"2015-10-06T05:50:55Z","updated_at":"2015-10-23T23:24:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3e13d3475086b52dc1ede98d7baa559f010ffac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256/commits","review_comments_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256/comments","review_comment_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/256/comments","statuses_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/statuses/56f511564f1226c9f68348e2227b86b61f225756","head":{"label":"ankitvgupta:HW1","ref":"HW1","sha":"56f511564f1226c9f68348e2227b86b61f225756","user":{"login":"ankitvgupta","id":5473865,"avatar_url":"https://avatars.githubusercontent.com/u/5473865?v=3","gravatar_id":"","url":"https://api.github.com/users/ankitvgupta","html_url":"https://github.com/ankitvgupta","followers_url":"https://api.github.com/users/ankitvgupta/followers","following_url":"https://api.github.com/users/ankitvgupta/following{/other_user}","gists_url":"https://api.github.com/users/ankitvgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitvgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitvgupta/subscriptions","organizations_url":"https://api.github.com/users/ankitvgupta/orgs","repos_url":"https://api.github.com/users/ankitvgupta/repos","events_url":"https://api.github.com/users/ankitvgupta/events{/privacy}","received_events_url":"https://api.github.com/users/ankitvgupta/received_events","type":"User","site_admin":false},"repo":{"id":41937674,"name":"cs205-homework","full_name":"ankitvgupta/cs205-homework","owner":{"login":"ankitvgupta","id":5473865,"avatar_url":"https://avatars.githubusercontent.com/u/5473865?v=3","gravatar_id":"","url":"https://api.github.com/users/ankitvgupta","html_url":"https://github.com/ankitvgupta","followers_url":"https://api.github.com/users/ankitvgupta/followers","following_url":"https://api.github.com/users/ankitvgupta/following{/other_user}","gists_url":"https://api.github.com/users/ankitvgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/ankitvgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankitvgupta/subscriptions","organizations_url":"https://api.github.com/users/ankitvgupta/orgs","repos_url":"https://api.github.com/users/ankitvgupta/repos","events_url":"https://api.github.com/users/ankitvgupta/events{/privacy}","received_events_url":"https://api.github.com/users/ankitvgupta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ankitvgupta/cs205-homework","description":"","fork":true,"url":"https://api.github.com/repos/ankitvgupta/cs205-homework","forks_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/forks","keys_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/teams","hooks_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/hooks","issue_events_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/issues/events{/number}","events_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/events","assignees_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/assignees{/user}","branches_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/branches{/branch}","tags_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/tags","blobs_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/statuses/{sha}","languages_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/languages","stargazers_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/stargazers","contributors_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/contributors","subscribers_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/subscribers","subscription_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/subscription","commits_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/contents/{+path}","compare_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/merges","archive_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/downloads","issues_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/issues{/number}","pulls_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/pulls{/number}","milestones_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/milestones{/number}","notifications_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/labels{/name}","releases_url":"https://api.github.com/repos/ankitvgupta/cs205-homework/releases{/id}","created_at":"2015-09-04T21:04:15Z","updated_at":"2015-09-04T21:04:15Z","pushed_at":"2015-10-06T05:59:02Z","git_url":"git://github.com/ankitvgupta/cs205-homework.git","ssh_url":"git@github.com:ankitvgupta/cs205-homework.git","clone_url":"https://github.com/ankitvgupta/cs205-homework.git","svn_url":"https://github.com/ankitvgupta/cs205-homework","homepage":null,"size":3285,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"harvard-cs205:master","ref":"master","sha":"406f864b38a6c8a3d89cba66cb5228e98907bab7","user":{"login":"harvard-cs205","id":13456002,"avatar_url":"https://avatars.githubusercontent.com/u/13456002?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-cs205","html_url":"https://github.com/harvard-cs205","followers_url":"https://api.github.com/users/harvard-cs205/followers","following_url":"https://api.github.com/users/harvard-cs205/following{/other_user}","gists_url":"https://api.github.com/users/harvard-cs205/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-cs205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-cs205/subscriptions","organizations_url":"https://api.github.com/users/harvard-cs205/orgs","repos_url":"https://api.github.com/users/harvard-cs205/repos","events_url":"https://api.github.com/users/harvard-cs205/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-cs205/received_events","type":"Organization","site_admin":false},"repo":{"id":40614104,"name":"cs205-homework","full_name":"harvard-cs205/cs205-homework","owner":{"login":"harvard-cs205","id":13456002,"avatar_url":"https://avatars.githubusercontent.com/u/13456002?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-cs205","html_url":"https://github.com/harvard-cs205","followers_url":"https://api.github.com/users/harvard-cs205/followers","following_url":"https://api.github.com/users/harvard-cs205/following{/other_user}","gists_url":"https://api.github.com/users/harvard-cs205/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-cs205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-cs205/subscriptions","organizations_url":"https://api.github.com/users/harvard-cs205/orgs","repos_url":"https://api.github.com/users/harvard-cs205/repos","events_url":"https://api.github.com/users/harvard-cs205/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-cs205/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-cs205/cs205-homework","description":"","fork":false,"url":"https://api.github.com/repos/harvard-cs205/cs205-homework","forks_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/forks","keys_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/teams","hooks_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/hooks","issue_events_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/events","assignees_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/tags","blobs_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/languages","stargazers_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/stargazers","contributors_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/contributors","subscribers_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/subscribers","subscription_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/subscription","commits_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/merges","archive_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/downloads","issues_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/labels{/name}","releases_url":"https://api.github.com/repos/harvard-cs205/cs205-homework/releases{/id}","created_at":"2015-08-12T17:18:15Z","updated_at":"2015-10-21T19:21:28Z","pushed_at":"2015-10-21T20:18:24Z","git_url":"git://github.com/harvard-cs205/cs205-homework.git","ssh_url":"git@github.com:harvard-cs205/cs205-homework.git","clone_url":"https://github.com/harvard-cs205/cs205-homework.git","svn_url":"https://github.com/harvard-cs205/cs205-homework","homepage":null,"size":84763,"stargazers_count":5,"watchers_count":5,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":267,"forks":99,"open_issues":267,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256"},"html":{"href":"https://github.com/harvard-cs205/cs205-homework/pull/256"},"issue":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/256"},"comments":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/harvard-cs205/cs205-homework/statuses/56f511564f1226c9f68348e2227b86b61f225756"}}}}