{"action":"created","comment":{"url":"https://api.github.com/repos/tjcsl/ion/pulls/comments/65818384","id":65818384,"diff_hunk":"@@ -0,0 +1,76 @@\n+/* global $, Chart */\n+$(document).ready(function() {\n+    if (Object.keys(raw_data).length > 0) {\n+        var chartElement = $(\"#members-chart\");\n+        chartElement.show();\n+        var canvas = chartElement[0];\n+        var parsedData = [];\n+        $.each(raw_data, function(k, v) {\n+            parsedData.push([moment(k, \"YYYY-MM-DD\"), v]);\n+        });\n+        parsedData = parsedData.sort(function(a, b) {\n+            if (a[0] < b[0]) {\n+                return -1;\n+            }\n+            if (a[0] > b[0]) {\n+                return 1;\n+            }\n+            return 0;\n+        });\n+        parsedData = {\n+            labels: $.map(parsedData, function(v) { return v[0]; }),\n+            datasets: [\n+                {\n+                    label: \"A Block\",\n+                    backgroundColor: \"rgba(151,187,205,0.5)\",\n+                    data: $.map(parsedData, function(v) { return \"A\" in v[1] ? v[1].A : 0; })\n+                },\n+                {\n+                    label: \"B Block\",\n+                    backgroundColor: \"rgba(205,187,151,0.5)\",\n+                    data: $.map(parsedData, function(v) { return \"B\" in v[1] ? v[1].B : 0; })\n+                }\n+            ]\n+        };\n+        Chart(canvas.getContext(\"2d\"), {","path":"intranet/static/js/eighth/statistics.js","position":35,"original_position":35,"commit_id":"e5ebf3c1e8a23abc514a3d7ccdc3530ad58c9ba6","original_commit_id":"e5ebf3c1e8a23abc514a3d7ccdc3530ad58c9ba6","user":{"login":"tjhsst-ion","id":10491321,"avatar_url":"https://avatars.githubusercontent.com/u/10491321?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhsst-ion","html_url":"https://github.com/tjhsst-ion","followers_url":"https://api.github.com/users/tjhsst-ion/followers","following_url":"https://api.github.com/users/tjhsst-ion/following{/other_user}","gists_url":"https://api.github.com/users/tjhsst-ion/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhsst-ion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhsst-ion/subscriptions","organizations_url":"https://api.github.com/users/tjhsst-ion/orgs","repos_url":"https://api.github.com/users/tjhsst-ion/repos","events_url":"https://api.github.com/users/tjhsst-ion/events{/privacy}","received_events_url":"https://api.github.com/users/tjhsst-ion/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [A function with a name starting with an uppercase letter should only be used as a constructor.](https://www.codacy.com/app/tjhsst-ion/ion/file/2692295915/issues/source?bid=3212528&fileBranchId=3299315#l35)","created_at":"2016-06-05T14:25:51Z","updated_at":"2016-06-05T14:25:51Z","html_url":"https://github.com/tjcsl/ion/pull/455#discussion_r65818384","pull_request_url":"https://api.github.com/repos/tjcsl/ion/pulls/455","_links":{"self":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/comments/65818384"},"html":{"href":"https://github.com/tjcsl/ion/pull/455#discussion_r65818384"},"pull_request":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/455"}}},"pull_request":{"url":"https://api.github.com/repos/tjcsl/ion/pulls/455","id":70137141,"html_url":"https://github.com/tjcsl/ion/pull/455","diff_url":"https://github.com/tjcsl/ion/pull/455.diff","patch_url":"https://github.com/tjcsl/ion/pull/455.patch","issue_url":"https://api.github.com/repos/tjcsl/ion/issues/455","number":455,"state":"open","locked":false,"title":"Dev","user":{"login":"jamesthoughton","id":8053163,"avatar_url":"https://avatars.githubusercontent.com/u/8053163?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesthoughton","html_url":"https://github.com/jamesthoughton","followers_url":"https://api.github.com/users/jamesthoughton/followers","following_url":"https://api.github.com/users/jamesthoughton/following{/other_user}","gists_url":"https://api.github.com/users/jamesthoughton/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesthoughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesthoughton/subscriptions","organizations_url":"https://api.github.com/users/jamesthoughton/orgs","repos_url":"https://api.github.com/users/jamesthoughton/repos","events_url":"https://api.github.com/users/jamesthoughton/events{/privacy}","received_events_url":"https://api.github.com/users/jamesthoughton/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-15T23:30:47Z","updated_at":"2016-06-05T14:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e72de88ede88d6dc95dcf42368d4200c68a27004","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tjcsl/ion/pulls/455/commits","review_comments_url":"https://api.github.com/repos/tjcsl/ion/pulls/455/comments","review_comment_url":"https://api.github.com/repos/tjcsl/ion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tjcsl/ion/issues/455/comments","statuses_url":"https://api.github.com/repos/tjcsl/ion/statuses/e5ebf3c1e8a23abc514a3d7ccdc3530ad58c9ba6","head":{"label":"tjcsl:dev","ref":"dev","sha":"e5ebf3c1e8a23abc514a3d7ccdc3530ad58c9ba6","user":{"login":"tjcsl","id":5313020,"avatar_url":"https://avatars.githubusercontent.com/u/5313020?v=3","gravatar_id":"","url":"https://api.github.com/users/tjcsl","html_url":"https://github.com/tjcsl","followers_url":"https://api.github.com/users/tjcsl/followers","following_url":"https://api.github.com/users/tjcsl/following{/other_user}","gists_url":"https://api.github.com/users/tjcsl/gists{/gist_id}","starred_url":"https://api.github.com/users/tjcsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjcsl/subscriptions","organizations_url":"https://api.github.com/users/tjcsl/orgs","repos_url":"https://api.github.com/users/tjcsl/repos","events_url":"https://api.github.com/users/tjcsl/events{/privacy}","received_events_url":"https://api.github.com/users/tjcsl/received_events","type":"Organization","site_admin":false},"repo":{"id":22979044,"name":"ion","full_name":"tjcsl/ion","owner":{"login":"tjcsl","id":5313020,"avatar_url":"https://avatars.githubusercontent.com/u/5313020?v=3","gravatar_id":"","url":"https://api.github.com/users/tjcsl","html_url":"https://github.com/tjcsl","followers_url":"https://api.github.com/users/tjcsl/followers","following_url":"https://api.github.com/users/tjcsl/following{/other_user}","gists_url":"https://api.github.com/users/tjcsl/gists{/gist_id}","starred_url":"https://api.github.com/users/tjcsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjcsl/subscriptions","organizations_url":"https://api.github.com/users/tjcsl/orgs","repos_url":"https://api.github.com/users/tjcsl/repos","events_url":"https://api.github.com/users/tjcsl/events{/privacy}","received_events_url":"https://api.github.com/users/tjcsl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tjcsl/ion","description":"TJ Intranet 3 (Ion)","fork":false,"url":"https://api.github.com/repos/tjcsl/ion","forks_url":"https://api.github.com/repos/tjcsl/ion/forks","keys_url":"https://api.github.com/repos/tjcsl/ion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjcsl/ion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjcsl/ion/teams","hooks_url":"https://api.github.com/repos/tjcsl/ion/hooks","issue_events_url":"https://api.github.com/repos/tjcsl/ion/issues/events{/number}","events_url":"https://api.github.com/repos/tjcsl/ion/events","assignees_url":"https://api.github.com/repos/tjcsl/ion/assignees{/user}","branches_url":"https://api.github.com/repos/tjcsl/ion/branches{/branch}","tags_url":"https://api.github.com/repos/tjcsl/ion/tags","blobs_url":"https://api.github.com/repos/tjcsl/ion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjcsl/ion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjcsl/ion/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjcsl/ion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjcsl/ion/statuses/{sha}","languages_url":"https://api.github.com/repos/tjcsl/ion/languages","stargazers_url":"https://api.github.com/repos/tjcsl/ion/stargazers","contributors_url":"https://api.github.com/repos/tjcsl/ion/contributors","subscribers_url":"https://api.github.com/repos/tjcsl/ion/subscribers","subscription_url":"https://api.github.com/repos/tjcsl/ion/subscription","commits_url":"https://api.github.com/repos/tjcsl/ion/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjcsl/ion/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjcsl/ion/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjcsl/ion/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjcsl/ion/contents/{+path}","compare_url":"https://api.github.com/repos/tjcsl/ion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjcsl/ion/merges","archive_url":"https://api.github.com/repos/tjcsl/ion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjcsl/ion/downloads","issues_url":"https://api.github.com/repos/tjcsl/ion/issues{/number}","pulls_url":"https://api.github.com/repos/tjcsl/ion/pulls{/number}","milestones_url":"https://api.github.com/repos/tjcsl/ion/milestones{/number}","notifications_url":"https://api.github.com/repos/tjcsl/ion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjcsl/ion/labels{/name}","releases_url":"https://api.github.com/repos/tjcsl/ion/releases{/id}","deployments_url":"https://api.github.com/repos/tjcsl/ion/deployments","created_at":"2014-08-15T04:59:41Z","updated_at":"2016-05-14T17:15:09Z","pushed_at":"2016-06-05T14:22:56Z","git_url":"git://github.com/tjcsl/ion.git","ssh_url":"git@github.com:tjcsl/ion.git","clone_url":"https://github.com/tjcsl/ion.git","svn_url":"https://github.com/tjcsl/ion","homepage":"https://ion.tjhsst.edu","size":88742,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":63,"forks":12,"open_issues":63,"watchers":24,"default_branch":"master"}},"base":{"label":"tjcsl:master","ref":"master","sha":"8339ff1ba38a940ef7e5f9423ba62a72d3d3edfb","user":{"login":"tjcsl","id":5313020,"avatar_url":"https://avatars.githubusercontent.com/u/5313020?v=3","gravatar_id":"","url":"https://api.github.com/users/tjcsl","html_url":"https://github.com/tjcsl","followers_url":"https://api.github.com/users/tjcsl/followers","following_url":"https://api.github.com/users/tjcsl/following{/other_user}","gists_url":"https://api.github.com/users/tjcsl/gists{/gist_id}","starred_url":"https://api.github.com/users/tjcsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjcsl/subscriptions","organizations_url":"https://api.github.com/users/tjcsl/orgs","repos_url":"https://api.github.com/users/tjcsl/repos","events_url":"https://api.github.com/users/tjcsl/events{/privacy}","received_events_url":"https://api.github.com/users/tjcsl/received_events","type":"Organization","site_admin":false},"repo":{"id":22979044,"name":"ion","full_name":"tjcsl/ion","owner":{"login":"tjcsl","id":5313020,"avatar_url":"https://avatars.githubusercontent.com/u/5313020?v=3","gravatar_id":"","url":"https://api.github.com/users/tjcsl","html_url":"https://github.com/tjcsl","followers_url":"https://api.github.com/users/tjcsl/followers","following_url":"https://api.github.com/users/tjcsl/following{/other_user}","gists_url":"https://api.github.com/users/tjcsl/gists{/gist_id}","starred_url":"https://api.github.com/users/tjcsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjcsl/subscriptions","organizations_url":"https://api.github.com/users/tjcsl/orgs","repos_url":"https://api.github.com/users/tjcsl/repos","events_url":"https://api.github.com/users/tjcsl/events{/privacy}","received_events_url":"https://api.github.com/users/tjcsl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tjcsl/ion","description":"TJ Intranet 3 (Ion)","fork":false,"url":"https://api.github.com/repos/tjcsl/ion","forks_url":"https://api.github.com/repos/tjcsl/ion/forks","keys_url":"https://api.github.com/repos/tjcsl/ion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjcsl/ion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjcsl/ion/teams","hooks_url":"https://api.github.com/repos/tjcsl/ion/hooks","issue_events_url":"https://api.github.com/repos/tjcsl/ion/issues/events{/number}","events_url":"https://api.github.com/repos/tjcsl/ion/events","assignees_url":"https://api.github.com/repos/tjcsl/ion/assignees{/user}","branches_url":"https://api.github.com/repos/tjcsl/ion/branches{/branch}","tags_url":"https://api.github.com/repos/tjcsl/ion/tags","blobs_url":"https://api.github.com/repos/tjcsl/ion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjcsl/ion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjcsl/ion/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjcsl/ion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjcsl/ion/statuses/{sha}","languages_url":"https://api.github.com/repos/tjcsl/ion/languages","stargazers_url":"https://api.github.com/repos/tjcsl/ion/stargazers","contributors_url":"https://api.github.com/repos/tjcsl/ion/contributors","subscribers_url":"https://api.github.com/repos/tjcsl/ion/subscribers","subscription_url":"https://api.github.com/repos/tjcsl/ion/subscription","commits_url":"https://api.github.com/repos/tjcsl/ion/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjcsl/ion/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjcsl/ion/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjcsl/ion/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjcsl/ion/contents/{+path}","compare_url":"https://api.github.com/repos/tjcsl/ion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjcsl/ion/merges","archive_url":"https://api.github.com/repos/tjcsl/ion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjcsl/ion/downloads","issues_url":"https://api.github.com/repos/tjcsl/ion/issues{/number}","pulls_url":"https://api.github.com/repos/tjcsl/ion/pulls{/number}","milestones_url":"https://api.github.com/repos/tjcsl/ion/milestones{/number}","notifications_url":"https://api.github.com/repos/tjcsl/ion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjcsl/ion/labels{/name}","releases_url":"https://api.github.com/repos/tjcsl/ion/releases{/id}","deployments_url":"https://api.github.com/repos/tjcsl/ion/deployments","created_at":"2014-08-15T04:59:41Z","updated_at":"2016-05-14T17:15:09Z","pushed_at":"2016-06-05T14:22:56Z","git_url":"git://github.com/tjcsl/ion.git","ssh_url":"git@github.com:tjcsl/ion.git","clone_url":"https://github.com/tjcsl/ion.git","svn_url":"https://github.com/tjcsl/ion","homepage":"https://ion.tjhsst.edu","size":88742,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":63,"forks":12,"open_issues":63,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/455"},"html":{"href":"https://github.com/tjcsl/ion/pull/455"},"issue":{"href":"https://api.github.com/repos/tjcsl/ion/issues/455"},"comments":{"href":"https://api.github.com/repos/tjcsl/ion/issues/455/comments"},"review_comments":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/455/comments"},"review_comment":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tjcsl/ion/pulls/455/commits"},"statuses":{"href":"https://api.github.com/repos/tjcsl/ion/statuses/e5ebf3c1e8a23abc514a3d7ccdc3530ad58c9ba6"}}}}
{"actor":{"display_login":"tjhsst-ion"}}