{"action":"created","comment":{"url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/comments/36762037","id":36762037,"diff_hunk":"@@ -0,0 +1,80 @@\n+\n+exports.letterGrader=function(score){\n+  var output = \"\";\n+  if(score > 100 || score < 0){\n+    return \"that is not a valid input\"\n+  }\n+  else if(score >= 90 && score <100){\n+    output += \"A\"\n+  }\n+  else if(score >= 80 && score <90){\n+    output += \"B\"\n+  }\n+  else if(score >= 70 && score <80){\n+    output += \"C\"\n+  }\n+  else if(score >= 60 && score <70){\n+    output += \"D\"\n+  }\n+  else{\n+    output += \"F\"\n+  };\n+  score % 10 < 4 ? output += \"-\" : score % 10 > 7 ? output += \"+\" : output += \"\"\n+  return output;\n+}\n+\n+exports.average=function(scores){\n+  num = scores.length;\n+  var sum = scores.reduce(function(a,b){ return a+b});\n+  var ave = sum / num;\n+  return ave\n+}\n+\n+exports.median = function(scores){\n+  var output = 0;","path":"grader.js","position":34,"original_position":34,"commit_id":"21cdc941e9085221f7dcee9dd95ce57259d89c44","original_commit_id":"21cdc941e9085221f7dcee9dd95ce57259d89c44","user":{"login":"craftninja","id":6353499,"avatar_url":"https://avatars.githubusercontent.com/u/6353499?v=3","gravatar_id":"","url":"https://api.github.com/users/craftninja","html_url":"https://github.com/craftninja","followers_url":"https://api.github.com/users/craftninja/followers","following_url":"https://api.github.com/users/craftninja/following{/other_user}","gists_url":"https://api.github.com/users/craftninja/gists{/gist_id}","starred_url":"https://api.github.com/users/craftninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftninja/subscriptions","organizations_url":"https://api.github.com/users/craftninja/orgs","repos_url":"https://api.github.com/users/craftninja/repos","events_url":"https://api.github.com/users/craftninja/events{/privacy}","received_events_url":"https://api.github.com/users/craftninja/received_events","type":"User","site_admin":false},"body":"`output` isn't the awesomest variable name, it's usually a placeholder to be refactored later.","created_at":"2015-08-11T15:55:43Z","updated_at":"2015-08-11T15:55:43Z","html_url":"https://github.com/gSchool/jasmine_basics_assessment/pull/69#discussion_r36762037","pull_request_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/comments/36762037"},"html":{"href":"https://github.com/gSchool/jasmine_basics_assessment/pull/69#discussion_r36762037"},"pull_request":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69","id":42069927,"html_url":"https://github.com/gSchool/jasmine_basics_assessment/pull/69","diff_url":"https://github.com/gSchool/jasmine_basics_assessment/pull/69.diff","patch_url":"https://github.com/gSchool/jasmine_basics_assessment/pull/69.patch","issue_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/69","number":69,"state":"open","locked":false,"title":"completed","user":{"login":"avarnell","id":13139420,"avatar_url":"https://avatars.githubusercontent.com/u/13139420?v=3","gravatar_id":"","url":"https://api.github.com/users/avarnell","html_url":"https://github.com/avarnell","followers_url":"https://api.github.com/users/avarnell/followers","following_url":"https://api.github.com/users/avarnell/following{/other_user}","gists_url":"https://api.github.com/users/avarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/avarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avarnell/subscriptions","organizations_url":"https://api.github.com/users/avarnell/orgs","repos_url":"https://api.github.com/users/avarnell/repos","events_url":"https://api.github.com/users/avarnell/events{/privacy}","received_events_url":"https://api.github.com/users/avarnell/received_events","type":"User","site_admin":false},"body":"Hoping this works","created_at":"2015-08-10T21:43:44Z","updated_at":"2015-08-11T15:55:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fac044290878d814a01448fbb09249935ce7e2b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69/commits","review_comments_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69/comments","review_comment_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/69/comments","statuses_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/statuses/21cdc941e9085221f7dcee9dd95ce57259d89c44","head":{"label":"avarnell:master","ref":"master","sha":"21cdc941e9085221f7dcee9dd95ce57259d89c44","user":{"login":"avarnell","id":13139420,"avatar_url":"https://avatars.githubusercontent.com/u/13139420?v=3","gravatar_id":"","url":"https://api.github.com/users/avarnell","html_url":"https://github.com/avarnell","followers_url":"https://api.github.com/users/avarnell/followers","following_url":"https://api.github.com/users/avarnell/following{/other_user}","gists_url":"https://api.github.com/users/avarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/avarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avarnell/subscriptions","organizations_url":"https://api.github.com/users/avarnell/orgs","repos_url":"https://api.github.com/users/avarnell/repos","events_url":"https://api.github.com/users/avarnell/events{/privacy}","received_events_url":"https://api.github.com/users/avarnell/received_events","type":"User","site_admin":false},"repo":{"id":40383156,"name":"jasmine_basics_assessment","full_name":"avarnell/jasmine_basics_assessment","owner":{"login":"avarnell","id":13139420,"avatar_url":"https://avatars.githubusercontent.com/u/13139420?v=3","gravatar_id":"","url":"https://api.github.com/users/avarnell","html_url":"https://github.com/avarnell","followers_url":"https://api.github.com/users/avarnell/followers","following_url":"https://api.github.com/users/avarnell/following{/other_user}","gists_url":"https://api.github.com/users/avarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/avarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avarnell/subscriptions","organizations_url":"https://api.github.com/users/avarnell/orgs","repos_url":"https://api.github.com/users/avarnell/repos","events_url":"https://api.github.com/users/avarnell/events{/privacy}","received_events_url":"https://api.github.com/users/avarnell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avarnell/jasmine_basics_assessment","description":"","fork":true,"url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment","forks_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/forks","keys_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/teams","hooks_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/hooks","issue_events_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/issues/events{/number}","events_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/events","assignees_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/assignees{/user}","branches_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/branches{/branch}","tags_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/tags","blobs_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/languages","stargazers_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/stargazers","contributors_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/contributors","subscribers_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/subscribers","subscription_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/subscription","commits_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/contents/{+path}","compare_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/merges","archive_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/downloads","issues_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/issues{/number}","pulls_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/labels{/name}","releases_url":"https://api.github.com/repos/avarnell/jasmine_basics_assessment/releases{/id}","created_at":"2015-08-07T22:18:20Z","updated_at":"2015-08-08T19:11:22Z","pushed_at":"2015-08-10T16:29:14Z","git_url":"git://github.com/avarnell/jasmine_basics_assessment.git","ssh_url":"git@github.com:avarnell/jasmine_basics_assessment.git","clone_url":"https://github.com/avarnell/jasmine_basics_assessment.git","svn_url":"https://github.com/avarnell/jasmine_basics_assessment","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"gSchool:master","ref":"master","sha":"d983823f8464193d028e7ed6c5ddcfafd4ed6968","user":{"login":"gSchool","id":3484345,"avatar_url":"https://avatars.githubusercontent.com/u/3484345?v=3","gravatar_id":"","url":"https://api.github.com/users/gSchool","html_url":"https://github.com/gSchool","followers_url":"https://api.github.com/users/gSchool/followers","following_url":"https://api.github.com/users/gSchool/following{/other_user}","gists_url":"https://api.github.com/users/gSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/gSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gSchool/subscriptions","organizations_url":"https://api.github.com/users/gSchool/orgs","repos_url":"https://api.github.com/users/gSchool/repos","events_url":"https://api.github.com/users/gSchool/events{/privacy}","received_events_url":"https://api.github.com/users/gSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":35203421,"name":"jasmine_basics_assessment","full_name":"gSchool/jasmine_basics_assessment","owner":{"login":"gSchool","id":3484345,"avatar_url":"https://avatars.githubusercontent.com/u/3484345?v=3","gravatar_id":"","url":"https://api.github.com/users/gSchool","html_url":"https://github.com/gSchool","followers_url":"https://api.github.com/users/gSchool/followers","following_url":"https://api.github.com/users/gSchool/following{/other_user}","gists_url":"https://api.github.com/users/gSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/gSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gSchool/subscriptions","organizations_url":"https://api.github.com/users/gSchool/orgs","repos_url":"https://api.github.com/users/gSchool/repos","events_url":"https://api.github.com/users/gSchool/events{/privacy}","received_events_url":"https://api.github.com/users/gSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gSchool/jasmine_basics_assessment","description":"","fork":false,"url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment","forks_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/forks","keys_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/teams","hooks_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/hooks","issue_events_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/events{/number}","events_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/events","assignees_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/assignees{/user}","branches_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/branches{/branch}","tags_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/tags","blobs_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/languages","stargazers_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/stargazers","contributors_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/contributors","subscribers_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/subscribers","subscription_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/subscription","commits_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/contents/{+path}","compare_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/merges","archive_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/downloads","issues_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues{/number}","pulls_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/labels{/name}","releases_url":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/releases{/id}","created_at":"2015-05-07T06:44:33Z","updated_at":"2015-05-07T06:44:33Z","pushed_at":"2015-08-11T06:28:00Z","git_url":"git://github.com/gSchool/jasmine_basics_assessment.git","ssh_url":"git@github.com:gSchool/jasmine_basics_assessment.git","clone_url":"https://github.com/gSchool/jasmine_basics_assessment.git","svn_url":"https://github.com/gSchool/jasmine_basics_assessment","homepage":null,"size":2630,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":39,"forks":87,"open_issues":39,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69"},"html":{"href":"https://github.com/gSchool/jasmine_basics_assessment/pull/69"},"issue":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/69"},"comments":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/gSchool/jasmine_basics_assessment/statuses/21cdc941e9085221f7dcee9dd95ce57259d89c44"}}}}