{"action":"created","comment":{"url":"https://api.github.com/repos/bayesimpact/encompass/pulls/comments/174327081","pull_request_review_id":103662398,"id":174327081,"diff_hunk":"@@ -66,9 +71,31 @@ function onClick(store: Store) {\n         averageMeasure(adequacies),\n         maxMeasure(adequacies)\n       ]\n+      dataRow.push.apply(dataRow, getDataForCensusCategories([_], store))\n+      return dataRow\n     })\n     let csv = generateCSV(headers, data)\n     // Sample filename: encompass-analysis-haversine-2018-03-06.csv\n     download(csv, 'text/csv', `encompass-analysis-${method}-${new Date().toJSON().slice(0, 10)}.csv`)\n   }\n }\n+\n+function getHeadersForCensusCategories(method: Method) {\n+  let categories = Object.keys(CENSUS_MAPPING).sort()\n+  return flattenDeep(categories.map(_ => CENSUS_MAPPING[_].map(\n+    group => [\n+      getLegend(method, AdequacyMode.ADEQUATE_15),\n+      getLegend(method, AdequacyMode.ADEQUATE_30),\n+      getLegend(method, AdequacyMode.ADEQUATE_60),\n+      getLegend(method, AdequacyMode.INADEQUATE)].map(\n+        legend => snakeCase([_, group, legend].join('_').replace(\n+          '<', 'inf').replace('>', 'sup')","path":"frontend/src/components/DownloadAnalysisLink/DownloadAnalysisLink.tsx","position":63,"original_position":63,"commit_id":"318600c66d36c36eee6c5b32d8c462e9deabab80","original_commit_id":"318600c66d36c36eee6c5b32d8c462e9deabab80","user":{"login":"akegan","id":11825994,"avatar_url":"https://avatars2.githubusercontent.com/u/11825994?v=4","gravatar_id":"","url":"https://api.github.com/users/akegan","html_url":"https://github.com/akegan","followers_url":"https://api.github.com/users/akegan/followers","following_url":"https://api.github.com/users/akegan/following{/other_user}","gists_url":"https://api.github.com/users/akegan/gists{/gist_id}","starred_url":"https://api.github.com/users/akegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akegan/subscriptions","organizations_url":"https://api.github.com/users/akegan/orgs","repos_url":"https://api.github.com/users/akegan/repos","events_url":"https://api.github.com/users/akegan/events{/privacy}","received_events_url":"https://api.github.com/users/akegan/received_events","type":"User","site_admin":false},"body":"what's this?","created_at":"2018-03-14T00:46:22Z","updated_at":"2018-03-14T00:46:22Z","html_url":"https://github.com/bayesimpact/encompass/pull/534#discussion_r174327081","pull_request_url":"https://api.github.com/repos/bayesimpact/encompass/pulls/534","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/comments/174327081"},"html":{"href":"https://github.com/bayesimpact/encompass/pull/534#discussion_r174327081"},"pull_request":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/534"}}},"pull_request":{"url":"https://api.github.com/repos/bayesimpact/encompass/pulls/534","id":174818575,"html_url":"https://github.com/bayesimpact/encompass/pull/534","diff_url":"https://github.com/bayesimpact/encompass/pull/534.diff","patch_url":"https://github.com/bayesimpact/encompass/pull/534.patch","issue_url":"https://api.github.com/repos/bayesimpact/encompass/issues/534","number":534,"state":"open","locked":false,"title":"Add census to CSV download (fixes #459)","user":{"login":"ericboucher","id":16843267,"avatar_url":"https://avatars3.githubusercontent.com/u/16843267?v=4","gravatar_id":"","url":"https://api.github.com/users/ericboucher","html_url":"https://github.com/ericboucher","followers_url":"https://api.github.com/users/ericboucher/followers","following_url":"https://api.github.com/users/ericboucher/following{/other_user}","gists_url":"https://api.github.com/users/ericboucher/gists{/gist_id}","starred_url":"https://api.github.com/users/ericboucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericboucher/subscriptions","organizations_url":"https://api.github.com/users/ericboucher/orgs","repos_url":"https://api.github.com/users/ericboucher/repos","events_url":"https://api.github.com/users/ericboucher/events{/privacy}","received_events_url":"https://api.github.com/users/ericboucher/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-03-13T23:35:44Z","updated_at":"2018-03-14T00:46:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e381c7a8c09c110f58814d90bdf50b76786b7a53","assignee":{"login":"akegan","id":11825994,"avatar_url":"https://avatars2.githubusercontent.com/u/11825994?v=4","gravatar_id":"","url":"https://api.github.com/users/akegan","html_url":"https://github.com/akegan","followers_url":"https://api.github.com/users/akegan/followers","following_url":"https://api.github.com/users/akegan/following{/other_user}","gists_url":"https://api.github.com/users/akegan/gists{/gist_id}","starred_url":"https://api.github.com/users/akegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akegan/subscriptions","organizations_url":"https://api.github.com/users/akegan/orgs","repos_url":"https://api.github.com/users/akegan/repos","events_url":"https://api.github.com/users/akegan/events{/privacy}","received_events_url":"https://api.github.com/users/akegan/received_events","type":"User","site_admin":false},"assignees":[{"login":"akegan","id":11825994,"avatar_url":"https://avatars2.githubusercontent.com/u/11825994?v=4","gravatar_id":"","url":"https://api.github.com/users/akegan","html_url":"https://github.com/akegan","followers_url":"https://api.github.com/users/akegan/followers","following_url":"https://api.github.com/users/akegan/following{/other_user}","gists_url":"https://api.github.com/users/akegan/gists{/gist_id}","starred_url":"https://api.github.com/users/akegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akegan/subscriptions","organizations_url":"https://api.github.com/users/akegan/orgs","repos_url":"https://api.github.com/users/akegan/repos","events_url":"https://api.github.com/users/akegan/events{/privacy}","received_events_url":"https://api.github.com/users/akegan/received_events","type":"User","site_admin":false},{"login":"tetraptych","id":19229500,"avatar_url":"https://avatars1.githubusercontent.com/u/19229500?v=4","gravatar_id":"","url":"https://api.github.com/users/tetraptych","html_url":"https://github.com/tetraptych","followers_url":"https://api.github.com/users/tetraptych/followers","following_url":"https://api.github.com/users/tetraptych/following{/other_user}","gists_url":"https://api.github.com/users/tetraptych/gists{/gist_id}","starred_url":"https://api.github.com/users/tetraptych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tetraptych/subscriptions","organizations_url":"https://api.github.com/users/tetraptych/orgs","repos_url":"https://api.github.com/users/tetraptych/repos","events_url":"https://api.github.com/users/tetraptych/events{/privacy}","received_events_url":"https://api.github.com/users/tetraptych/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"tetraptych","id":19229500,"avatar_url":"https://avatars1.githubusercontent.com/u/19229500?v=4","gravatar_id":"","url":"https://api.github.com/users/tetraptych","html_url":"https://github.com/tetraptych","followers_url":"https://api.github.com/users/tetraptych/followers","following_url":"https://api.github.com/users/tetraptych/following{/other_user}","gists_url":"https://api.github.com/users/tetraptych/gists{/gist_id}","starred_url":"https://api.github.com/users/tetraptych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tetraptych/subscriptions","organizations_url":"https://api.github.com/users/tetraptych/orgs","repos_url":"https://api.github.com/users/tetraptych/repos","events_url":"https://api.github.com/users/tetraptych/events{/privacy}","received_events_url":"https://api.github.com/users/tetraptych/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":793096926,"url":"https://api.github.com/repos/bayesimpact/encompass/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bayesimpact/encompass/pulls/534/commits","review_comments_url":"https://api.github.com/repos/bayesimpact/encompass/pulls/534/comments","review_comment_url":"https://api.github.com/repos/bayesimpact/encompass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bayesimpact/encompass/issues/534/comments","statuses_url":"https://api.github.com/repos/bayesimpact/encompass/statuses/318600c66d36c36eee6c5b32d8c462e9deabab80","head":{"label":"bayesimpact:eric.p.boucher-download-demographics","ref":"eric.p.boucher-download-demographics","sha":"318600c66d36c36eee6c5b32d8c462e9deabab80","user":{"login":"bayesimpact","id":7692453,"avatar_url":"https://avatars1.githubusercontent.com/u/7692453?v=4","gravatar_id":"","url":"https://api.github.com/users/bayesimpact","html_url":"https://github.com/bayesimpact","followers_url":"https://api.github.com/users/bayesimpact/followers","following_url":"https://api.github.com/users/bayesimpact/following{/other_user}","gists_url":"https://api.github.com/users/bayesimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/bayesimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayesimpact/subscriptions","organizations_url":"https://api.github.com/users/bayesimpact/orgs","repos_url":"https://api.github.com/users/bayesimpact/repos","events_url":"https://api.github.com/users/bayesimpact/events{/privacy}","received_events_url":"https://api.github.com/users/bayesimpact/received_events","type":"Organization","site_admin":false},"repo":{"id":108600344,"name":"encompass","full_name":"bayesimpact/encompass","owner":{"login":"bayesimpact","id":7692453,"avatar_url":"https://avatars1.githubusercontent.com/u/7692453?v=4","gravatar_id":"","url":"https://api.github.com/users/bayesimpact","html_url":"https://github.com/bayesimpact","followers_url":"https://api.github.com/users/bayesimpact/followers","following_url":"https://api.github.com/users/bayesimpact/following{/other_user}","gists_url":"https://api.github.com/users/bayesimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/bayesimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayesimpact/subscriptions","organizations_url":"https://api.github.com/users/bayesimpact/orgs","repos_url":"https://api.github.com/users/bayesimpact/repos","events_url":"https://api.github.com/users/bayesimpact/events{/privacy}","received_events_url":"https://api.github.com/users/bayesimpact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bayesimpact/encompass","description":"Bayes Impact Encompass Tool for Time & Distance Standards Calculations","fork":false,"url":"https://api.github.com/repos/bayesimpact/encompass","forks_url":"https://api.github.com/repos/bayesimpact/encompass/forks","keys_url":"https://api.github.com/repos/bayesimpact/encompass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayesimpact/encompass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayesimpact/encompass/teams","hooks_url":"https://api.github.com/repos/bayesimpact/encompass/hooks","issue_events_url":"https://api.github.com/repos/bayesimpact/encompass/issues/events{/number}","events_url":"https://api.github.com/repos/bayesimpact/encompass/events","assignees_url":"https://api.github.com/repos/bayesimpact/encompass/assignees{/user}","branches_url":"https://api.github.com/repos/bayesimpact/encompass/branches{/branch}","tags_url":"https://api.github.com/repos/bayesimpact/encompass/tags","blobs_url":"https://api.github.com/repos/bayesimpact/encompass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayesimpact/encompass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayesimpact/encompass/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayesimpact/encompass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayesimpact/encompass/statuses/{sha}","languages_url":"https://api.github.com/repos/bayesimpact/encompass/languages","stargazers_url":"https://api.github.com/repos/bayesimpact/encompass/stargazers","contributors_url":"https://api.github.com/repos/bayesimpact/encompass/contributors","subscribers_url":"https://api.github.com/repos/bayesimpact/encompass/subscribers","subscription_url":"https://api.github.com/repos/bayesimpact/encompass/subscription","commits_url":"https://api.github.com/repos/bayesimpact/encompass/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayesimpact/encompass/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayesimpact/encompass/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayesimpact/encompass/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayesimpact/encompass/contents/{+path}","compare_url":"https://api.github.com/repos/bayesimpact/encompass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayesimpact/encompass/merges","archive_url":"https://api.github.com/repos/bayesimpact/encompass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayesimpact/encompass/downloads","issues_url":"https://api.github.com/repos/bayesimpact/encompass/issues{/number}","pulls_url":"https://api.github.com/repos/bayesimpact/encompass/pulls{/number}","milestones_url":"https://api.github.com/repos/bayesimpact/encompass/milestones{/number}","notifications_url":"https://api.github.com/repos/bayesimpact/encompass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayesimpact/encompass/labels{/name}","releases_url":"https://api.github.com/repos/bayesimpact/encompass/releases{/id}","deployments_url":"https://api.github.com/repos/bayesimpact/encompass/deployments","created_at":"2017-10-27T22:11:13Z","updated_at":"2018-03-13T21:50:25Z","pushed_at":"2018-03-14T00:37:30Z","git_url":"git://github.com/bayesimpact/encompass.git","ssh_url":"git@github.com:bayesimpact/encompass.git","clone_url":"https://github.com/bayesimpact/encompass.git","svn_url":"https://github.com/bayesimpact/encompass","homepage":"","size":78177,"stargazers_count":6,"watchers_count":6,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":75,"watchers":6,"default_branch":"master"}},"base":{"label":"bayesimpact:master","ref":"master","sha":"3d7bc583b90a1cbc585bc1eb5dec1d3f48d0f1d9","user":{"login":"bayesimpact","id":7692453,"avatar_url":"https://avatars1.githubusercontent.com/u/7692453?v=4","gravatar_id":"","url":"https://api.github.com/users/bayesimpact","html_url":"https://github.com/bayesimpact","followers_url":"https://api.github.com/users/bayesimpact/followers","following_url":"https://api.github.com/users/bayesimpact/following{/other_user}","gists_url":"https://api.github.com/users/bayesimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/bayesimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayesimpact/subscriptions","organizations_url":"https://api.github.com/users/bayesimpact/orgs","repos_url":"https://api.github.com/users/bayesimpact/repos","events_url":"https://api.github.com/users/bayesimpact/events{/privacy}","received_events_url":"https://api.github.com/users/bayesimpact/received_events","type":"Organization","site_admin":false},"repo":{"id":108600344,"name":"encompass","full_name":"bayesimpact/encompass","owner":{"login":"bayesimpact","id":7692453,"avatar_url":"https://avatars1.githubusercontent.com/u/7692453?v=4","gravatar_id":"","url":"https://api.github.com/users/bayesimpact","html_url":"https://github.com/bayesimpact","followers_url":"https://api.github.com/users/bayesimpact/followers","following_url":"https://api.github.com/users/bayesimpact/following{/other_user}","gists_url":"https://api.github.com/users/bayesimpact/gists{/gist_id}","starred_url":"https://api.github.com/users/bayesimpact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayesimpact/subscriptions","organizations_url":"https://api.github.com/users/bayesimpact/orgs","repos_url":"https://api.github.com/users/bayesimpact/repos","events_url":"https://api.github.com/users/bayesimpact/events{/privacy}","received_events_url":"https://api.github.com/users/bayesimpact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bayesimpact/encompass","description":"Bayes Impact Encompass Tool for Time & Distance Standards Calculations","fork":false,"url":"https://api.github.com/repos/bayesimpact/encompass","forks_url":"https://api.github.com/repos/bayesimpact/encompass/forks","keys_url":"https://api.github.com/repos/bayesimpact/encompass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayesimpact/encompass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayesimpact/encompass/teams","hooks_url":"https://api.github.com/repos/bayesimpact/encompass/hooks","issue_events_url":"https://api.github.com/repos/bayesimpact/encompass/issues/events{/number}","events_url":"https://api.github.com/repos/bayesimpact/encompass/events","assignees_url":"https://api.github.com/repos/bayesimpact/encompass/assignees{/user}","branches_url":"https://api.github.com/repos/bayesimpact/encompass/branches{/branch}","tags_url":"https://api.github.com/repos/bayesimpact/encompass/tags","blobs_url":"https://api.github.com/repos/bayesimpact/encompass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayesimpact/encompass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayesimpact/encompass/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayesimpact/encompass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayesimpact/encompass/statuses/{sha}","languages_url":"https://api.github.com/repos/bayesimpact/encompass/languages","stargazers_url":"https://api.github.com/repos/bayesimpact/encompass/stargazers","contributors_url":"https://api.github.com/repos/bayesimpact/encompass/contributors","subscribers_url":"https://api.github.com/repos/bayesimpact/encompass/subscribers","subscription_url":"https://api.github.com/repos/bayesimpact/encompass/subscription","commits_url":"https://api.github.com/repos/bayesimpact/encompass/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayesimpact/encompass/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayesimpact/encompass/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayesimpact/encompass/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayesimpact/encompass/contents/{+path}","compare_url":"https://api.github.com/repos/bayesimpact/encompass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayesimpact/encompass/merges","archive_url":"https://api.github.com/repos/bayesimpact/encompass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayesimpact/encompass/downloads","issues_url":"https://api.github.com/repos/bayesimpact/encompass/issues{/number}","pulls_url":"https://api.github.com/repos/bayesimpact/encompass/pulls{/number}","milestones_url":"https://api.github.com/repos/bayesimpact/encompass/milestones{/number}","notifications_url":"https://api.github.com/repos/bayesimpact/encompass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayesimpact/encompass/labels{/name}","releases_url":"https://api.github.com/repos/bayesimpact/encompass/releases{/id}","deployments_url":"https://api.github.com/repos/bayesimpact/encompass/deployments","created_at":"2017-10-27T22:11:13Z","updated_at":"2018-03-13T21:50:25Z","pushed_at":"2018-03-14T00:37:30Z","git_url":"git://github.com/bayesimpact/encompass.git","ssh_url":"git@github.com:bayesimpact/encompass.git","clone_url":"https://github.com/bayesimpact/encompass.git","svn_url":"https://github.com/bayesimpact/encompass","homepage":"","size":78177,"stargazers_count":6,"watchers_count":6,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":75,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/534"},"html":{"href":"https://github.com/bayesimpact/encompass/pull/534"},"issue":{"href":"https://api.github.com/repos/bayesimpact/encompass/issues/534"},"comments":{"href":"https://api.github.com/repos/bayesimpact/encompass/issues/534/comments"},"review_comments":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/534/comments"},"review_comment":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bayesimpact/encompass/pulls/534/commits"},"statuses":{"href":"https://api.github.com/repos/bayesimpact/encompass/statuses/318600c66d36c36eee6c5b32d8c462e9deabab80"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"akegan"}}