{"action":"created","comment":{"url":"https://api.github.com/repos/google/blockly-games/pulls/comments/73043666","id":73043666,"diff_hunk":"@@ -0,0 +1,579 @@\n+/**\n+ * Blockly Games: Genetics\n+ *\n+ * Copyright 2016 Google Inc.\n+ * https://github.com/google/blockly-games\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+/**\n+ * @fileoverview JavaScript for the visualization of the Genetics game.\n+ * @author kozbial@google.com (Monica Kozbial)\n+ */\n+'use strict';\n+\n+goog.provide('Genetics.Visualization');\n+\n+goog.require('Genetics.Cage');\n+goog.require('goog.object');\n+\n+\n+/**\n+ * Frames per second to draw.  Has no impact on game play, just the display.\n+ */\n+Genetics.Visualization.FPS = 36;\n+\n+/**\n+ * Mapping of mouse id to mouse for mice currently being visualized.\n+ * @type {!Object.<string, Genetics.Mouse>}\n+ */\n+Genetics.Visualization.MICE = {};\n+\n+/**\n+ * List that specifies the order of players in the data tables for the charts.\n+ * @type {Array.<string>}\n+ * @private\n+ */\n+Genetics.Visualization.playerOrder_ = [];\n+\n+/**\n+ * Chart wrapper for chart with mice sex to count.\n+ * @type {google.visualization.ChartWrapper}\n+ * @private\n+ */\n+Genetics.Visualization.populationChartWrapper_ = null;\n+\n+/**\n+ * Chart wrapper for chart with count of pickFight owners.\n+ * @type {google.visualization.ChartWrapper}\n+ * @private\n+ */\n+Genetics.Visualization.pickFightChartWrapper_ = null;\n+\n+/**\n+ * Chart wrapper for chart with count of proposeMate owners.\n+ * @type {google.visualization.ChartWrapper}\n+ * @private\n+ */\n+Genetics.Visualization.proposeMateChartWrapper_ = null;\n+\n+/**\n+ * Chart wrapper for chart with count of acceptMate owners.\n+ * @type {google.visualization.ChartWrapper}\n+ * @private\n+ */\n+Genetics.Visualization.acceptMateChartWrapper_ = null;\n+\n+/**\n+ * Mapping of mouse sex to number of mice.\n+ * @type {!Object.<Genetics.Mouse.Sex, number>}\n+ * @private\n+ */\n+Genetics.Visualization.mouseSexes_ = {};\n+\n+/**\n+ * Mapping of player id to number of mice with pickFight function of that\n+ * player.\n+ * @type {!Object<number, number>}\n+ * @private\n+ */\n+Genetics.Visualization.pickFightOwners_ = {};\n+\n+/**\n+ * Mapping of player id to number of mice with proposeMate function of that\n+ * player.\n+ * @type {!Object<number, number>}\n+ * @private\n+ */\n+Genetics.Visualization.proposeMateOwners_ = {};\n+\n+/**\n+ * Mapping of player id to number of mice with acceptMate function of that\n+ * player.\n+ * @type {!Object<number, number>}\n+ * @private\n+ */\n+Genetics.Visualization.acceptMateOwners_ = {};\n+\n+/**\n+ * PID of executing task.\n+ * @type {number}\n+ */\n+Genetics.Visualization.pid = 0;\n+\n+/**\n+ * Setup the visualization (run once).\n+ */\n+Genetics.Visualization.init = function() {\n+  var createCharts = function() {\n+    // Create the base options for chart style shared between charts.\n+    var chartOpts = {\n+      'hAxis': {'title': 'Time', 'titleTextStyle': {'color': '#333'},\n+        'format': '0'},\n+      'vAxis': {'minValue': 0},\n+      'chartArea': { 'left': '8%', 'top': '8%', 'width': '60%',\n+        'height': '70%' }\n+    };\n+    var stackGraphOpts = goog.object.unsafeClone(chartOpts);\n+    stackGraphOpts['isStacked'] = 'relative';\n+    stackGraphOpts['lineWidth'] = 0;\n+    stackGraphOpts['chartArea']['backgroundColor'] = 'black';\n+    stackGraphOpts['areaOpacity'] = 0.8;\n+    stackGraphOpts['vAxis']['maxValue'] = 1;\n+    var populationChartOpts = chartOpts;\n+    var pickFightOpts = stackGraphOpts;\n+    var proposeMateOpts = goog.object.clone(stackGraphOpts);\n+    var acceptMateOpts = goog.object.clone(stackGraphOpts);\n+\n+    populationChartOpts['title'] = 'Population';\n+    populationChartOpts['colors'] = ['#ADD8E6', '#FFB5C1'];\n+    populationChartOpts['isStacked'] = true;\n+    populationChartOpts['vAxis']['maxValue'] = Genetics.Cage.MAX_POPULATION;\n+    Genetics.Visualization.populationChartWrapper_ =\n+        new google.visualization.ChartWrapper({\n+          'chartType': 'AreaChart',\n+          'options': populationChartOpts,\n+          'containerId': 'populationChart'\n+        });\n+    pickFightOpts['title'] = 'Pick Fight';\n+    Genetics.Visualization.pickFightChartWrapper_ =\n+        new google.visualization.ChartWrapper({\n+          'chartType': 'AreaChart',\n+          'options': pickFightOpts,\n+          'containerId': 'pickFightChart'\n+        });\n+    proposeMateOpts['title'] = 'Propose Mate';\n+    Genetics.Visualization.proposeMateChartWrapper_ =\n+        new google.visualization.ChartWrapper({\n+          'chartType': 'AreaChart',\n+          'options': proposeMateOpts,\n+          'containerId': 'proposeMateChart'\n+        });\n+    acceptMateOpts['title'] = 'Accept Mate';\n+    Genetics.Visualization.acceptMateChartWrapper_ =\n+        new google.visualization.ChartWrapper({\n+          'chartType': 'AreaChart',\n+          'options': acceptMateOpts,\n+          'containerId': 'acceptMateChart'\n+        });\n+\n+    // Set chart Data for all charts.\n+    Genetics.Visualization.resetChartData_();\n+\n+    Genetics.Visualization.populationChartWrapper_.draw();\n+    Genetics.Visualization.pickFightChartWrapper_.draw();\n+    Genetics.Visualization.proposeMateChartWrapper_.draw();\n+    Genetics.Visualization.acceptMateChartWrapper_.draw();\n+  };\n+  google.charts.load('current', {'packages': ['corechart']});\n+  google.charts.setOnLoadCallback(createCharts);\n+};\n+\n+/**\n+ * Stop visualization.\n+ */\n+Genetics.Visualization.stop = function() {\n+  clearTimeout(Genetics.Visualization.pid);\n+};\n+\n+/**\n+ * Clear chart data and set chart labels.\n+ * @private\n+ */\n+Genetics.Visualization.resetChartData_ = function() {\n+  Genetics.Visualization.populationChartWrapper_.setDataTable(\n+      google.visualization.arrayToDataTable(\n+          [[{label: 'Time', type: 'number'},\n+            {label: Genetics.Mouse.Sex.MALE, type: 'number'},\n+            {label: Genetics.Mouse.Sex.FEMALE, type: 'number'}]],\n+          false));\n+\n+  // Create list of player labels and store order of players to use when\n+  // population data updates.\n+  Genetics.Visualization.playerOrder_.length = 0;\n+  var playerLabels = [{label: 'Time', type: 'number'}];\n+  for (var playerId in Genetics.Cage.players) {\n+    if (Genetics.Cage.players.hasOwnProperty(playerId)) {\n+      playerLabels.push({label: Genetics.Cage.players[playerId][0],\n+        type: 'number'});\n+      Genetics.Visualization.playerOrder_.push(playerId);\n+    }\n+  }\n+  Genetics.Visualization.pickFightChartWrapper_.setDataTable(\n+      google.visualization.arrayToDataTable([playerLabels], false));\n+  Genetics.Visualization.proposeMateChartWrapper_.setDataTable(\n+      google.visualization.arrayToDataTable([playerLabels], false));\n+  Genetics.Visualization.acceptMateChartWrapper_.setDataTable(\n+      google.visualization.arrayToDataTable([playerLabels], false));\n+\n+  Genetics.Visualization.chartsUpdated_ = true;\n+};\n+\n+/**\n+ * Stop and reset the visualization.\n+ */\n+Genetics.Visualization.reset = function() {\n+  Genetics.Visualization.stop();\n+\n+  // Reset stored information about mouse population.\n+  Genetics.Visualization.eventNumber = 0;\n+  Genetics.Visualization.mouseSexes_[Genetics.Mouse.Sex.MALE] = 0;\n+  Genetics.Visualization.mouseSexes_[Genetics.Mouse.Sex.FEMALE] = 0;\n+  Genetics.Visualization.MICE = {};\n+  Genetics.Visualization.pickFightOwners_ = {};\n+  Genetics.Visualization.proposeMateOwners_ = {};\n+  Genetics.Visualization.acceptMateOwners_ = {};\n+  // Clear chart and set labels for data table.\n+  Genetics.Visualization.resetChartData_();\n+  // Set count for all players to 0.\n+  for (var i = 0; i < Genetics.Visualization.playerOrder_.length; i++) {\n+    var playerId = Genetics.Visualization.playerOrder_[i];\n+    Genetics.Visualization.pickFightOwners_[playerId] = 0;\n+    Genetics.Visualization.proposeMateOwners_[playerId] = 0;\n+    Genetics.Visualization.acceptMateOwners_[playerId] = 0;\n+  }\n+};\n+\n+/**\n+ * Time when the previous frame was drawn.\n+ */\n+Genetics.Visualization.lastFrame = 0;\n+\n+/**\n+ * Delay between previous frame was drawn and the current frame was scheduled.\n+ */\n+Genetics.Visualization.lastDelay = 0;\n+\n+/**\n+ * Start the visualization running.\n+ */\n+Genetics.Visualization.start = function() {\n+  Genetics.Visualization.update();\n+};\n+\n+/**\n+ * Start the visualization running.\n+ */\n+Genetics.Visualization.update = function() {\n+  Genetics.Visualization.display_();\n+  Genetics.Visualization.processCageEvents_();\n+  // Frame done.  Calculate the actual elapsed time and schedule the next frame.\n+  var now = Date.now();\n+  var workTime = now - Genetics.Visualization.lastFrame -\n+      Genetics.Visualization.lastDelay;\n+  var delay = Math.max(1, (1000 / Genetics.Visualization.FPS) - workTime);\n+  Genetics.Visualization.pid = setTimeout(Genetics.Visualization.update, delay);\n+  Genetics.Visualization.lastFrame = now;\n+  Genetics.Visualization.lastDelay = delay;\n+};\n+\n+/**\n+ * Whether the charts need to be redrawn because they were updated.\n+ * @type {boolean}\n+ * @private\n+ */\n+Genetics.Visualization.chartsUpdated_ = true;\n+\n+/**\n+ * Visualize the current state of the cage simulation (Genetics.Cage).\n+ * @private\n+ */\n+Genetics.Visualization.display_ = function() {\n+  // TODO(kozbial) draw current state of the cage.\n+  if(Genetics.Visualization.chartsUpdated_) {\n+    Genetics.Visualization.populationChartWrapper_.draw();\n+    Genetics.Visualization.pickFightChartWrapper_.draw();\n+    Genetics.Visualization.proposeMateChartWrapper_.draw();\n+    Genetics.Visualization.acceptMateChartWrapper_.draw();\n+    Genetics.Visualization.chartsUpdated_ = false;\n+  }\n+};\n+\n+/**\n+ * Count for events to keep track of time passed for charts.\n+ * @type {number}\n+ */\n+Genetics.Visualization.eventNumber = 0;\n+\n+/**\n+ * Returns a string representation of a mouse's properties\n+ * @param {Genetics.Mouse} mouse The mouse to get information from.","path":"appengine/genetics/js/visualization.js","position":311,"original_position":311,"commit_id":"470b457ff5e99f735fedc9c5a98930675e904c1f","original_commit_id":"470b457ff5e99f735fedc9c5a98930675e904c1f","user":{"login":"moniika","id":6621618,"avatar_url":"https://avatars.githubusercontent.com/u/6621618?v=3","gravatar_id":"","url":"https://api.github.com/users/moniika","html_url":"https://github.com/moniika","followers_url":"https://api.github.com/users/moniika/followers","following_url":"https://api.github.com/users/moniika/following{/other_user}","gists_url":"https://api.github.com/users/moniika/gists{/gist_id}","starred_url":"https://api.github.com/users/moniika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moniika/subscriptions","organizations_url":"https://api.github.com/users/moniika/orgs","repos_url":"https://api.github.com/users/moniika/repos","events_url":"https://api.github.com/users/moniika/events{/privacy}","received_events_url":"https://api.github.com/users/moniika/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-08-01T20:08:10Z","updated_at":"2016-08-01T20:08:10Z","html_url":"https://github.com/google/blockly-games/pull/38#discussion_r73043666","pull_request_url":"https://api.github.com/repos/google/blockly-games/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/google/blockly-games/pulls/comments/73043666"},"html":{"href":"https://github.com/google/blockly-games/pull/38#discussion_r73043666"},"pull_request":{"href":"https://api.github.com/repos/google/blockly-games/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/google/blockly-games/pulls/38","id":78944570,"html_url":"https://github.com/google/blockly-games/pull/38","diff_url":"https://github.com/google/blockly-games/pull/38.diff","patch_url":"https://github.com/google/blockly-games/pull/38.patch","issue_url":"https://api.github.com/repos/google/blockly-games/issues/38","number":38,"state":"open","locked":false,"title":"Genetics Game [NOT FOR MERGE]","user":{"login":"moniika","id":6621618,"avatar_url":"https://avatars.githubusercontent.com/u/6621618?v=3","gravatar_id":"","url":"https://api.github.com/users/moniika","html_url":"https://github.com/moniika","followers_url":"https://api.github.com/users/moniika/followers","following_url":"https://api.github.com/users/moniika/following{/other_user}","gists_url":"https://api.github.com/users/moniika/gists{/gist_id}","starred_url":"https://api.github.com/users/moniika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moniika/subscriptions","organizations_url":"https://api.github.com/users/moniika/orgs","repos_url":"https://api.github.com/users/moniika/repos","events_url":"https://api.github.com/users/moniika/events{/privacy}","received_events_url":"https://api.github.com/users/moniika/received_events","type":"User","site_admin":false},"body":"Pull request to allow for comments on current progress on genetics game for Blockly Games\r\n\r\n@seanlip @NeilFraser PTAL at game logic in appengine/genetics/js (note that visualization.js is still WIP)","created_at":"2016-07-26T23:45:50Z","updated_at":"2016-08-01T20:08:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b661c62e11b2b5c0368c668ac122137c3b01849","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/blockly-games/pulls/38/commits","review_comments_url":"https://api.github.com/repos/google/blockly-games/pulls/38/comments","review_comment_url":"https://api.github.com/repos/google/blockly-games/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/blockly-games/issues/38/comments","statuses_url":"https://api.github.com/repos/google/blockly-games/statuses/470b457ff5e99f735fedc9c5a98930675e904c1f","head":{"label":"google:genetics-lab","ref":"genetics-lab","sha":"470b457ff5e99f735fedc9c5a98930675e904c1f","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":23320068,"name":"blockly-games","full_name":"google/blockly-games","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/blockly-games","description":"Games for tomorrow's programmers.","fork":false,"url":"https://api.github.com/repos/google/blockly-games","forks_url":"https://api.github.com/repos/google/blockly-games/forks","keys_url":"https://api.github.com/repos/google/blockly-games/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/blockly-games/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/blockly-games/teams","hooks_url":"https://api.github.com/repos/google/blockly-games/hooks","issue_events_url":"https://api.github.com/repos/google/blockly-games/issues/events{/number}","events_url":"https://api.github.com/repos/google/blockly-games/events","assignees_url":"https://api.github.com/repos/google/blockly-games/assignees{/user}","branches_url":"https://api.github.com/repos/google/blockly-games/branches{/branch}","tags_url":"https://api.github.com/repos/google/blockly-games/tags","blobs_url":"https://api.github.com/repos/google/blockly-games/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/blockly-games/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/blockly-games/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/blockly-games/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/blockly-games/statuses/{sha}","languages_url":"https://api.github.com/repos/google/blockly-games/languages","stargazers_url":"https://api.github.com/repos/google/blockly-games/stargazers","contributors_url":"https://api.github.com/repos/google/blockly-games/contributors","subscribers_url":"https://api.github.com/repos/google/blockly-games/subscribers","subscription_url":"https://api.github.com/repos/google/blockly-games/subscription","commits_url":"https://api.github.com/repos/google/blockly-games/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/blockly-games/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/blockly-games/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/blockly-games/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/blockly-games/contents/{+path}","compare_url":"https://api.github.com/repos/google/blockly-games/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/blockly-games/merges","archive_url":"https://api.github.com/repos/google/blockly-games/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/blockly-games/downloads","issues_url":"https://api.github.com/repos/google/blockly-games/issues{/number}","pulls_url":"https://api.github.com/repos/google/blockly-games/pulls{/number}","milestones_url":"https://api.github.com/repos/google/blockly-games/milestones{/number}","notifications_url":"https://api.github.com/repos/google/blockly-games/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/blockly-games/labels{/name}","releases_url":"https://api.github.com/repos/google/blockly-games/releases{/id}","deployments_url":"https://api.github.com/repos/google/blockly-games/deployments","created_at":"2014-08-25T16:09:42Z","updated_at":"2016-08-01T07:11:45Z","pushed_at":"2016-08-01T08:11:48Z","git_url":"git://github.com/google/blockly-games.git","ssh_url":"git@github.com:google/blockly-games.git","clone_url":"https://github.com/google/blockly-games.git","svn_url":"https://github.com/google/blockly-games","homepage":"https://blockly-games.appspot.com/","size":725247,"stargazers_count":252,"watchers_count":252,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":9,"forks":144,"open_issues":9,"watchers":252,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"8b190cf95e3188fdc7a0c9784c09f009db6b77c2","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":23320068,"name":"blockly-games","full_name":"google/blockly-games","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/blockly-games","description":"Games for tomorrow's programmers.","fork":false,"url":"https://api.github.com/repos/google/blockly-games","forks_url":"https://api.github.com/repos/google/blockly-games/forks","keys_url":"https://api.github.com/repos/google/blockly-games/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/blockly-games/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/blockly-games/teams","hooks_url":"https://api.github.com/repos/google/blockly-games/hooks","issue_events_url":"https://api.github.com/repos/google/blockly-games/issues/events{/number}","events_url":"https://api.github.com/repos/google/blockly-games/events","assignees_url":"https://api.github.com/repos/google/blockly-games/assignees{/user}","branches_url":"https://api.github.com/repos/google/blockly-games/branches{/branch}","tags_url":"https://api.github.com/repos/google/blockly-games/tags","blobs_url":"https://api.github.com/repos/google/blockly-games/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/blockly-games/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/blockly-games/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/blockly-games/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/blockly-games/statuses/{sha}","languages_url":"https://api.github.com/repos/google/blockly-games/languages","stargazers_url":"https://api.github.com/repos/google/blockly-games/stargazers","contributors_url":"https://api.github.com/repos/google/blockly-games/contributors","subscribers_url":"https://api.github.com/repos/google/blockly-games/subscribers","subscription_url":"https://api.github.com/repos/google/blockly-games/subscription","commits_url":"https://api.github.com/repos/google/blockly-games/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/blockly-games/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/blockly-games/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/blockly-games/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/blockly-games/contents/{+path}","compare_url":"https://api.github.com/repos/google/blockly-games/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/blockly-games/merges","archive_url":"https://api.github.com/repos/google/blockly-games/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/blockly-games/downloads","issues_url":"https://api.github.com/repos/google/blockly-games/issues{/number}","pulls_url":"https://api.github.com/repos/google/blockly-games/pulls{/number}","milestones_url":"https://api.github.com/repos/google/blockly-games/milestones{/number}","notifications_url":"https://api.github.com/repos/google/blockly-games/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/blockly-games/labels{/name}","releases_url":"https://api.github.com/repos/google/blockly-games/releases{/id}","deployments_url":"https://api.github.com/repos/google/blockly-games/deployments","created_at":"2014-08-25T16:09:42Z","updated_at":"2016-08-01T07:11:45Z","pushed_at":"2016-08-01T08:11:48Z","git_url":"git://github.com/google/blockly-games.git","ssh_url":"git@github.com:google/blockly-games.git","clone_url":"https://github.com/google/blockly-games.git","svn_url":"https://github.com/google/blockly-games","homepage":"https://blockly-games.appspot.com/","size":725247,"stargazers_count":252,"watchers_count":252,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":9,"forks":144,"open_issues":9,"watchers":252,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/blockly-games/pulls/38"},"html":{"href":"https://github.com/google/blockly-games/pull/38"},"issue":{"href":"https://api.github.com/repos/google/blockly-games/issues/38"},"comments":{"href":"https://api.github.com/repos/google/blockly-games/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/google/blockly-games/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/google/blockly-games/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/blockly-games/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/google/blockly-games/statuses/470b457ff5e99f735fedc9c5a98930675e904c1f"}}}}
{"actor":{"display_login":"moniika"}}