{"action":"created","comment":{"url":"https://api.github.com/repos/m-lab/measure-app/pulls/comments/44989424","id":44989424,"diff_hunk":"@@ -0,0 +1,63 @@\n+// Measure.app\n+\n+angular.module('MeasureApp', [], function($provide) {\n+  // Prevent Angular from sniffing for the history API\n+  // since it's not supported in packaged apps.\n+  $provide.decorator('$window', function($delegate) {\n+    $delegate.history.pushState = null;\n+    return $delegate;\n+  });\n+})\n+\n+/*\n+  Add chrome-extension addresses to angular's whitelist to avoid issues\n+  encountered after the packaging of extensions.\n+  Reference: http://stackoverflow.com/questions/15606751/angular-changes-urls-to-unsafe-in-extension-page\n+*/\n+.config(['$compileProvider', function($compileProvider) {\n+  if (window.chrome && chrome.app && chrome.app.runtime) {\n+    $compileProvider.aHrefSanitizationWhitelist(/^\\s*(https?|ftp|mailto|chrome-extension):/);\n+  }\n+}])\n+\n+/*\n+  Help service and rootScope listener to properly manage $history when window\n+  is not available.","path":"www/js/app.js","position":25,"original_position":25,"commit_id":"e49f27ce1f897ce6040c6bbd137e403071743e60","original_commit_id":"e49f27ce1f897ce6040c6bbd137e403071743e60","user":{"login":"mtlynch","id":7783288,"avatar_url":"https://avatars.githubusercontent.com/u/7783288?v=3","gravatar_id":"","url":"https://api.github.com/users/mtlynch","html_url":"https://github.com/mtlynch","followers_url":"https://api.github.com/users/mtlynch/followers","following_url":"https://api.github.com/users/mtlynch/following{/other_user}","gists_url":"https://api.github.com/users/mtlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/mtlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtlynch/subscriptions","organizations_url":"https://api.github.com/users/mtlynch/orgs","repos_url":"https://api.github.com/users/mtlynch/repos","events_url":"https://api.github.com/users/mtlynch/events{/privacy}","received_events_url":"https://api.github.com/users/mtlynch/received_events","type":"User","site_admin":false},"body":"Can we rephrase? This does not seem like a complete sentence.","created_at":"2015-11-16T21:54:21Z","updated_at":"2015-11-16T21:54:21Z","html_url":"https://github.com/m-lab/measure-app/pull/5#discussion_r44989424","pull_request_url":"https://api.github.com/repos/m-lab/measure-app/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/comments/44989424"},"html":{"href":"https://github.com/m-lab/measure-app/pull/5#discussion_r44989424"},"pull_request":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/m-lab/measure-app/pulls/5","id":50753096,"html_url":"https://github.com/m-lab/measure-app/pull/5","diff_url":"https://github.com/m-lab/measure-app/pull/5.diff","patch_url":"https://github.com/m-lab/measure-app/pull/5.patch","issue_url":"https://api.github.com/repos/m-lab/measure-app/issues/5","number":5,"state":"open","locked":false,"title":"First commits for app.js and interrelated unit tests","user":{"login":"collina","id":582005,"avatar_url":"https://avatars.githubusercontent.com/u/582005?v=3","gravatar_id":"","url":"https://api.github.com/users/collina","html_url":"https://github.com/collina","followers_url":"https://api.github.com/users/collina/followers","following_url":"https://api.github.com/users/collina/following{/other_user}","gists_url":"https://api.github.com/users/collina/gists{/gist_id}","starred_url":"https://api.github.com/users/collina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collina/subscriptions","organizations_url":"https://api.github.com/users/collina/orgs","repos_url":"https://api.github.com/users/collina/repos","events_url":"https://api.github.com/users/collina/events{/privacy}","received_events_url":"https://api.github.com/users/collina/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-15T18:54:11Z","updated_at":"2015-11-16T21:54:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e68c5cbf3d71b5dc49ad89a858d03ca13d56055","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/m-lab/measure-app/pulls/5/commits","review_comments_url":"https://api.github.com/repos/m-lab/measure-app/pulls/5/comments","review_comment_url":"https://api.github.com/repos/m-lab/measure-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/m-lab/measure-app/issues/5/comments","statuses_url":"https://api.github.com/repos/m-lab/measure-app/statuses/e49f27ce1f897ce6040c6bbd137e403071743e60","head":{"label":"collina:master","ref":"master","sha":"e49f27ce1f897ce6040c6bbd137e403071743e60","user":{"login":"collina","id":582005,"avatar_url":"https://avatars.githubusercontent.com/u/582005?v=3","gravatar_id":"","url":"https://api.github.com/users/collina","html_url":"https://github.com/collina","followers_url":"https://api.github.com/users/collina/followers","following_url":"https://api.github.com/users/collina/following{/other_user}","gists_url":"https://api.github.com/users/collina/gists{/gist_id}","starred_url":"https://api.github.com/users/collina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collina/subscriptions","organizations_url":"https://api.github.com/users/collina/orgs","repos_url":"https://api.github.com/users/collina/repos","events_url":"https://api.github.com/users/collina/events{/privacy}","received_events_url":"https://api.github.com/users/collina/received_events","type":"User","site_admin":false},"repo":{"id":46059054,"name":"measure-app","full_name":"collina/measure-app","owner":{"login":"collina","id":582005,"avatar_url":"https://avatars.githubusercontent.com/u/582005?v=3","gravatar_id":"","url":"https://api.github.com/users/collina","html_url":"https://github.com/collina","followers_url":"https://api.github.com/users/collina/followers","following_url":"https://api.github.com/users/collina/following{/other_user}","gists_url":"https://api.github.com/users/collina/gists{/gist_id}","starred_url":"https://api.github.com/users/collina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collina/subscriptions","organizations_url":"https://api.github.com/users/collina/orgs","repos_url":"https://api.github.com/users/collina/repos","events_url":"https://api.github.com/users/collina/events{/privacy}","received_events_url":"https://api.github.com/users/collina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/collina/measure-app","description":"","fork":true,"url":"https://api.github.com/repos/collina/measure-app","forks_url":"https://api.github.com/repos/collina/measure-app/forks","keys_url":"https://api.github.com/repos/collina/measure-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/collina/measure-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/collina/measure-app/teams","hooks_url":"https://api.github.com/repos/collina/measure-app/hooks","issue_events_url":"https://api.github.com/repos/collina/measure-app/issues/events{/number}","events_url":"https://api.github.com/repos/collina/measure-app/events","assignees_url":"https://api.github.com/repos/collina/measure-app/assignees{/user}","branches_url":"https://api.github.com/repos/collina/measure-app/branches{/branch}","tags_url":"https://api.github.com/repos/collina/measure-app/tags","blobs_url":"https://api.github.com/repos/collina/measure-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/collina/measure-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/collina/measure-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/collina/measure-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/collina/measure-app/statuses/{sha}","languages_url":"https://api.github.com/repos/collina/measure-app/languages","stargazers_url":"https://api.github.com/repos/collina/measure-app/stargazers","contributors_url":"https://api.github.com/repos/collina/measure-app/contributors","subscribers_url":"https://api.github.com/repos/collina/measure-app/subscribers","subscription_url":"https://api.github.com/repos/collina/measure-app/subscription","commits_url":"https://api.github.com/repos/collina/measure-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/collina/measure-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/collina/measure-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/collina/measure-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/collina/measure-app/contents/{+path}","compare_url":"https://api.github.com/repos/collina/measure-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/collina/measure-app/merges","archive_url":"https://api.github.com/repos/collina/measure-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/collina/measure-app/downloads","issues_url":"https://api.github.com/repos/collina/measure-app/issues{/number}","pulls_url":"https://api.github.com/repos/collina/measure-app/pulls{/number}","milestones_url":"https://api.github.com/repos/collina/measure-app/milestones{/number}","notifications_url":"https://api.github.com/repos/collina/measure-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/collina/measure-app/labels{/name}","releases_url":"https://api.github.com/repos/collina/measure-app/releases{/id}","created_at":"2015-11-12T14:42:56Z","updated_at":"2015-11-15T18:51:51Z","pushed_at":"2015-11-15T19:13:02Z","git_url":"git://github.com/collina/measure-app.git","ssh_url":"git@github.com:collina/measure-app.git","clone_url":"https://github.com/collina/measure-app.git","svn_url":"https://github.com/collina/measure-app","homepage":null,"size":0,"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":"m-lab:master","ref":"master","sha":"2b7bb30582af3dda8d0b5cb9bb87c28b6241a895","user":{"login":"m-lab","id":3496264,"avatar_url":"https://avatars.githubusercontent.com/u/3496264?v=3","gravatar_id":"","url":"https://api.github.com/users/m-lab","html_url":"https://github.com/m-lab","followers_url":"https://api.github.com/users/m-lab/followers","following_url":"https://api.github.com/users/m-lab/following{/other_user}","gists_url":"https://api.github.com/users/m-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/m-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-lab/subscriptions","organizations_url":"https://api.github.com/users/m-lab/orgs","repos_url":"https://api.github.com/users/m-lab/repos","events_url":"https://api.github.com/users/m-lab/events{/privacy}","received_events_url":"https://api.github.com/users/m-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":46015042,"name":"measure-app","full_name":"m-lab/measure-app","owner":{"login":"m-lab","id":3496264,"avatar_url":"https://avatars.githubusercontent.com/u/3496264?v=3","gravatar_id":"","url":"https://api.github.com/users/m-lab","html_url":"https://github.com/m-lab","followers_url":"https://api.github.com/users/m-lab/followers","following_url":"https://api.github.com/users/m-lab/following{/other_user}","gists_url":"https://api.github.com/users/m-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/m-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-lab/subscriptions","organizations_url":"https://api.github.com/users/m-lab/orgs","repos_url":"https://api.github.com/users/m-lab/repos","events_url":"https://api.github.com/users/m-lab/events{/privacy}","received_events_url":"https://api.github.com/users/m-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/m-lab/measure-app","description":"","fork":false,"url":"https://api.github.com/repos/m-lab/measure-app","forks_url":"https://api.github.com/repos/m-lab/measure-app/forks","keys_url":"https://api.github.com/repos/m-lab/measure-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m-lab/measure-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m-lab/measure-app/teams","hooks_url":"https://api.github.com/repos/m-lab/measure-app/hooks","issue_events_url":"https://api.github.com/repos/m-lab/measure-app/issues/events{/number}","events_url":"https://api.github.com/repos/m-lab/measure-app/events","assignees_url":"https://api.github.com/repos/m-lab/measure-app/assignees{/user}","branches_url":"https://api.github.com/repos/m-lab/measure-app/branches{/branch}","tags_url":"https://api.github.com/repos/m-lab/measure-app/tags","blobs_url":"https://api.github.com/repos/m-lab/measure-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m-lab/measure-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m-lab/measure-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/m-lab/measure-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m-lab/measure-app/statuses/{sha}","languages_url":"https://api.github.com/repos/m-lab/measure-app/languages","stargazers_url":"https://api.github.com/repos/m-lab/measure-app/stargazers","contributors_url":"https://api.github.com/repos/m-lab/measure-app/contributors","subscribers_url":"https://api.github.com/repos/m-lab/measure-app/subscribers","subscription_url":"https://api.github.com/repos/m-lab/measure-app/subscription","commits_url":"https://api.github.com/repos/m-lab/measure-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/m-lab/measure-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/m-lab/measure-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/m-lab/measure-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/m-lab/measure-app/contents/{+path}","compare_url":"https://api.github.com/repos/m-lab/measure-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m-lab/measure-app/merges","archive_url":"https://api.github.com/repos/m-lab/measure-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m-lab/measure-app/downloads","issues_url":"https://api.github.com/repos/m-lab/measure-app/issues{/number}","pulls_url":"https://api.github.com/repos/m-lab/measure-app/pulls{/number}","milestones_url":"https://api.github.com/repos/m-lab/measure-app/milestones{/number}","notifications_url":"https://api.github.com/repos/m-lab/measure-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m-lab/measure-app/labels{/name}","releases_url":"https://api.github.com/repos/m-lab/measure-app/releases{/id}","created_at":"2015-11-11T22:55:06Z","updated_at":"2015-11-13T16:23:57Z","pushed_at":"2015-11-15T19:13:02Z","git_url":"git://github.com/m-lab/measure-app.git","ssh_url":"git@github.com:m-lab/measure-app.git","clone_url":"https://github.com/m-lab/measure-app.git","svn_url":"https://github.com/m-lab/measure-app","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/5"},"html":{"href":"https://github.com/m-lab/measure-app/pull/5"},"issue":{"href":"https://api.github.com/repos/m-lab/measure-app/issues/5"},"comments":{"href":"https://api.github.com/repos/m-lab/measure-app/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/m-lab/measure-app/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/m-lab/measure-app/statuses/e49f27ce1f897ce6040c6bbd137e403071743e60"}}}}