{"action":"created","comment":{"url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/comments/36908416","id":36908416,"diff_hunk":"@@ -0,0 +1,134 @@\n+// Problem 2a): build a deque factory\n+//-------\n+\n+// The factory itself:\n+function makeDeque(values) {\n+\tvar temp = {};\n+\ttemp.discardPile = [];\n+\ttemp.values = values.slice();\n+\ttemp.length = makeDeque.arrLength;\n+\ttemp.top = makeDeque.top;\n+\ttemp.bottom = makeDeque.bottom;\n+\ttemp.pop = makeDeque.pop;\n+\ttemp.push = makeDeque.push;\n+\ttemp.shift = makeDeque.shift;\n+\ttemp.unshift = makeDeque.unshift;\n+\ttemp.cut = makeDeque.cut;\n+\ttemp.map = makeDeque.map;\n+\ttemp.sort = makeDeque.sort;\n+\ttemp.shuffle = makeDeque.shuffle;\n+\ttemp.improvedShuffle = makeDeque.improvedShuffle;\n+\ttemp.isInArray = makeDeque.isInArray;\n+\ttemp.removeFromDiscard = makeDeque.removeFromDiscard;\n+\treturn temp;\n+}\n+\n+// The factory's instance methods:\n+makeDeque.arrLength = function() { \t// can't use property named length;\n+\treturn this.values.length;\n+}\n+\n+makeDeque.top = function() {\n+\treturn this.values[(this.values.length-1)];\n+}\n+\n+makeDeque.bottom = function() {\n+\treturn this.values[0];\n+}\n+\n+makeDeque.pop = function() {\n+\tvar discardPop = this.values.pop();\n+\tthis.discardPile.push(discardPop);\n+\treturn discardPop;\n+}\n+\n+makeDeque.push = function(val) {","path":"natalie/deque-template.js","position":45,"original_position":45,"commit_id":"b8d191763c3d9cae2e0b57787f59e9292bc6769a","original_commit_id":"b8d191763c3d9cae2e0b57787f59e9292bc6769a","user":{"login":"ergray","id":9043755,"avatar_url":"https://avatars.githubusercontent.com/u/9043755?v=3","gravatar_id":"","url":"https://api.github.com/users/ergray","html_url":"https://github.com/ergray","followers_url":"https://api.github.com/users/ergray/followers","following_url":"https://api.github.com/users/ergray/following{/other_user}","gists_url":"https://api.github.com/users/ergray/gists{/gist_id}","starred_url":"https://api.github.com/users/ergray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ergray/subscriptions","organizations_url":"https://api.github.com/users/ergray/orgs","repos_url":"https://api.github.com/users/ergray/repos","events_url":"https://api.github.com/users/ergray/events{/privacy}","received_events_url":"https://api.github.com/users/ergray/received_events","type":"User","site_admin":false},"body":"Your value checker for 2e works great! Nicely done.","created_at":"2015-08-12T20:18:59Z","updated_at":"2015-08-12T20:18:59Z","html_url":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3#discussion_r36908416","pull_request_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/comments/36908416"},"html":{"href":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3#discussion_r36908416"},"pull_request":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3","id":42208488,"html_url":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3","diff_url":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3.diff","patch_url":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3.patch","issue_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/3","number":3,"state":"open","locked":false,"title":"Natalie's branch for HW 4","user":{"login":"natalieogle","id":11810323,"avatar_url":"https://avatars.githubusercontent.com/u/11810323?v=3","gravatar_id":"","url":"https://api.github.com/users/natalieogle","html_url":"https://github.com/natalieogle","followers_url":"https://api.github.com/users/natalieogle/followers","following_url":"https://api.github.com/users/natalieogle/following{/other_user}","gists_url":"https://api.github.com/users/natalieogle/gists{/gist_id}","starred_url":"https://api.github.com/users/natalieogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natalieogle/subscriptions","organizations_url":"https://api.github.com/users/natalieogle/orgs","repos_url":"https://api.github.com/users/natalieogle/repos","events_url":"https://api.github.com/users/natalieogle/events{/privacy}","received_events_url":"https://api.github.com/users/natalieogle/received_events","type":"User","site_admin":false},"body":"Homework 4!!","created_at":"2015-08-12T06:36:52Z","updated_at":"2015-08-12T20:18:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e25a1308f6dbd864d816de492a7d97c7e57a36a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3/commits","review_comments_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3/comments","review_comment_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/3/comments","statuses_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/statuses/b8d191763c3d9cae2e0b57787f59e9292bc6769a","head":{"label":"portlandcodeschool:natalie","ref":"natalie","sha":"b8d191763c3d9cae2e0b57787f59e9292bc6769a","user":{"login":"portlandcodeschool","id":3475992,"avatar_url":"https://avatars.githubusercontent.com/u/3475992?v=3","gravatar_id":"","url":"https://api.github.com/users/portlandcodeschool","html_url":"https://github.com/portlandcodeschool","followers_url":"https://api.github.com/users/portlandcodeschool/followers","following_url":"https://api.github.com/users/portlandcodeschool/following{/other_user}","gists_url":"https://api.github.com/users/portlandcodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/portlandcodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portlandcodeschool/subscriptions","organizations_url":"https://api.github.com/users/portlandcodeschool/orgs","repos_url":"https://api.github.com/users/portlandcodeschool/repos","events_url":"https://api.github.com/users/portlandcodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/portlandcodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":40203161,"name":"jse-fall15-4","full_name":"portlandcodeschool/jse-fall15-4","owner":{"login":"portlandcodeschool","id":3475992,"avatar_url":"https://avatars.githubusercontent.com/u/3475992?v=3","gravatar_id":"","url":"https://api.github.com/users/portlandcodeschool","html_url":"https://github.com/portlandcodeschool","followers_url":"https://api.github.com/users/portlandcodeschool/followers","following_url":"https://api.github.com/users/portlandcodeschool/following{/other_user}","gists_url":"https://api.github.com/users/portlandcodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/portlandcodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portlandcodeschool/subscriptions","organizations_url":"https://api.github.com/users/portlandcodeschool/orgs","repos_url":"https://api.github.com/users/portlandcodeschool/repos","events_url":"https://api.github.com/users/portlandcodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/portlandcodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/portlandcodeschool/jse-fall15-4","description":"JS-evening fall 2015 Homework, week 4","fork":false,"url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4","forks_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/forks","keys_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/teams","hooks_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/hooks","issue_events_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/events{/number}","events_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/events","assignees_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/assignees{/user}","branches_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/branches{/branch}","tags_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/tags","blobs_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/statuses/{sha}","languages_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/languages","stargazers_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/stargazers","contributors_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/contributors","subscribers_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/subscribers","subscription_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/subscription","commits_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/contents/{+path}","compare_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/merges","archive_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/downloads","issues_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues{/number}","pulls_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls{/number}","milestones_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/milestones{/number}","notifications_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/labels{/name}","releases_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/releases{/id}","created_at":"2015-08-04T18:50:16Z","updated_at":"2015-08-05T13:49:38Z","pushed_at":"2015-08-12T06:36:52Z","git_url":"git://github.com/portlandcodeschool/jse-fall15-4.git","ssh_url":"git@github.com:portlandcodeschool/jse-fall15-4.git","clone_url":"https://github.com/portlandcodeschool/jse-fall15-4.git","svn_url":"https://github.com/portlandcodeschool/jse-fall15-4","homepage":null,"size":220,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"portlandcodeschool:master","ref":"master","sha":"c9370b2cda220d5a776e278017495162784e6ea9","user":{"login":"portlandcodeschool","id":3475992,"avatar_url":"https://avatars.githubusercontent.com/u/3475992?v=3","gravatar_id":"","url":"https://api.github.com/users/portlandcodeschool","html_url":"https://github.com/portlandcodeschool","followers_url":"https://api.github.com/users/portlandcodeschool/followers","following_url":"https://api.github.com/users/portlandcodeschool/following{/other_user}","gists_url":"https://api.github.com/users/portlandcodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/portlandcodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portlandcodeschool/subscriptions","organizations_url":"https://api.github.com/users/portlandcodeschool/orgs","repos_url":"https://api.github.com/users/portlandcodeschool/repos","events_url":"https://api.github.com/users/portlandcodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/portlandcodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":40203161,"name":"jse-fall15-4","full_name":"portlandcodeschool/jse-fall15-4","owner":{"login":"portlandcodeschool","id":3475992,"avatar_url":"https://avatars.githubusercontent.com/u/3475992?v=3","gravatar_id":"","url":"https://api.github.com/users/portlandcodeschool","html_url":"https://github.com/portlandcodeschool","followers_url":"https://api.github.com/users/portlandcodeschool/followers","following_url":"https://api.github.com/users/portlandcodeschool/following{/other_user}","gists_url":"https://api.github.com/users/portlandcodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/portlandcodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portlandcodeschool/subscriptions","organizations_url":"https://api.github.com/users/portlandcodeschool/orgs","repos_url":"https://api.github.com/users/portlandcodeschool/repos","events_url":"https://api.github.com/users/portlandcodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/portlandcodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/portlandcodeschool/jse-fall15-4","description":"JS-evening fall 2015 Homework, week 4","fork":false,"url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4","forks_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/forks","keys_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/teams","hooks_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/hooks","issue_events_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/events{/number}","events_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/events","assignees_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/assignees{/user}","branches_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/branches{/branch}","tags_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/tags","blobs_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/statuses/{sha}","languages_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/languages","stargazers_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/stargazers","contributors_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/contributors","subscribers_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/subscribers","subscription_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/subscription","commits_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/contents/{+path}","compare_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/merges","archive_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/downloads","issues_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues{/number}","pulls_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls{/number}","milestones_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/milestones{/number}","notifications_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/labels{/name}","releases_url":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/releases{/id}","created_at":"2015-08-04T18:50:16Z","updated_at":"2015-08-05T13:49:38Z","pushed_at":"2015-08-12T06:36:52Z","git_url":"git://github.com/portlandcodeschool/jse-fall15-4.git","ssh_url":"git@github.com:portlandcodeschool/jse-fall15-4.git","clone_url":"https://github.com/portlandcodeschool/jse-fall15-4.git","svn_url":"https://github.com/portlandcodeschool/jse-fall15-4","homepage":null,"size":220,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3"},"html":{"href":"https://github.com/portlandcodeschool/jse-fall15-4/pull/3"},"issue":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/3"},"comments":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/portlandcodeschool/jse-fall15-4/statuses/b8d191763c3d9cae2e0b57787f59e9292bc6769a"}}}}