{"action":"created","comment":{"url":"https://api.github.com/repos/bsyouness/PunPal/pulls/comments/52850600","id":52850600,"diff_hunk":"@@ -0,0 +1,18 @@\n+# PunORama\n+## Project Definition\n+PunORama is a pun finder. I define a pun as follows: two words, where the end of the first overlaps with the beginning of the second. \n+I'm finding puns from words in the English dictionary which comes with Linux: `/usr/share/dict/american-english`, which I filtered: `grep \"^[a-zA-Z]*$\" /usr/share/dict/words > words_no_punctuation`.\n+\n+The puns are scored by how much overlap there is between the two words. I tried to eliminate lame puns, such as puns that are composed by two words that are almost identical (e.g., cat & cats).\n+\n+The [app](https://punoramainsight.appspot.com) offers 4 functions. \n+  - The button `Make a pun!` allows the user to finds a pun based on her input (the input will be either the first or the second word). \n+  - The button `Make a tree!` builds a tree (using D3), which shows puns for the 10 semantically closest words (see note below) to the one the user entered (the input word or related word will always be the first word of the puns).\n+  - The button `More puns!` shows a list of the best puns (sorted by score).\n+  - The tab `Trending Tweets` shows a list of trending tweets based on a file saved on Google Storage. This only works when the file is being read. This process needs to be manually started. \n+\n+Note: In order to get words that are semantically closest to a user's input, I used a [word2vec](https://code.google.com/archive/p/word2vec/) pre-trained word vector. Google published pre-trained vectors trained on part of Google News dataset (about 100 billion words). The model contains 300-dimensional vectors for 3 million words and phrases. I ran the `distance` binary on the whole dictionary: `./distance GoogleNews-vectors-negative300.bin > related_words.txt < words_no_punctuation`.\n+\n+## TODO\n+Add a guide to the code.\n+My code is in src/main/scala and src/test/scala; the Java code is Google's.","path":"BackEnd/README.md","position":null,"original_position":18,"commit_id":"b5210440e33274ae885c7d47499cebf4061d9f7f","original_commit_id":"2e21606fd27f3b62a2e9964ec9903d9279d129f5","user":{"login":"emchristiansen","id":225668,"avatar_url":"https://avatars.githubusercontent.com/u/225668?v=3","gravatar_id":"","url":"https://api.github.com/users/emchristiansen","html_url":"https://github.com/emchristiansen","followers_url":"https://api.github.com/users/emchristiansen/followers","following_url":"https://api.github.com/users/emchristiansen/following{/other_user}","gists_url":"https://api.github.com/users/emchristiansen/gists{/gist_id}","starred_url":"https://api.github.com/users/emchristiansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emchristiansen/subscriptions","organizations_url":"https://api.github.com/users/emchristiansen/orgs","repos_url":"https://api.github.com/users/emchristiansen/repos","events_url":"https://api.github.com/users/emchristiansen/events{/privacy}","received_events_url":"https://api.github.com/users/emchristiansen/received_events","type":"User","site_admin":false},"body":"Backtics around paths.","created_at":"2016-02-14T23:00:45Z","updated_at":"2016-02-14T23:00:45Z","html_url":"https://github.com/bsyouness/PunPal/pull/2#discussion_r52850600","pull_request_url":"https://api.github.com/repos/bsyouness/PunPal/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/bsyouness/PunPal/pulls/comments/52850600"},"html":{"href":"https://github.com/bsyouness/PunPal/pull/2#discussion_r52850600"},"pull_request":{"href":"https://api.github.com/repos/bsyouness/PunPal/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/bsyouness/PunPal/pulls/2","id":59247497,"html_url":"https://github.com/bsyouness/PunPal/pull/2","diff_url":"https://github.com/bsyouness/PunPal/pull/2.diff","patch_url":"https://github.com/bsyouness/PunPal/pull/2.patch","issue_url":"https://api.github.com/repos/bsyouness/PunPal/issues/2","number":2,"state":"open","locked":false,"title":"Backend for review","user":{"login":"bsyouness","id":2256598,"avatar_url":"https://avatars.githubusercontent.com/u/2256598?v=3","gravatar_id":"","url":"https://api.github.com/users/bsyouness","html_url":"https://github.com/bsyouness","followers_url":"https://api.github.com/users/bsyouness/followers","following_url":"https://api.github.com/users/bsyouness/following{/other_user}","gists_url":"https://api.github.com/users/bsyouness/gists{/gist_id}","starred_url":"https://api.github.com/users/bsyouness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsyouness/subscriptions","organizations_url":"https://api.github.com/users/bsyouness/orgs","repos_url":"https://api.github.com/users/bsyouness/repos","events_url":"https://api.github.com/users/bsyouness/events{/privacy}","received_events_url":"https://api.github.com/users/bsyouness/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-12T23:45:29Z","updated_at":"2016-02-14T23:00:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f75a0743197dfd0d19dbb6854191e2fbfbe30d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bsyouness/PunPal/pulls/2/commits","review_comments_url":"https://api.github.com/repos/bsyouness/PunPal/pulls/2/comments","review_comment_url":"https://api.github.com/repos/bsyouness/PunPal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bsyouness/PunPal/issues/2/comments","statuses_url":"https://api.github.com/repos/bsyouness/PunPal/statuses/b5210440e33274ae885c7d47499cebf4061d9f7f","head":{"label":"bsyouness:backend2","ref":"backend2","sha":"b5210440e33274ae885c7d47499cebf4061d9f7f","user":{"login":"bsyouness","id":2256598,"avatar_url":"https://avatars.githubusercontent.com/u/2256598?v=3","gravatar_id":"","url":"https://api.github.com/users/bsyouness","html_url":"https://github.com/bsyouness","followers_url":"https://api.github.com/users/bsyouness/followers","following_url":"https://api.github.com/users/bsyouness/following{/other_user}","gists_url":"https://api.github.com/users/bsyouness/gists{/gist_id}","starred_url":"https://api.github.com/users/bsyouness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsyouness/subscriptions","organizations_url":"https://api.github.com/users/bsyouness/orgs","repos_url":"https://api.github.com/users/bsyouness/repos","events_url":"https://api.github.com/users/bsyouness/events{/privacy}","received_events_url":"https://api.github.com/users/bsyouness/received_events","type":"User","site_admin":false},"repo":{"id":50403325,"name":"PunPal","full_name":"bsyouness/PunPal","owner":{"login":"bsyouness","id":2256598,"avatar_url":"https://avatars.githubusercontent.com/u/2256598?v=3","gravatar_id":"","url":"https://api.github.com/users/bsyouness","html_url":"https://github.com/bsyouness","followers_url":"https://api.github.com/users/bsyouness/followers","following_url":"https://api.github.com/users/bsyouness/following{/other_user}","gists_url":"https://api.github.com/users/bsyouness/gists{/gist_id}","starred_url":"https://api.github.com/users/bsyouness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsyouness/subscriptions","organizations_url":"https://api.github.com/users/bsyouness/orgs","repos_url":"https://api.github.com/users/bsyouness/repos","events_url":"https://api.github.com/users/bsyouness/events{/privacy}","received_events_url":"https://api.github.com/users/bsyouness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsyouness/PunPal","description":"","fork":false,"url":"https://api.github.com/repos/bsyouness/PunPal","forks_url":"https://api.github.com/repos/bsyouness/PunPal/forks","keys_url":"https://api.github.com/repos/bsyouness/PunPal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsyouness/PunPal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsyouness/PunPal/teams","hooks_url":"https://api.github.com/repos/bsyouness/PunPal/hooks","issue_events_url":"https://api.github.com/repos/bsyouness/PunPal/issues/events{/number}","events_url":"https://api.github.com/repos/bsyouness/PunPal/events","assignees_url":"https://api.github.com/repos/bsyouness/PunPal/assignees{/user}","branches_url":"https://api.github.com/repos/bsyouness/PunPal/branches{/branch}","tags_url":"https://api.github.com/repos/bsyouness/PunPal/tags","blobs_url":"https://api.github.com/repos/bsyouness/PunPal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsyouness/PunPal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsyouness/PunPal/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsyouness/PunPal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsyouness/PunPal/statuses/{sha}","languages_url":"https://api.github.com/repos/bsyouness/PunPal/languages","stargazers_url":"https://api.github.com/repos/bsyouness/PunPal/stargazers","contributors_url":"https://api.github.com/repos/bsyouness/PunPal/contributors","subscribers_url":"https://api.github.com/repos/bsyouness/PunPal/subscribers","subscription_url":"https://api.github.com/repos/bsyouness/PunPal/subscription","commits_url":"https://api.github.com/repos/bsyouness/PunPal/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsyouness/PunPal/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsyouness/PunPal/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsyouness/PunPal/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsyouness/PunPal/contents/{+path}","compare_url":"https://api.github.com/repos/bsyouness/PunPal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsyouness/PunPal/merges","archive_url":"https://api.github.com/repos/bsyouness/PunPal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsyouness/PunPal/downloads","issues_url":"https://api.github.com/repos/bsyouness/PunPal/issues{/number}","pulls_url":"https://api.github.com/repos/bsyouness/PunPal/pulls{/number}","milestones_url":"https://api.github.com/repos/bsyouness/PunPal/milestones{/number}","notifications_url":"https://api.github.com/repos/bsyouness/PunPal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsyouness/PunPal/labels{/name}","releases_url":"https://api.github.com/repos/bsyouness/PunPal/releases{/id}","deployments_url":"https://api.github.com/repos/bsyouness/PunPal/deployments","created_at":"2016-01-26T04:30:17Z","updated_at":"2016-01-28T19:43:44Z","pushed_at":"2016-02-14T22:58:15Z","git_url":"git://github.com/bsyouness/PunPal.git","ssh_url":"git@github.com:bsyouness/PunPal.git","clone_url":"https://github.com/bsyouness/PunPal.git","svn_url":"https://github.com/bsyouness/PunPal","homepage":null,"size":1208,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"bsyouness:master","ref":"master","sha":"eaeacacefc2cc1779e9a2221159625c8daa3dca7","user":{"login":"bsyouness","id":2256598,"avatar_url":"https://avatars.githubusercontent.com/u/2256598?v=3","gravatar_id":"","url":"https://api.github.com/users/bsyouness","html_url":"https://github.com/bsyouness","followers_url":"https://api.github.com/users/bsyouness/followers","following_url":"https://api.github.com/users/bsyouness/following{/other_user}","gists_url":"https://api.github.com/users/bsyouness/gists{/gist_id}","starred_url":"https://api.github.com/users/bsyouness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsyouness/subscriptions","organizations_url":"https://api.github.com/users/bsyouness/orgs","repos_url":"https://api.github.com/users/bsyouness/repos","events_url":"https://api.github.com/users/bsyouness/events{/privacy}","received_events_url":"https://api.github.com/users/bsyouness/received_events","type":"User","site_admin":false},"repo":{"id":50403325,"name":"PunPal","full_name":"bsyouness/PunPal","owner":{"login":"bsyouness","id":2256598,"avatar_url":"https://avatars.githubusercontent.com/u/2256598?v=3","gravatar_id":"","url":"https://api.github.com/users/bsyouness","html_url":"https://github.com/bsyouness","followers_url":"https://api.github.com/users/bsyouness/followers","following_url":"https://api.github.com/users/bsyouness/following{/other_user}","gists_url":"https://api.github.com/users/bsyouness/gists{/gist_id}","starred_url":"https://api.github.com/users/bsyouness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsyouness/subscriptions","organizations_url":"https://api.github.com/users/bsyouness/orgs","repos_url":"https://api.github.com/users/bsyouness/repos","events_url":"https://api.github.com/users/bsyouness/events{/privacy}","received_events_url":"https://api.github.com/users/bsyouness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsyouness/PunPal","description":"","fork":false,"url":"https://api.github.com/repos/bsyouness/PunPal","forks_url":"https://api.github.com/repos/bsyouness/PunPal/forks","keys_url":"https://api.github.com/repos/bsyouness/PunPal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsyouness/PunPal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsyouness/PunPal/teams","hooks_url":"https://api.github.com/repos/bsyouness/PunPal/hooks","issue_events_url":"https://api.github.com/repos/bsyouness/PunPal/issues/events{/number}","events_url":"https://api.github.com/repos/bsyouness/PunPal/events","assignees_url":"https://api.github.com/repos/bsyouness/PunPal/assignees{/user}","branches_url":"https://api.github.com/repos/bsyouness/PunPal/branches{/branch}","tags_url":"https://api.github.com/repos/bsyouness/PunPal/tags","blobs_url":"https://api.github.com/repos/bsyouness/PunPal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsyouness/PunPal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsyouness/PunPal/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsyouness/PunPal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsyouness/PunPal/statuses/{sha}","languages_url":"https://api.github.com/repos/bsyouness/PunPal/languages","stargazers_url":"https://api.github.com/repos/bsyouness/PunPal/stargazers","contributors_url":"https://api.github.com/repos/bsyouness/PunPal/contributors","subscribers_url":"https://api.github.com/repos/bsyouness/PunPal/subscribers","subscription_url":"https://api.github.com/repos/bsyouness/PunPal/subscription","commits_url":"https://api.github.com/repos/bsyouness/PunPal/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsyouness/PunPal/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsyouness/PunPal/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsyouness/PunPal/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsyouness/PunPal/contents/{+path}","compare_url":"https://api.github.com/repos/bsyouness/PunPal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsyouness/PunPal/merges","archive_url":"https://api.github.com/repos/bsyouness/PunPal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsyouness/PunPal/downloads","issues_url":"https://api.github.com/repos/bsyouness/PunPal/issues{/number}","pulls_url":"https://api.github.com/repos/bsyouness/PunPal/pulls{/number}","milestones_url":"https://api.github.com/repos/bsyouness/PunPal/milestones{/number}","notifications_url":"https://api.github.com/repos/bsyouness/PunPal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsyouness/PunPal/labels{/name}","releases_url":"https://api.github.com/repos/bsyouness/PunPal/releases{/id}","deployments_url":"https://api.github.com/repos/bsyouness/PunPal/deployments","created_at":"2016-01-26T04:30:17Z","updated_at":"2016-01-28T19:43:44Z","pushed_at":"2016-02-14T22:58:15Z","git_url":"git://github.com/bsyouness/PunPal.git","ssh_url":"git@github.com:bsyouness/PunPal.git","clone_url":"https://github.com/bsyouness/PunPal.git","svn_url":"https://github.com/bsyouness/PunPal","homepage":null,"size":1208,"stargazers_count":0,"watchers_count":0,"language":"Scala","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/bsyouness/PunPal/pulls/2"},"html":{"href":"https://github.com/bsyouness/PunPal/pull/2"},"issue":{"href":"https://api.github.com/repos/bsyouness/PunPal/issues/2"},"comments":{"href":"https://api.github.com/repos/bsyouness/PunPal/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/bsyouness/PunPal/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/bsyouness/PunPal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bsyouness/PunPal/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/bsyouness/PunPal/statuses/b5210440e33274ae885c7d47499cebf4061d9f7f"}}}}