{"action":"created","comment":{"url":"https://api.github.com/repos/google/blockly-games/pulls/comments/72521210","id":72521210,"diff_hunk":"@@ -0,0 +1,464 @@\n+/**\n+ * Blockly Games: Genetics Blocks\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 Blocks for Blockly's Genetics application.\n+ * @author kozbial@google.com (Monica Kozbial)\n+ */\n+'use strict';\n+\n+goog.provide('Genetics.Blocks');\n+\n+goog.require('Blockly');\n+goog.require('Blockly.JavaScript');\n+goog.require('BlocklyGames');\n+goog.require('BlocklyGames.JSBlocks');\n+\n+/**\n+ * HSV hue for all genetics mouse function blocks.\n+ */\n+Genetics.Blocks.GENETICS_MOUSEFUNCTIONS_HUE = 360;\n+/**\n+ * HSV hue for all genetics blocks (that are not mouse functions).\n+ */\n+Genetics.Blocks.GENETICS_HUE = 20;\n+\n+// Extensions to Blockly's language and JavaScript generator.\n+\n+/**\n+ * Generates the JavaScript from a \"mouse function\" block (pickFight,\n+ * chooseMate, mateAnswer) given the name and arguments of the function.\n+ * @param {string} funcName The name of the mouse function.\n+ * @param {string} args A comma separated string of the argument variable names.\n+ * @param {!Blockly.Block} block The block.\n+ * @return {Function}\n+ * @private\n+ */\n+Blockly.JavaScript['genetics_generateMouseFunctionJS_'] = function(funcName,","path":"appengine/genetics/js/blocks.js","position":53,"original_position":53,"commit_id":"dc18872064fce3a8e34500f37786f90e1a978898","original_commit_id":"dc18872064fce3a8e34500f37786f90e1a978898","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":"I forgot to update them, I've done that now.","created_at":"2016-07-27T20:52:53Z","updated_at":"2016-07-27T20:52:53Z","html_url":"https://github.com/google/blockly-games/pull/38#discussion_r72521210","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/72521210"},"html":{"href":"https://github.com/google/blockly-games/pull/38#discussion_r72521210"},"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-07-27T20:52:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d8dfb742788e7f49a4de32e00cf5bc25747335","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/dc18872064fce3a8e34500f37786f90e1a978898","head":{"label":"google:genetics-lab","ref":"genetics-lab","sha":"dc18872064fce3a8e34500f37786f90e1a978898","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-07-27T09:13:36Z","pushed_at":"2016-07-27T19:32:45Z","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":725035,"stargazers_count":251,"watchers_count":251,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":11,"forks":142,"open_issues":11,"watchers":251,"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-07-27T09:13:36Z","pushed_at":"2016-07-27T19:32:45Z","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":725035,"stargazers_count":251,"watchers_count":251,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":11,"forks":142,"open_issues":11,"watchers":251,"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/dc18872064fce3a8e34500f37786f90e1a978898"}}}}
{"actor":{"display_login":"moniika"}}