{"action":"created","comment":{"url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/comments/74627947","id":74627947,"diff_hunk":"@@ -0,0 +1,56 @@\n+'use strict';\n+\n+/**\n+ *  The Completer Constructor holds valid words that can be called through\n+ * the prototype method complete, to find valid words that start with given\n+ * prefix.\n+ * There is also a weighting system, where everytime selectCompletion is called\n+ * the selected string has weight added to it. The complete function returns\n+ * an array ordered in more weighted words first.\n+ */\n+function Completer() {\n+  this.validCompletionToWeight = {};\n+}\n+\n+var completerProto = {\n+  addCompletion: function(str) {\n+    this.validCompletionToWeight[str] = 0;\n+  },\n+  removeCompletion: function(str) {\n+    delete this.validCompletionToWeight[str];\n+  },\n+  complete: function(prefix) {\n+    var potentialWords = _.filter(\n+      _.keys(this.validCompletionToWeight), function(o) {\n+        return new RegExp('^' + prefix).test(o);\n+      });","path":"practice/completer/site.js","position":42,"original_position":26,"commit_id":"6a8855cfa0dba690fdee8a2dcc24912546ea991c","original_commit_id":"47886a635372c7de10590093362b8cad907ac6c6","user":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"body":"I see, thanks for the clarification!","created_at":"2016-08-12T17:24:22Z","updated_at":"2016-08-12T17:24:22Z","html_url":"https://github.com/Kaylotura/-codeguild/pull/11#discussion_r74627947","pull_request_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/comments/74627947"},"html":{"href":"https://github.com/Kaylotura/-codeguild/pull/11#discussion_r74627947"},"pull_request":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11","id":80828064,"html_url":"https://github.com/Kaylotura/-codeguild/pull/11","diff_url":"https://github.com/Kaylotura/-codeguild/pull/11.diff","patch_url":"https://github.com/Kaylotura/-codeguild/pull/11.patch","issue_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/11","number":11,"state":"open","locked":false,"title":"Completer","user":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-10T16:45:58Z","updated_at":"2016-08-12T17:24:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"351e039613c140cbf607f1f52dbcdae3def9068d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/11/comments","statuses_url":"https://api.github.com/repos/Kaylotura/-codeguild/statuses/6a8855cfa0dba690fdee8a2dcc24912546ea991c","head":{"label":"Kaylotura:completer","ref":"completer","sha":"6a8855cfa0dba690fdee8a2dcc24912546ea991c","user":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"repo":{"id":63038784,"name":"-codeguild","full_name":"Kaylotura/-codeguild","owner":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kaylotura/-codeguild","description":"Practices and Exercises from PDX Code Guild's Full Stack Accelerated Learning Program.","fork":false,"url":"https://api.github.com/repos/Kaylotura/-codeguild","forks_url":"https://api.github.com/repos/Kaylotura/-codeguild/forks","keys_url":"https://api.github.com/repos/Kaylotura/-codeguild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kaylotura/-codeguild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kaylotura/-codeguild/teams","hooks_url":"https://api.github.com/repos/Kaylotura/-codeguild/hooks","issue_events_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/events{/number}","events_url":"https://api.github.com/repos/Kaylotura/-codeguild/events","assignees_url":"https://api.github.com/repos/Kaylotura/-codeguild/assignees{/user}","branches_url":"https://api.github.com/repos/Kaylotura/-codeguild/branches{/branch}","tags_url":"https://api.github.com/repos/Kaylotura/-codeguild/tags","blobs_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kaylotura/-codeguild/statuses/{sha}","languages_url":"https://api.github.com/repos/Kaylotura/-codeguild/languages","stargazers_url":"https://api.github.com/repos/Kaylotura/-codeguild/stargazers","contributors_url":"https://api.github.com/repos/Kaylotura/-codeguild/contributors","subscribers_url":"https://api.github.com/repos/Kaylotura/-codeguild/subscribers","subscription_url":"https://api.github.com/repos/Kaylotura/-codeguild/subscription","commits_url":"https://api.github.com/repos/Kaylotura/-codeguild/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kaylotura/-codeguild/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kaylotura/-codeguild/contents/{+path}","compare_url":"https://api.github.com/repos/Kaylotura/-codeguild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kaylotura/-codeguild/merges","archive_url":"https://api.github.com/repos/Kaylotura/-codeguild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kaylotura/-codeguild/downloads","issues_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues{/number}","pulls_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls{/number}","milestones_url":"https://api.github.com/repos/Kaylotura/-codeguild/milestones{/number}","notifications_url":"https://api.github.com/repos/Kaylotura/-codeguild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kaylotura/-codeguild/labels{/name}","releases_url":"https://api.github.com/repos/Kaylotura/-codeguild/releases{/id}","deployments_url":"https://api.github.com/repos/Kaylotura/-codeguild/deployments","created_at":"2016-07-11T05:19:54Z","updated_at":"2016-07-11T16:38:32Z","pushed_at":"2016-08-12T17:20:11Z","git_url":"git://github.com/Kaylotura/-codeguild.git","ssh_url":"git@github.com:Kaylotura/-codeguild.git","clone_url":"https://github.com/Kaylotura/-codeguild.git","svn_url":"https://github.com/Kaylotura/-codeguild","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"Kaylotura:master","ref":"master","sha":"7f1ad877da952d6233c3d4162163654188bac357","user":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"repo":{"id":63038784,"name":"-codeguild","full_name":"Kaylotura/-codeguild","owner":{"login":"Kaylotura","id":17284573,"avatar_url":"https://avatars.githubusercontent.com/u/17284573?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaylotura","html_url":"https://github.com/Kaylotura","followers_url":"https://api.github.com/users/Kaylotura/followers","following_url":"https://api.github.com/users/Kaylotura/following{/other_user}","gists_url":"https://api.github.com/users/Kaylotura/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaylotura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaylotura/subscriptions","organizations_url":"https://api.github.com/users/Kaylotura/orgs","repos_url":"https://api.github.com/users/Kaylotura/repos","events_url":"https://api.github.com/users/Kaylotura/events{/privacy}","received_events_url":"https://api.github.com/users/Kaylotura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kaylotura/-codeguild","description":"Practices and Exercises from PDX Code Guild's Full Stack Accelerated Learning Program.","fork":false,"url":"https://api.github.com/repos/Kaylotura/-codeguild","forks_url":"https://api.github.com/repos/Kaylotura/-codeguild/forks","keys_url":"https://api.github.com/repos/Kaylotura/-codeguild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kaylotura/-codeguild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kaylotura/-codeguild/teams","hooks_url":"https://api.github.com/repos/Kaylotura/-codeguild/hooks","issue_events_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/events{/number}","events_url":"https://api.github.com/repos/Kaylotura/-codeguild/events","assignees_url":"https://api.github.com/repos/Kaylotura/-codeguild/assignees{/user}","branches_url":"https://api.github.com/repos/Kaylotura/-codeguild/branches{/branch}","tags_url":"https://api.github.com/repos/Kaylotura/-codeguild/tags","blobs_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kaylotura/-codeguild/statuses/{sha}","languages_url":"https://api.github.com/repos/Kaylotura/-codeguild/languages","stargazers_url":"https://api.github.com/repos/Kaylotura/-codeguild/stargazers","contributors_url":"https://api.github.com/repos/Kaylotura/-codeguild/contributors","subscribers_url":"https://api.github.com/repos/Kaylotura/-codeguild/subscribers","subscription_url":"https://api.github.com/repos/Kaylotura/-codeguild/subscription","commits_url":"https://api.github.com/repos/Kaylotura/-codeguild/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kaylotura/-codeguild/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kaylotura/-codeguild/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kaylotura/-codeguild/contents/{+path}","compare_url":"https://api.github.com/repos/Kaylotura/-codeguild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kaylotura/-codeguild/merges","archive_url":"https://api.github.com/repos/Kaylotura/-codeguild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kaylotura/-codeguild/downloads","issues_url":"https://api.github.com/repos/Kaylotura/-codeguild/issues{/number}","pulls_url":"https://api.github.com/repos/Kaylotura/-codeguild/pulls{/number}","milestones_url":"https://api.github.com/repos/Kaylotura/-codeguild/milestones{/number}","notifications_url":"https://api.github.com/repos/Kaylotura/-codeguild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kaylotura/-codeguild/labels{/name}","releases_url":"https://api.github.com/repos/Kaylotura/-codeguild/releases{/id}","deployments_url":"https://api.github.com/repos/Kaylotura/-codeguild/deployments","created_at":"2016-07-11T05:19:54Z","updated_at":"2016-07-11T16:38:32Z","pushed_at":"2016-08-12T17:20:11Z","git_url":"git://github.com/Kaylotura/-codeguild.git","ssh_url":"git@github.com:Kaylotura/-codeguild.git","clone_url":"https://github.com/Kaylotura/-codeguild.git","svn_url":"https://github.com/Kaylotura/-codeguild","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"Python","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/Kaylotura/-codeguild/pulls/11"},"html":{"href":"https://github.com/Kaylotura/-codeguild/pull/11"},"issue":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/issues/11"},"comments":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Kaylotura/-codeguild/statuses/6a8855cfa0dba690fdee8a2dcc24912546ea991c"}}}}
{"actor":{"display_login":"Kaylotura"}}