{"action":"created","comment":{"url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/comments/59309194","id":59309194,"diff_hunk":"@@ -97,10 +95,63 @@ springInitiative.controller('studentController', function($scope,  $rootScope, $\n       });\n   }\n \n+  $scope.showData = function(currentStudent){\n+    $http.get('/api/student/data/'+ currentStudent._id)\n+      .success(function(data){\n+        $scope.attendance = data.attendanceList;\n+        $scope.dates = data.datesList;\n+        $scope.stars = data.starsList;\n+\n+        console.log($scope.attendance, $scope.attendance.sort())\n+\n+        var  count = {}; \n+        $scope.attendance.forEach(function(i) { count[i] = (count[i]||0)+1;  });","path":"public/javascripts/ng-controllers.js","position":32,"original_position":32,"commit_id":"854755464b267132311117d28f25bb90874df027","original_commit_id":"854755464b267132311117d28f25bb90874df027","user":{"login":"davidabrahams","id":8933701,"avatar_url":"https://avatars.githubusercontent.com/u/8933701?v=3","gravatar_id":"","url":"https://api.github.com/users/davidabrahams","html_url":"https://github.com/davidabrahams","followers_url":"https://api.github.com/users/davidabrahams/followers","following_url":"https://api.github.com/users/davidabrahams/following{/other_user}","gists_url":"https://api.github.com/users/davidabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/davidabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidabrahams/subscriptions","organizations_url":"https://api.github.com/users/davidabrahams/orgs","repos_url":"https://api.github.com/users/davidabrahams/repos","events_url":"https://api.github.com/users/davidabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/davidabrahams/received_events","type":"User","site_admin":false},"body":"can you explain this line?","created_at":"2016-04-12T01:29:23Z","updated_at":"2016-04-12T01:29:23Z","html_url":"https://github.com/davidabrahams/Spring-Initiative/pull/84#discussion_r59309194","pull_request_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/comments/59309194"},"html":{"href":"https://github.com/davidabrahams/Spring-Initiative/pull/84#discussion_r59309194"},"pull_request":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84","id":66079851,"html_url":"https://github.com/davidabrahams/Spring-Initiative/pull/84","diff_url":"https://github.com/davidabrahams/Spring-Initiative/pull/84.diff","patch_url":"https://github.com/davidabrahams/Spring-Initiative/pull/84.patch","issue_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/84","number":84,"state":"open","locked":false,"title":"Angular charts","user":{"login":"aconsilvio","id":10188086,"avatar_url":"https://avatars.githubusercontent.com/u/10188086?v=3","gravatar_id":"","url":"https://api.github.com/users/aconsilvio","html_url":"https://github.com/aconsilvio","followers_url":"https://api.github.com/users/aconsilvio/followers","following_url":"https://api.github.com/users/aconsilvio/following{/other_user}","gists_url":"https://api.github.com/users/aconsilvio/gists{/gist_id}","starred_url":"https://api.github.com/users/aconsilvio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aconsilvio/subscriptions","organizations_url":"https://api.github.com/users/aconsilvio/orgs","repos_url":"https://api.github.com/users/aconsilvio/repos","events_url":"https://api.github.com/users/aconsilvio/events{/privacy}","received_events_url":"https://api.github.com/users/aconsilvio/received_events","type":"User","site_admin":false},"body":"makes a viz when you click on show viz for each student","created_at":"2016-04-11T23:35:56Z","updated_at":"2016-04-12T01:29:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a61e45373baf27ce69e8b029efe53fc36ce7f939","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84/commits","review_comments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84/comments","review_comment_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/84/comments","statuses_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/statuses/854755464b267132311117d28f25bb90874df027","head":{"label":"davidabrahams:angular-charts","ref":"angular-charts","sha":"854755464b267132311117d28f25bb90874df027","user":{"login":"davidabrahams","id":8933701,"avatar_url":"https://avatars.githubusercontent.com/u/8933701?v=3","gravatar_id":"","url":"https://api.github.com/users/davidabrahams","html_url":"https://github.com/davidabrahams","followers_url":"https://api.github.com/users/davidabrahams/followers","following_url":"https://api.github.com/users/davidabrahams/following{/other_user}","gists_url":"https://api.github.com/users/davidabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/davidabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidabrahams/subscriptions","organizations_url":"https://api.github.com/users/davidabrahams/orgs","repos_url":"https://api.github.com/users/davidabrahams/repos","events_url":"https://api.github.com/users/davidabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/davidabrahams/received_events","type":"User","site_admin":false},"repo":{"id":54503216,"name":"Spring-Initiative","full_name":"davidabrahams/Spring-Initiative","owner":{"login":"davidabrahams","id":8933701,"avatar_url":"https://avatars.githubusercontent.com/u/8933701?v=3","gravatar_id":"","url":"https://api.github.com/users/davidabrahams","html_url":"https://github.com/davidabrahams","followers_url":"https://api.github.com/users/davidabrahams/followers","following_url":"https://api.github.com/users/davidabrahams/following{/other_user}","gists_url":"https://api.github.com/users/davidabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/davidabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidabrahams/subscriptions","organizations_url":"https://api.github.com/users/davidabrahams/orgs","repos_url":"https://api.github.com/users/davidabrahams/repos","events_url":"https://api.github.com/users/davidabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/davidabrahams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidabrahams/Spring-Initiative","description":"","fork":false,"url":"https://api.github.com/repos/davidabrahams/Spring-Initiative","forks_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/forks","keys_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/teams","hooks_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/hooks","issue_events_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/events{/number}","events_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/events","assignees_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/assignees{/user}","branches_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/branches{/branch}","tags_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/tags","blobs_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/statuses/{sha}","languages_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/languages","stargazers_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/stargazers","contributors_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/contributors","subscribers_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/subscribers","subscription_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/subscription","commits_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/contents/{+path}","compare_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/merges","archive_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/downloads","issues_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues{/number}","pulls_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls{/number}","milestones_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/milestones{/number}","notifications_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/labels{/name}","releases_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/releases{/id}","deployments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/deployments","created_at":"2016-03-22T19:32:20Z","updated_at":"2016-03-22T21:06:09Z","pushed_at":"2016-04-12T00:05:00Z","git_url":"git://github.com/davidabrahams/Spring-Initiative.git","ssh_url":"git@github.com:davidabrahams/Spring-Initiative.git","clone_url":"https://github.com/davidabrahams/Spring-Initiative.git","svn_url":"https://github.com/davidabrahams/Spring-Initiative","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"davidabrahams:master","ref":"master","sha":"879a80aad489e624041a28a42dd1aba0290b7ee2","user":{"login":"davidabrahams","id":8933701,"avatar_url":"https://avatars.githubusercontent.com/u/8933701?v=3","gravatar_id":"","url":"https://api.github.com/users/davidabrahams","html_url":"https://github.com/davidabrahams","followers_url":"https://api.github.com/users/davidabrahams/followers","following_url":"https://api.github.com/users/davidabrahams/following{/other_user}","gists_url":"https://api.github.com/users/davidabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/davidabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidabrahams/subscriptions","organizations_url":"https://api.github.com/users/davidabrahams/orgs","repos_url":"https://api.github.com/users/davidabrahams/repos","events_url":"https://api.github.com/users/davidabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/davidabrahams/received_events","type":"User","site_admin":false},"repo":{"id":54503216,"name":"Spring-Initiative","full_name":"davidabrahams/Spring-Initiative","owner":{"login":"davidabrahams","id":8933701,"avatar_url":"https://avatars.githubusercontent.com/u/8933701?v=3","gravatar_id":"","url":"https://api.github.com/users/davidabrahams","html_url":"https://github.com/davidabrahams","followers_url":"https://api.github.com/users/davidabrahams/followers","following_url":"https://api.github.com/users/davidabrahams/following{/other_user}","gists_url":"https://api.github.com/users/davidabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/davidabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidabrahams/subscriptions","organizations_url":"https://api.github.com/users/davidabrahams/orgs","repos_url":"https://api.github.com/users/davidabrahams/repos","events_url":"https://api.github.com/users/davidabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/davidabrahams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidabrahams/Spring-Initiative","description":"","fork":false,"url":"https://api.github.com/repos/davidabrahams/Spring-Initiative","forks_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/forks","keys_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/teams","hooks_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/hooks","issue_events_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/events{/number}","events_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/events","assignees_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/assignees{/user}","branches_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/branches{/branch}","tags_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/tags","blobs_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/statuses/{sha}","languages_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/languages","stargazers_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/stargazers","contributors_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/contributors","subscribers_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/subscribers","subscription_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/subscription","commits_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/contents/{+path}","compare_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/merges","archive_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/downloads","issues_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues{/number}","pulls_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls{/number}","milestones_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/milestones{/number}","notifications_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/labels{/name}","releases_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/releases{/id}","deployments_url":"https://api.github.com/repos/davidabrahams/Spring-Initiative/deployments","created_at":"2016-03-22T19:32:20Z","updated_at":"2016-03-22T21:06:09Z","pushed_at":"2016-04-12T00:05:00Z","git_url":"git://github.com/davidabrahams/Spring-Initiative.git","ssh_url":"git@github.com:davidabrahams/Spring-Initiative.git","clone_url":"https://github.com/davidabrahams/Spring-Initiative.git","svn_url":"https://github.com/davidabrahams/Spring-Initiative","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84"},"html":{"href":"https://github.com/davidabrahams/Spring-Initiative/pull/84"},"issue":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/84"},"comments":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/davidabrahams/Spring-Initiative/statuses/854755464b267132311117d28f25bb90874df027"}}}}