From 6217db6b05d769f13a1e93e68a40842ebda56ed0 Mon Sep 17 00:00:00 2001 From: thomassth Date: Sun, 20 Oct 2024 02:59:12 -0400 Subject: [PATCH 1/7] Beeswarm graph --- .../compdem/client-report/Beeswarm.stories.js | 23 +- stories/compdem/client-report/testData.js | 7212 +++++++++++++++++ 2 files changed, 7226 insertions(+), 9 deletions(-) create mode 100644 stories/compdem/client-report/testData.js diff --git a/stories/compdem/client-report/Beeswarm.stories.js b/stories/compdem/client-report/Beeswarm.stories.js index ada3971..9196dc8 100644 --- a/stories/compdem/client-report/Beeswarm.stories.js +++ b/stories/compdem/client-report/Beeswarm.stories.js @@ -3,11 +3,12 @@ import Beeswarm from '../../../codebases/compdem/client-report/src/components/be import { getMath, getConversation, getExtremity } from '../../../.storybook/utils' import '../../../codebases/compdem/client-report/src/index.css'; +import { comments, conversation, extremity, math } from './testData'; const mathResult = getMath() export default { - title: 'compdem/client-report/Beeswarm (not working)', + title: 'compdem/client-report/Beeswarm', component: Beeswarm, } @@ -27,12 +28,16 @@ AllNull.args = { export const Default = Template.bind({}) Default.args = { ...AllNull.args, - conversation: getConversation(), - extremity: getExtremity(), - math: mathResult, - comments: null, //{this.state.comments} - probabilities: null, //{this.state.filteredCorrelationMatrix} - probabilitiesTids: null, //{this.state.filteredCorrelationTids} - voteColors: null, //{this.state.voteColors} -} + conversation: conversation, + extremity: extremity, + math: math, + comments: comments, + probabilities: {}, //{this.state.filteredCorrelationMatrix} + probabilitiesTids: {}, //{this.state.filteredCorrelationTids} + voteColors: { + "agree": "rgb(46, 204, 113)", + "disagree": "rgb(231, 76, 60)", + "pass": "rgb(230,230,230)" + }, //{this.state.voteColors}, +} diff --git a/stories/compdem/client-report/testData.js b/stories/compdem/client-report/testData.js new file mode 100644 index 0000000..772a47c --- /dev/null +++ b/stories/compdem/client-report/testData.js @@ -0,0 +1,7212 @@ +// data source: https://pol.is/report/r3bpnywujybyru4rkx92i + +export const comments = [ + { + "txt": "Developers should be allowed to build low-rise apartment buildings in 90% of Toronto's neighbourhoods.", + "tid": 1, + "created": "1717704584359", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 15, + "disagree_count": 2, + "pass_count": 4, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.0875, + "agreed": 15, + "disagreed": 2, + "saw": 21, + "pctAgreed": 0.7142857142857143, + "pctDisagreed": 0.09523809523809523, + "pctVoted": 0.19047619047619047 + }, + { + "txt": "The city should increase the supply of affordable housing units by incentivizing developers to build more affordable homes.", + "tid": 14, + "created": "1717705772799", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 12, + "disagree_count": 3, + "pass_count": 4, + "count": 19, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.14423076923076925, + "agreed": 12, + "disagreed": 3, + "saw": 19, + "pctAgreed": 0.631578947368421, + "pctDisagreed": 0.15789473684210525, + "pctVoted": 0.21052631578947367 + }, + { + "txt": "We need rent-control on condo fees.", + "tid": 43, + "created": "1717958584421", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 5, + "disagree_count": 3, + "pass_count": 3, + "count": 11, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.07142857142857142, + "agreed": 5, + "disagreed": 3, + "saw": 11, + "pctAgreed": 0.45454545454545453, + "pctDisagreed": 0.2727272727272727, + "pctVoted": 0.2727272727272727 + }, + { + "txt": "The zoning change to allow for quadplexes in all of Toronto was a step in the right direction.", + "tid": 3, + "created": "1717705051844", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 17, + "disagree_count": 1, + "pass_count": 2, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.1782407407407407, + "agreed": 16, + "disagreed": 1, + "saw": 19, + "pctAgreed": 0.8421052631578947, + "pctDisagreed": 0.05263157894736842, + "pctVoted": 0.10526315789473684 + }, + { + "txt": "We have a lack of affordability requirements in land sales.", + "tid": 26, + "created": "1717706977315", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 9, + "disagree_count": 2, + "pass_count": 9, + "count": 20, + "conversation_id": "5esrbenwxs", + "unc": 0.45, + "group-aware-consensus": 0.03846153846153846, + "agreed": 9, + "disagreed": 2, + "saw": 20, + "pctAgreed": 0.45, + "pctDisagreed": 0.1, + "pctVoted": 0.45 + }, + { + "txt": "Rent control limitations contributes to rising rents and insecurity of tenure.", + "tid": 25, + "created": "1717706386128", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 5, + "pass_count": 5, + "count": 18, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.11904761904761903, + "agreed": 8, + "disagreed": 5, + "saw": 17, + "pctAgreed": 0.47058823529411764, + "pctDisagreed": 0.29411764705882354, + "pctVoted": 0.23529411764705882 + }, + { + "txt": "Toronto is losing private market affordable rental housing faster than it is building it", + "tid": 45, + "created": "1718036137137", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 19, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 4, + "disagree_count": 0, + "pass_count": 3, + "count": 7, + "conversation_id": "5esrbenwxs", + "unc": 0.42857142857142855, + "group-aware-consensus": 0.16666666666666666, + "agreed": 4, + "disagreed": 0, + "saw": 7, + "pctAgreed": 0.5714285714285714, + "pctDisagreed": 0, + "pctVoted": 0.42857142857142855 + }, + { + "txt": "New city bylaw directing development priorities of 4+ floor multi developments with low income to for profit 30/70 split", + "tid": 31, + "created": "1717859468800", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 5, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 10, + "disagree_count": 5, + "pass_count": 5, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.09600000000000003, + "agreed": 9, + "disagreed": 5, + "saw": 19, + "pctAgreed": 0.47368421052631576, + "pctDisagreed": 0.2631578947368421, + "pctVoted": 0.2631578947368421 + }, + { + "txt": "Federal, provincial, and local government need to work together to make building rental buildings profitable.", + "tid": 36, + "created": "1717862453403", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 8, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 14, + "disagree_count": 3, + "pass_count": 2, + "count": 19, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.2454545454545455, + "agreed": 14, + "disagreed": 3, + "saw": 19, + "pctAgreed": 0.7368421052631579, + "pctDisagreed": 0.15789473684210525, + "pctVoted": 0.10526315789473684 + }, + { + "txt": "We need strict regulation controlling condo fees as they are a captive market", + "tid": 47, + "created": "1718132845748", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 25, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 3, + "disagree_count": 0, + "pass_count": 0, + "count": 3, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.25, + "agreed": 3, + "disagreed": 0, + "saw": 3, + "pctAgreed": 1, + "pctDisagreed": 0, + "pctVoted": 0 + }, + { + "txt": "Legislation around Housing Co-ops should be crafted to incentivise more growth in this type of housing.", + "tid": 13, + "created": "1717705740567", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 14, + "disagree_count": 2, + "pass_count": 4, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.25, + "agreed": 14, + "disagreed": 2, + "saw": 20, + "pctAgreed": 0.7, + "pctDisagreed": 0.1, + "pctVoted": 0.2 + }, + { + "txt": "I had to sacrifice on location to find an affordable place.", + "tid": 28, + "created": "1717707119356", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 14, + "disagree_count": 5, + "pass_count": 3, + "count": 22, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.24107142857142855, + "agreed": 14, + "disagreed": 5, + "saw": 22, + "pctAgreed": 0.6363636363636364, + "pctDisagreed": 0.22727272727272727, + "pctVoted": 0.13636363636363635 + }, + { + "txt": "Doug Ford's abolition of rent control for purpose built rentals built after 2018 is helping increase the supply of housing and therefor decreasing the cost of rent for everyone.", + "tid": 2, + "created": "1717704938338", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 5, + "disagree_count": 12, + "pass_count": 3, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.037500000000000006, + "agreed": 5, + "disagreed": 12, + "saw": 20, + "pctAgreed": 0.25, + "pctDisagreed": 0.6, + "pctVoted": 0.15 + }, + { + "txt": "The city should provide more resources and support for community land trusts to preserve affordable housing options.", + "tid": 16, + "created": "1717705788409", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 16, + "disagree_count": 3, + "pass_count": 2, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.2857142857142857, + "agreed": 16, + "disagreed": 3, + "saw": 21, + "pctAgreed": 0.7619047619047619, + "pctDisagreed": 0.14285714285714285, + "pctVoted": 0.09523809523809523 + }, + { + "txt": "Feds must disincentivize speculators in the housing market.", + "tid": 40, + "created": "1717876409622", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 13, + "disagree_count": 3, + "pass_count": 0, + "count": 16, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.29220779220779225, + "agreed": 13, + "disagreed": 3, + "saw": 16, + "pctAgreed": 0.8125, + "pctDisagreed": 0.1875, + "pctVoted": 0 + }, + { + "txt": "We need a dramatic increase in the housing supply.", + "tid": 4, + "created": "1717705098660", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 21, + "disagree_count": 1, + "pass_count": 1, + "count": 23, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.525974025974026, + "agreed": 21, + "disagreed": 1, + "saw": 23, + "pctAgreed": 0.9130434782608695, + "pctDisagreed": 0.043478260869565216, + "pctVoted": 0.043478260869565216 + }, + { + "txt": "experienced rent hikes due to gentrification", + "tid": 18, + "created": "1717705853867", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 5, + "pass_count": 5, + "count": 18, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.09375, + "agreed": 8, + "disagreed": 5, + "saw": 18, + "pctAgreed": 0.4444444444444444, + "pctDisagreed": 0.2777777777777778, + "pctVoted": 0.2777777777777778 + }, + { + "txt": "Freeze condo builds", + "tid": 32, + "created": "1717859478324", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 5, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 4, + "disagree_count": 11, + "pass_count": 3, + "count": 18, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.020000000000000004, + "agreed": 4, + "disagreed": 10, + "saw": 17, + "pctAgreed": 0.23529411764705882, + "pctDisagreed": 0.5882352941176471, + "pctVoted": 0.17647058823529413 + }, + { + "txt": "We need to incentivise developers to build more housing.", + "tid": 11, + "created": "1717705636446", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 14, + "disagree_count": 8, + "pass_count": 2, + "count": 24, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.08184523809523808, + "agreed": 14, + "disagreed": 8, + "saw": 24, + "pctAgreed": 0.5833333333333334, + "pctDisagreed": 0.3333333333333333, + "pctVoted": 0.08333333333333333 + }, + { + "txt": "The city should implement rent control measures to prevent rapid gentrification and displacement of long-time residents.", + "tid": 15, + "created": "1717705782919", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 16, + "disagree_count": 8, + "pass_count": 0, + "count": 24, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.1753246753246753, + "agreed": 15, + "disagreed": 8, + "saw": 23, + "pctAgreed": 0.6521739130434783, + "pctDisagreed": 0.34782608695652173, + "pctVoted": 0 + }, + { + "txt": "Toronto should raise density limits across the city and remove them entirely near transit hubs and along major corridors", + "tid": 48, + "created": "1718133341342", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 25, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 3, + "disagree_count": 0, + "pass_count": 0, + "count": 3, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.25, + "agreed": 3, + "disagreed": 0, + "saw": 3, + "pctAgreed": 1, + "pctDisagreed": 0, + "pctVoted": 0 + }, + { + "txt": "Ontario government is not doing enough to build transitional and supportive housing for people at risk of homelessness or facing mental health challenges", + "tid": 24, + "created": "1717706355915", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 17, + "disagree_count": 2, + "pass_count": 1, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.3819444444444445, + "agreed": 16, + "disagreed": 2, + "saw": 19, + "pctAgreed": 0.8421052631578947, + "pctDisagreed": 0.10526315789473684, + "pctVoted": 0.05263157894736842 + }, + { + "txt": "Purpose built rentals will server Toronto better than condos.", + "tid": 9, + "created": "1717705502311", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 17, + "disagree_count": 2, + "pass_count": 2, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.3846153846153846, + "agreed": 16, + "disagreed": 2, + "saw": 20, + "pctAgreed": 0.8, + "pctDisagreed": 0.1, + "pctVoted": 0.1 + }, + { + "txt": "Several government initiatives have been implemented to address the affordable housing crisis in Toronto.", + "tid": 22, + "created": "1717706070012", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 7, + "pass_count": 5, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.07692307692307693, + "agreed": 8, + "disagreed": 7, + "saw": 20, + "pctAgreed": 0.4, + "pctDisagreed": 0.35, + "pctVoted": 0.25 + }, + { + "txt": "The Feds must curb immigration to lower the cost of housing.", + "tid": 41, + "created": "1717876460361", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 6, + "disagree_count": 4, + "pass_count": 5, + "count": 15, + "conversation_id": "5esrbenwxs", + "unc": 0.3333333333333333, + "group-aware-consensus": 0.05555555555555555, + "agreed": 6, + "disagreed": 4, + "saw": 15, + "pctAgreed": 0.4, + "pctDisagreed": 0.26666666666666666, + "pctVoted": 0.3333333333333333 + }, + { + "txt": "We need to increase the density of the city.", + "tid": 0, + "created": "1717704485552", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 12, + "disagree_count": 3, + "pass_count": 4, + "count": 19, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.10416666666666667, + "agreed": 12, + "disagreed": 3, + "saw": 19, + "pctAgreed": 0.631578947368421, + "pctDisagreed": 0.15789473684210525, + "pctVoted": 0.21052631578947367 + }, + { + "txt": "The city should explore alternative housing models, such as co-living spaces or tiny homes, to reduce costs and increase affordability.", + "tid": 17, + "created": "1717705835491", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 17, + "disagree_count": 2, + "pass_count": 2, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.3928571428571428, + "agreed": 17, + "disagreed": 2, + "saw": 21, + "pctAgreed": 0.8095238095238095, + "pctDisagreed": 0.09523809523809523, + "pctVoted": 0.09523809523809523 + }, + { + "txt": "The city government should give up its unused land so developers can build more houses on it.", + "tid": 29, + "created": "1717720755198", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 11, + "disagree_count": 9, + "pass_count": 2, + "count": 22, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.06993006993006994, + "agreed": 11, + "disagreed": 9, + "saw": 22, + "pctAgreed": 0.5, + "pctDisagreed": 0.4090909090909091, + "pctVoted": 0.09090909090909091 + }, + { + "txt": "Analysis has proven housing inaffordability is from overheated demand.", + "tid": 39, + "created": "1717876367357", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 4, + "disagree_count": 2, + "pass_count": 8, + "count": 14, + "conversation_id": "5esrbenwxs", + "unc": 0.5714285714285714, + "group-aware-consensus": 0.03571428571428571, + "agreed": 4, + "disagreed": 2, + "saw": 14, + "pctAgreed": 0.2857142857142857, + "pctDisagreed": 0.14285714285714285, + "pctVoted": 0.5714285714285714 + }, + { + "txt": "there are multiple definitions used by different government bodies, leading to confusion and inconsistency", + "tid": 21, + "created": "1717706064706", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 5, + "disagree_count": 3, + "pass_count": 9, + "count": 17, + "conversation_id": "5esrbenwxs", + "unc": 0.5294117647058824, + "group-aware-consensus": 0.029761904761904757, + "agreed": 5, + "disagreed": 3, + "saw": 17, + "pctAgreed": 0.29411764705882354, + "pctDisagreed": 0.17647058823529413, + "pctVoted": 0.5294117647058824 + }, + { + "txt": "Government subsidies are the way to improve rental prices in Toronto.", + "tid": 10, + "created": "1717705549108", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 9, + "disagree_count": 8, + "pass_count": 3, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.03846153846153846, + "agreed": 9, + "disagreed": 8, + "saw": 20, + "pctAgreed": 0.45, + "pctDisagreed": 0.4, + "pctVoted": 0.15 + }, + { + "txt": "The housing crisis will never be solved as long as houses are treated like any other asset for investors.", + "tid": 49, + "created": "1718146299570", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 28, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 1, + "disagree_count": 0, + "pass_count": 1, + "count": 2, + "conversation_id": "5esrbenwxs", + "unc": 0.5, + "group-aware-consensus": 0.125, + "agreed": 1, + "disagreed": 0, + "saw": 2, + "pctAgreed": 0.5, + "pctDisagreed": 0, + "pctVoted": 0.5 + }, + { + "txt": "We need more condos.", + "tid": 8, + "created": "1717705456381", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 12, + "disagree_count": 7, + "pass_count": 3, + "count": 22, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.07407407407407407, + "agreed": 12, + "disagreed": 7, + "saw": 22, + "pctAgreed": 0.5454545454545454, + "pctDisagreed": 0.3181818181818182, + "pctVoted": 0.13636363636363635 + }, + { + "txt": "Heavily invest in Multi-Unit Residential Acquisition Program (MURA) 2 purchase/convert private market housing 2 permanent affordable rentals", + "tid": 44, + "created": "1718036027298", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 19, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 5, + "disagree_count": 1, + "pass_count": 2, + "count": 8, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.11904761904761903, + "agreed": 5, + "disagreed": 1, + "saw": 8, + "pctAgreed": 0.625, + "pctDisagreed": 0.125, + "pctVoted": 0.25 + }, + { + "txt": "Government has a role to play by building more public housing.", + "tid": 7, + "created": "1717705308576", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 19, + "disagree_count": 1, + "pass_count": 0, + "count": 20, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.5625, + "agreed": 19, + "disagreed": 1, + "saw": 20, + "pctAgreed": 0.95, + "pctDisagreed": 0.05, + "pctVoted": 0 + }, + { + "txt": "Convert vacant office buildings into homeless and low income housing opportunities.", + "tid": 33, + "created": "1717859515503", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 5, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 6, + "pass_count": 2, + "count": 16, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.11111111111111112, + "agreed": 8, + "disagreed": 6, + "saw": 16, + "pctAgreed": 0.5, + "pctDisagreed": 0.375, + "pctVoted": 0.125 + }, + { + "txt": "Incentivize combatting loneliness with renovation incentives to convert single family dwellings to shared accommodations", + "tid": 35, + "created": "1717859654743", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 5, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 8, + "pass_count": 3, + "count": 19, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.08000000000000002, + "agreed": 7, + "disagreed": 8, + "saw": 18, + "pctAgreed": 0.3888888888888889, + "pctDisagreed": 0.4444444444444444, + "pctVoted": 0.16666666666666666 + }, + { + "txt": "The 1% tax on land lords who own vacant apartments should be increased.", + "tid": 5, + "created": "1717705182005", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 14, + "disagree_count": 4, + "pass_count": 3, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.13846153846153847, + "agreed": 14, + "disagreed": 4, + "saw": 21, + "pctAgreed": 0.6666666666666666, + "pctDisagreed": 0.19047619047619047, + "pctVoted": 0.14285714285714285 + }, + { + "txt": "All levels of gov need to implement clauses in construction contracts that have heavy fines for late completion to speed building housing", + "tid": 37, + "created": "1717862561295", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 8, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 11, + "pass_count": 2, + "count": 21, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.039772727272727265, + "agreed": 8, + "disagreed": 11, + "saw": 21, + "pctAgreed": 0.38095238095238093, + "pctDisagreed": 0.5238095238095238, + "pctVoted": 0.09523809523809523 + }, + { + "txt": "I struggled to find a place that met my accessibility needs.", + "tid": 27, + "created": "1717707074364", + "tweet_id": null, + "quote_src_url": null, + "is_seed": true, + "is_meta": false, + "lang": "en", + "pid": 0, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 6, + "disagree_count": 7, + "pass_count": 6, + "count": 19, + "conversation_id": "5esrbenwxs", + "unc": 0.3157894736842105, + "group-aware-consensus": 0.03472222222222222, + "agreed": 6, + "disagreed": 7, + "saw": 19, + "pctAgreed": 0.3157894736842105, + "pctDisagreed": 0.3684210526315789, + "pctVoted": 0.3157894736842105 + }, + { + "txt": "Increase taxes for each additional property owned by a household beyond their primary home.", + "tid": 42, + "created": "1717958347419", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 12, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 10, + "disagree_count": 3, + "pass_count": 1, + "count": 14, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.19047619047619047, + "agreed": 10, + "disagreed": 3, + "saw": 14, + "pctAgreed": 0.7142857142857143, + "pctDisagreed": 0.21428571428571427, + "pctVoted": 0.07142857142857142 + }, + { + "txt": "Develop incentives for home conversions from single family dwellings into mini communities of shared accommodations", + "tid": 34, + "created": "1717859594897", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 5, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 8, + "disagree_count": 6, + "pass_count": 2, + "count": 16, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.11428571428571428, + "agreed": 8, + "disagreed": 6, + "saw": 16, + "pctAgreed": 0.5, + "pctDisagreed": 0.375, + "pctVoted": 0.125 + }, + { + "txt": "Investing in preserving existing affordable housing is one of the most cost effective ways TO can ensure secure affordable housing for ppl", + "tid": 46, + "created": "1718036194199", + "tweet_id": null, + "quote_src_url": null, + "is_seed": false, + "is_meta": false, + "lang": "en", + "pid": 19, + "velocity": 1, + "mod": 1, + "active": true, + "agree_count": 5, + "disagree_count": 0, + "pass_count": 2, + "count": 7, + "conversation_id": "5esrbenwxs", + "group-aware-consensus": 0.2962962962962963, + "agreed": 5, + "disagreed": 0, + "saw": 6, + "pctAgreed": 0.8333333333333334, + "pctDisagreed": 0, + "pctVoted": 0.16666666666666666 + } +] + +export const conversation = { + "topic": "Affordable Housing In Toronto", + "description": "Toronto is an expensive place to live. We want to hear your ideas on how to make it more affordable as well as the housing related struggles you have encountered while in the city.", + "is_anon": false, + "is_active": false, + "is_draft": true, + "is_public": true, + "email_domain": null, + "owner": 628487, + "participant_count": 30, + "created": "1717704305027", + "strict_moderation": true, + "profanity_filter": true, + "spam_filter": true, + "context": null, + "modified": "1725409480207", + "owner_sees_participation_stats": false, + "course_id": null, + "lti_users_only": false, + "link_url": null, + "upvotes": 1, + "parent_url": null, + "vis_type": 1, + "write_type": 1, + "bgcolor": null, + "help_type": 1, + "socialbtn_type": 0, + "style_btn": null, + "auth_needed_to_vote": false, + "auth_needed_to_write": false, + "auth_opt_fb": false, + "auth_opt_tw": false, + "auth_opt_allow_3rdparty": true, + "help_bgcolor": null, + "help_color": null, + "is_data_open": false, + "is_slack": false, + "is_curated": false, + "dataset_explanation": null, + "write_hint_type": 1, + "subscribe_type": 1, + "org_id": 628487, + "need_suzinvite": false, + "use_xid_whitelist": false, + "prioritize_seed": false, + "site_id": "polis_site_id_AO5Ijjr6WPVlmvZO1M", + "auth_opt_fb_computed": false, + "auth_opt_tw_computed": false, + "translations": [], + "ownername": "Civic Tech", + "is_mod": false, + "is_owner": false, + "conversation_id": "5esrbenwxs" +} + +export const extremity = { + "0": 0.8260855281177053, + "1": 0.6306355831344891, + "2": 2.814996254738393, + "3": 0.32247236241316024, + "4": 0.06298202770114834, + "5": 0.9333786729987231, + "7": 0.03462096082319622, + "8": 0.9143442519239249, + "9": 0.17027388869703525, + "10": 2.312575874400266, + "11": 1.9104110105627867, + "13": 0.44449995110234064, + "14": 0.6721130374828893, + "15": 1.3240130711677636, + "16": 0.4022519227783988, + "17": 0.30081384801309347, + "18": 1.1161361439265396, + "21": 0.5656129603654764, + "22": 0.595645135168949, + "24": 0.3085504583957649, + "25": 0.7089684715917088, + "26": 0.5851240796287611, + "27": 2.232842651973817, + "28": 0.9707329505851755, + "29": 2.1887084036061464, + "30": 0, + "31": 1.6622689116365483, + "32": 3.462740123808781, + "33": 1.726212866701811, + "34": 0.8278821762598564, + "35": 1.8631850965518824, + "36": 0.4093581065709053, + "37": 2.8107497165044735, + "38": 0, + "39": 0.8051268337578901, + "40": 0.528458780001725, + "41": 0.3837401264416687, + "42": 0.7040883580503492, + "43": 1.3042962628156052, + "44": 0.28483672731689186, + "45": 0.1427084422478072, + "46": 0.06157180030795967, + "47": 0, + "48": 0, + "49": 0.0640012840044182, + "50": 0 +} + +export const math = { + "comment-priorities": { + "0": 1.8386278895890114, + "1": 1.6235208583162395, + "2": 1.6305252840599262, + "3": 2.087089180443183, + "4": 1.3098325481458581, + "5": 2.23502628041467, + "7": 1.8136476648576936, + "8": 1.4197952079415055, + "9": 1.3723720662646226, + "10": 3.4148251721822196, + "11": 3.655344911927386, + "13": 1.3031884392867672, + "14": 1.5416396811879933, + "15": 3.6058070397499837, + "16": 1.6732814225321606, + "17": 1.6143376353809213, + "18": 1.224040372324852, + "21": 0.16947656421745647, + "22": 0.5070950882306116, + "24": 2.276726889030155, + "25": 1.0994171495341387, + "26": 0.3475208083008897, + "27": 1.2792229142613771, + "28": 2.003258519522552, + "29": 3.7005785495174486, + "30": 1.4268271588273578, + "31": 2.0324099101710544, + "32": 2.6563117149876367, + "33": 4.514773293191842, + "34": 2.0296110425068083, + "35": 2.3125239050363113, + "36": 1.8454198524824805, + "37": 3.4635776544297494, + "38": 12.529726250088048, + "39": 0.28120465467431216, + "40": 4.410727832912038, + "41": 0.5436943579116422, + "42": 4.851730093586537, + "43": 4.073248043943424, + "44": 3.8562248895203615, + "45": 2.021621152726477, + "46": 7.163523657237001, + "47": 16.143843865255583, + "48": 16.143843865255583, + "49": 3.529606475676068, + "50": 12.529726250088048 + }, + "user-vote-counts": { + "0": 42, + "1": 1, + "2": 25, + "3": 22, + "4": 2, + "5": 5, + "6": 25, + "7": 25, + "8": 36, + "9": 33, + "10": 34, + "11": 24, + "12": 37, + "13": 38, + "14": 24, + "15": 12, + "16": 10, + "17": 37, + "18": 20, + "19": 40, + "20": 37, + "21": 11, + "22": 40, + "23": 6, + "24": 24, + "25": 42, + "26": 40, + "27": 3, + "28": 43, + "29": 12 + }, + "meta-tids": [ + 19 + ], + "pca": { + "center": [ + -0.4736842105263155, + -0.6190476190476192, + 0.34999999999999987, + -0.8000000000000003, + -0.8695652173913044, + -0.4761904761904762, + -0.8999999999999996, + -0.2272727272727273, + -0.7142857142857144, + -0.05000000000000001, + -0.25, + -0.6000000000000001, + -0.47368421052631554, + -0.3333333333333333, + -0.6190476190476192, + -0.7142857142857144, + -0.16666666666666669, + -0.11764705882352942, + -0.05, + -0.75, + -0.1666666666666667, + -0.34999999999999987, + 0.05263157894736841, + -0.4090909090909089, + -0.09090909090909088, + 0, + -0.25, + 0.388888888888889, + -0.125, + -0.125, + 0, + -0.5789473684210527, + 0.14285714285714288, + 0, + -0.14285714285714285, + -0.625, + -0.1333333333333333, + -0.5, + -0.18181818181818177, + -0.5, + -0.5714285714285714, + -0.7142857142857144, + -1, + -1, + -0.5, + -1 + ], + "comps": [ + [ + -0.16970395777709227, + -0.15465162823008013, + 0.01732569361823226, + -0.06376510560092909, + -0.05925720148168942, + -0.26128310365047, + 0.007170152638865003, + -0.05400731043458847, + -0.03432142369575052, + -0.3588067108674857, + -0.2623006430508646, + -0.15784863735566565, + -0.18474840066720372, + -0.2576002563008507, + -0.12432893680392279, + -0.09501254545191216, + -0.15989504200741717, + -0.08344920633619238, + 0.06152072957017326, + -0.1462722493060385, + 0.12433927592875535, + -0.1326052110365999, + -0.1864528123593041, + -0.14507899383813913, + -0.007830679328369724, + 0, + -0.30310093222757956, + 0.0031269047201053497, + -0.22388388541244317, + -0.058585437736948784, + -0.13974050098555243, + -0.12420072469611282, + -0.33916940984505656, + 0, + -0.0004232911085997396, + -0.17727646114714085, + 0.06377851423913922, + -0.18433180887008002, + 0.007417232452423054, + -0.08341341522143178, + -0.023382227358043763, + -0.012123106873381306, + 0, + 0, + -0.01794753830786796, + 0 + ], + [ + 0.15733877331316856, + 0.18883062900786426, + -0.30695479848755985, + 0.22901846959704922, + -0.03946125878846343, + 0.027511629363060144, + -0.05053973528095085, + 0.16589371146452428, + -0.08088914846740661, + 0.008878353881308648, + 0.26879068031709397, + -0.04391975001921987, + 0.03632463370937502, + 0.13923789809826229, + 0.0937034150367296, + -0.1227608351878517, + -0.1158933842006997, + -0.04437574320531472, + -0.06900248432425901, + 0.10825271397698191, + -0.016566406667102285, + -0.0056589863868856186, + -0.25109835620595866, + -0.1939586604603697, + 0.3548918119651992, + 0, + -0.12213830023364777, + -0.36758498835762776, + -0.18570044418856327, + 0.12660432748759584, + -0.23651445188361714, + -0.07157159811316015, + -0.1282852636451983, + 0, + 0.13849374100555237, + 0.10837447352708428, + 0.013938829401049728, + 0.09554918364127225, + 0.23492604022142138, + -0.009856739390378176, + -0.04317064367205261, + -0.029370276173048496, + 0, + 0, + -0.005837300180896131, + 0 + ] + ], + "comment-projection": [ + [ + 0.60578328478242, + 0.39958033336533877, + -0.15863657126226133, + 0.08649519751886595, + 0.052421986216350906, + 0.9282471670332718, + -0.004863034122615908, + 0.28304644612563096, + 0.06650834885578134, + 2.3118682375999517, + 1.334257136967688, + 0.42823261837311927, + 0.6594866406208509, + 1.1647532946466759, + 0.3212342384210788, + 0.18411612451187312, + 0.9037174479666497, + 0.49939416547232174, + -0.39639119431015096, + 0.24801666554187976, + -0.7027583326764026, + 0.5845919941759204, + 1.3311415786342502, + 0.5814389512632157, + 0.048282046542764745, + 0, + 1.5417979054202495, + -0.029455138385481163, + 1.3286475901749708, + 0.347677549570598, + 0.9477661896912584, + 0.3546822311715086, + 2.628981551715462, + 0, + 0.0024607714092397272, + 0.4508802966527231, + -0.3748913388161897, + 0.62509957707163, + -0.04115955113499162, + 0.2828686535255972, + 0.06796542072116235, + 0.02349226035313315, + 0, + 0, + 0.0608630635943711, + 0 + ], + [ + -0.5616439367105545, + -0.4878901473723586, + 2.810522789882575, + -0.3106557666075055, + 0.034909471128634025, + -0.09773916361194454, + 0.03427771619352084, + -0.8694309175328262, + 0.15674768484570367, + -0.05720512944349643, + -1.367270317724449, + 0.11915129496268857, + -0.1296661328069143, + -0.6295715807061234, + -0.2421057071713684, + 0.23788699807087593, + 0.655022645425218, + 0.2655625885278295, + 0.4445977374254256, + -0.18355140694019206, + 0.09363236387577847, + 0.024947723479816844, + 1.792665168430676, + 0.777335968102424, + -2.1881757973247504, + 0, + 0.6212866918219688, + 3.462614844284294, + 1.1020464791873015, + -0.7513382855234654, + 1.604119058452695, + 0.20438829297813807, + 0.9943691314445238, + 0, + -0.8051230732261228, + -0.2756367904530597, + -0.08193270849955325, + -0.3240230465366716, + -1.30364666706325, + 0.03342582955160689, + 0.12548466470047695, + 0.05691397277175325, + 0, + 0, + 0.019795248018697188, + 0 + ] + ], + "comment-extremity": [ + 0.8260855281177053, + 0.6306355831344891, + 2.814996254738393, + 0.32247236241316024, + 0.06298202770114834, + 0.9333786729987231, + 0.03462096082319622, + 0.9143442519239249, + 0.17027388869703525, + 2.312575874400266, + 1.9104110105627867, + 0.44449995110234064, + 0.6721130374828893, + 1.3240130711677636, + 0.4022519227783988, + 0.30081384801309347, + 1.1161361439265396, + 0.5656129603654764, + 0.595645135168949, + 0.3085504583957649, + 0.7089684715917088, + 0.5851240796287611, + 2.232842651973817, + 0.9707329505851755, + 2.1887084036061464, + 0, + 1.6622689116365483, + 3.462740123808781, + 1.726212866701811, + 0.8278821762598564, + 1.8631850965518824, + 0.4093581065709053, + 2.8107497165044735, + 0, + 0.8051268337578901, + 0.528458780001725, + 0.3837401264416687, + 0.7040883580503492, + 1.3042962628156052, + 0.28483672731689186, + 0.1427084422478072, + 0.06157180030795967, + 0, + 0, + 0.0640012840044182, + 0 + ] + }, + "group-clusters": [ + { + "id": 0, + "members": [ + 0, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 12, + 14, + 15, + 22, + 25, + 26, + 27 + ], + "center": [ + 1.2149460883682703, + -0.7258950000036276 + ] + }, + { + "id": 1, + "members": [ + 1, + 10, + 11, + 13, + 16, + 17, + 18, + 21, + 23, + 24 + ], + "center": [ + -2.493115238527354, + -0.043802215235604305 + ] + }, + { + "id": 2, + "members": [ + 9, + 19, + 20 + ], + "center": [ + 1.4794580708555858, + 3.3169789987450615 + ] + } + ], + "n": 30, + "consensus": { + "agree": [ + { + "tid": 7, + "n-success": 19, + "n-trials": 20, + "p-success": 0.9090909090909091, + "p-test": 4.1461399144838555 + }, + { + "tid": 4, + "n-success": 21, + "n-trials": 23, + "p-success": 0.88, + "p-test": 4.08248290463863 + }, + { + "tid": 3, + "n-success": 17, + "n-trials": 20, + "p-success": 0.8181818181818182, + "p-test": 3.273268353539885 + }, + { + "tid": 24, + "n-success": 17, + "n-trials": 20, + "p-success": 0.8181818181818182, + "p-test": 3.273268353539885 + }, + { + "tid": 9, + "n-success": 17, + "n-trials": 21, + "p-success": 0.782608695652174, + "p-test": 2.9848100289785466 + } + ], + "disagree": [] + }, + "n-cmts": 46, + "repness": { + "0": [ + { + "tid": 1, + "n-agree": 13, + "p-test": 3.7416573867739413, + "repness-test": 3.5535126, + "n-success": 13, + "repful-for": "agree", + "n-trials": 13, + "repness": 3.111111111111111, + "best-agree": true, + "p-success": 0.9333333333333333 + }, + { + "tid": 5, + "n-success": 11, + "n-trials": 11, + "p-success": 0.9230769230769231, + "p-test": 3.4641016151377544, + "repness": 2.769230769230769, + "repness-test": 3.3131967, + "repful-for": "agree" + }, + { + "tid": 15, + "n-success": 11, + "n-trials": 12, + "p-success": 0.8571428571428571, + "p-test": 3.05085107923876, + "repness": 2.228571428571429, + "repness-test": 2.711848, + "repful-for": "agree" + }, + { + "tid": 10, + "n-success": 8, + "n-trials": 11, + "p-success": 0.6923076923076923, + "p-test": 1.7320508075688772, + "repness": 3.807692307692308, + "repness-test": 2.5690465, + "repful-for": "agree" + }, + { + "tid": 2, + "n-success": 9, + "n-trials": 10, + "p-success": 0.8333333333333333, + "p-test": 2.7136021011998723, + "repness": 2.5, + "repness-test": 2.6592157, + "repful-for": "disagree" + } + ], + "1": [ + { + "tid": 7, + "n-agree": 6, + "p-test": 2.6457513110645907, + "repness-test": 0.6992059, + "n-success": 6, + "repful-for": "agree", + "n-trials": 6, + "repness": 1, + "best-agree": true, + "p-success": 0.875 + }, + { + "tid": 25, + "n-success": 4, + "n-trials": 5, + "p-success": 0.7142857142857143, + "p-test": 1.6329931618554516, + "repness": 2, + "repness-test": 1.8208588, + "repful-for": "agree" + }, + { + "tid": 37, + "n-success": 9, + "n-trials": 9, + "p-success": 0.9090909090909091, + "p-test": 3.1622776601683795, + "repness": 4.242424242424242, + "repness-test": 3.6891012, + "repful-for": "disagree" + }, + { + "tid": 15, + "n-success": 7, + "n-trials": 9, + "p-success": 0.7272727272727273, + "p-test": 1.897366596101028, + "repness": 5.818181818181818, + "repness-test": 3.3333333, + "repful-for": "disagree" + }, + { + "tid": 10, + "n-success": 6, + "n-trials": 7, + "p-success": 0.7777777777777778, + "p-test": 2.121320343559643, + "repness": 3.888888888888889, + "repness-test": 2.9939423, + "repful-for": "disagree" + } + ], + "2": [ + { + "tid": 32, + "n-agree": 3, + "p-test": 2, + "repness-test": 3.313273, + "n-success": 3, + "repful-for": "agree", + "n-trials": 3, + "repness": 6.4, + "best-agree": true, + "p-success": 0.8 + }, + { + "tid": 2, + "n-success": 2, + "n-trials": 2, + "p-success": 0.75, + "p-test": 1.7320508075688772, + "repness": 3.75, + "repness-test": 2.7282977, + "repful-for": "agree" + }, + { + "tid": 35, + "n-success": 3, + "n-trials": 3, + "p-success": 0.8, + "p-test": 2, + "repness": 2.72, + "repness-test": 2.4720662, + "repful-for": "agree" + }, + { + "tid": 27, + "n-success": 2, + "n-trials": 2, + "p-success": 0.75, + "p-test": 1.7320508075688772, + "repness": 2.85, + "repness-test": 2.384848, + "repful-for": "agree" + }, + { + "tid": 43, + "n-success": 2, + "n-trials": 2, + "p-success": 0.75, + "p-test": 1.7320508075688772, + "repness": 4.125, + "repness-test": 2.4979992, + "repful-for": "disagree" + } + ] + }, + "group-aware-consensus": { + "0": 0.10416666666666667, + "1": 0.0875, + "2": 0.037500000000000006, + "3": 0.1782407407407407, + "4": 0.525974025974026, + "5": 0.13846153846153847, + "7": 0.5625, + "8": 0.07407407407407407, + "9": 0.3846153846153846, + "10": 0.03846153846153846, + "11": 0.08184523809523808, + "13": 0.25, + "14": 0.14423076923076925, + "15": 0.1753246753246753, + "16": 0.2857142857142857, + "17": 0.3928571428571428, + "18": 0.09375, + "21": 0.029761904761904757, + "22": 0.07692307692307693, + "24": 0.3819444444444445, + "25": 0.11904761904761903, + "26": 0.03846153846153846, + "27": 0.03472222222222222, + "28": 0.24107142857142855, + "29": 0.06993006993006994, + "30": 0.07142857142857142, + "31": 0.09600000000000003, + "32": 0.020000000000000004, + "33": 0.11111111111111112, + "34": 0.11428571428571428, + "35": 0.08000000000000002, + "36": 0.2454545454545455, + "37": 0.039772727272727265, + "38": 0.16666666666666666, + "39": 0.03571428571428571, + "40": 0.29220779220779225, + "41": 0.05555555555555555, + "42": 0.19047619047619047, + "43": 0.07142857142857142, + "44": 0.11904761904761903, + "45": 0.16666666666666666, + "46": 0.2962962962962963, + "47": 0.25, + "48": 0.25, + "49": 0.125, + "50": 0.16666666666666666 + }, + "mod-in": [ + 0, + 7, + 27, + 1, + 24, + 39, + 46, + 4, + 15, + 48, + 21, + 31, + 32, + 40, + 33, + 13, + 22, + 36, + 41, + 43, + 29, + 44, + 28, + 25, + 34, + 17, + 3, + 2, + 47, + 35, + 19, + 11, + 9, + 5, + 14, + 45, + 26, + 16, + 10, + 18, + 42, + 37, + 8, + 49 + ], + "votes-base": { + "0": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "1": { + "A": [ + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "2": { + "A": [ + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "3": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "4": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "5": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "7": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "8": { + "A": [ + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "D": [ + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1 + ] + }, + "9": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "10": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "11": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "13": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "14": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "15": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0 + ], + "D": [ + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "16": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1 + ], + "D": [ + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "17": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "18": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0 + ], + "D": [ + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "21": { + "A": [ + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "22": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0 + ], + "S": [ + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1 + ] + }, + "24": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "25": { + "A": [ + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "26": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "27": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "28": { + "A": [ + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "29": { + "A": [ + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "D": [ + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0 + ], + "S": [ + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "30": { + "A": [ + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "31": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "32": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "33": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0 + ], + "D": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "34": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "35": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "36": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "37": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "38": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "39": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "40": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1 + ] + }, + "41": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "42": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "43": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "44": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "45": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 0 + ] + }, + "46": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 1, + 0 + ] + }, + "47": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1 + ] + }, + "48": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 1 + ] + }, + "49": { + "A": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1 + ] + }, + "50": { + "A": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "D": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "S": [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + }, + "base-clusters": { + "id": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27 + ], + "members": [ + [ + 0 + ], + [ + 2 + ], + [ + 1 + ], + [ + 3 + ], + [ + 4 + ], + [ + 6 + ], + [ + 7 + ], + [ + 8 + ], + [ + 9 + ], + [ + 5 + ], + [ + 10 + ], + [ + 11 + ], + [ + 12 + ], + [ + 13 + ], + [ + 14 + ], + [ + 15 + ], + [ + 16 + ], + [ + 17 + ], + [ + 18 + ], + [ + 19 + ], + [ + 20 + ], + [ + 21 + ], + [ + 22 + ], + [ + 24 + ], + [ + 25 + ], + [ + 26 + ], + [ + 28 + ], + [ + 29 + ] + ], + "x": [ + 1.179229056874007, + -0.741089797391672, + 0.23069781303135872, + 1.2374602288050658, + 0.1634169418637999, + 2.607410376808897, + -0.3690403533627668, + 2.765220565943106, + 1.0316601346301837, + 1.5634251334102856, + -4.239348931860806, + -2.1378570128849117, + 2.3333674150471357, + -4.2602730290596895, + 0.667597590739773, + 0.35184993790027763, + -2.2864006138140756, + -3.0872147233169156, + -1.9195321620484458, + 1.8396710498283027, + 1.0352780293281691, + -2.447364155095016, + 0.5304411363810324, + -1.9886644521543215, + -1.8234075076476886, + 1.6739794773733927, + 3.3822666705324544, + 0.43863433295634 + ], + "y": [ + -1.5228915793355702, + 0.743171883814533, + -0.28168350792039737, + -2.2209343125566328, + -0.5019661742793604, + 0.2717266369626228, + 0.10147738156225365, + -0.6111808605675436, + 0.369169875909347, + 2.2824249440862774, + -1.586497042842393, + -0.33620059518874845, + 0.7262940273597082, + 3.0780400053015864, + -1.76698648916633, + -0.6332423456765759, + -1.8379608240669254, + -1.002573285301031, + 0.7612876880138849, + 3.4893669509255725, + 4.179145101223336, + -0.8532007642727052, + -2.019318193693788, + 0.6040554641576954, + -0.008144681971939714, + -1.9556993958727298, + 0.11168613351847693, + -0.9548761962978954 + ], + "count": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + "mod-out": [ + 20, + 6, + 12, + 23, + 19, + 38, + 30 + ], + "group-votes": { + "0": { + "n-members": 15, + "votes": { + "0": { + "A": 8, + "D": 1, + "S": 10 + }, + "1": { + "A": 13, + "D": 0, + "S": 13 + }, + "2": { + "A": 1, + "D": 9, + "S": 10 + }, + "3": { + "A": 10, + "D": 0, + "S": 10 + }, + "4": { + "A": 11, + "D": 0, + "S": 12 + }, + "5": { + "A": 11, + "D": 0, + "S": 11 + }, + "7": { + "A": 11, + "D": 1, + "S": 12 + }, + "8": { + "A": 9, + "D": 4, + "S": 13 + }, + "9": { + "A": 9, + "D": 1, + "S": 11 + }, + "10": { + "A": 8, + "D": 2, + "S": 11 + }, + "11": { + "A": 10, + "D": 1, + "S": 12 + }, + "13": { + "A": 9, + "D": 0, + "S": 10 + }, + "14": { + "A": 9, + "D": 1, + "S": 11 + }, + "15": { + "A": 11, + "D": 1, + "S": 12 + }, + "16": { + "A": 11, + "D": 1, + "S": 12 + }, + "17": { + "A": 10, + "D": 1, + "S": 12 + }, + "18": { + "A": 5, + "D": 2, + "S": 10 + }, + "21": { + "A": 4, + "D": 1, + "S": 10 + }, + "22": { + "A": 5, + "D": 5, + "S": 11 + }, + "24": { + "A": 10, + "D": 0, + "S": 10 + }, + "25": { + "A": 3, + "D": 4, + "S": 10 + }, + "26": { + "A": 8, + "D": 0, + "S": 11 + }, + "27": { + "A": 4, + "D": 4, + "S": 10 + }, + "28": { + "A": 8, + "D": 2, + "S": 12 + }, + "29": { + "A": 7, + "D": 3, + "S": 11 + }, + "30": { + "A": 3, + "D": 1, + "S": 5 + }, + "31": { + "A": 5, + "D": 0, + "S": 8 + }, + "32": { + "A": 0, + "D": 6, + "S": 8 + }, + "33": { + "A": 4, + "D": 2, + "S": 7 + }, + "34": { + "A": 4, + "D": 3, + "S": 8 + }, + "35": { + "A": 2, + "D": 4, + "S": 8 + }, + "36": { + "A": 8, + "D": 1, + "S": 9 + }, + "37": { + "A": 6, + "D": 2, + "S": 10 + }, + "38": { + "A": 0, + "D": 0, + "S": 0 + }, + "39": { + "A": 2, + "D": 1, + "S": 7 + }, + "40": { + "A": 9, + "D": 0, + "S": 9 + }, + "41": { + "A": 3, + "D": 3, + "S": 7 + }, + "42": { + "A": 7, + "D": 0, + "S": 7 + }, + "43": { + "A": 3, + "D": 0, + "S": 4 + }, + "44": { + "A": 4, + "D": 0, + "S": 5 + }, + "45": { + "A": 2, + "D": 0, + "S": 4 + }, + "46": { + "A": 3, + "D": 0, + "S": 4 + }, + "47": { + "A": 2, + "D": 0, + "S": 2 + }, + "48": { + "A": 2, + "D": 0, + "S": 2 + }, + "49": { + "A": 1, + "D": 0, + "S": 2 + }, + "50": { + "A": 1, + "D": 0, + "S": 1 + } + }, + "id": 0 + }, + "1": { + "n-members": 10, + "votes": { + "0": { + "A": 4, + "D": 2, + "S": 7 + }, + "1": { + "A": 2, + "D": 1, + "S": 6 + }, + "2": { + "A": 2, + "D": 3, + "S": 8 + }, + "3": { + "A": 6, + "D": 1, + "S": 7 + }, + "4": { + "A": 8, + "D": 1, + "S": 9 + }, + "5": { + "A": 1, + "D": 4, + "S": 8 + }, + "7": { + "A": 6, + "D": 0, + "S": 6 + }, + "8": { + "A": 3, + "D": 2, + "S": 7 + }, + "9": { + "A": 5, + "D": 1, + "S": 7 + }, + "10": { + "A": 0, + "D": 6, + "S": 7 + }, + "11": { + "A": 4, + "D": 5, + "S": 10 + }, + "13": { + "A": 3, + "D": 2, + "S": 8 + }, + "14": { + "A": 2, + "D": 2, + "S": 6 + }, + "15": { + "A": 2, + "D": 7, + "S": 9 + }, + "16": { + "A": 3, + "D": 2, + "S": 7 + }, + "17": { + "A": 5, + "D": 1, + "S": 7 + }, + "18": { + "A": 1, + "D": 3, + "S": 6 + }, + "21": { + "A": 1, + "D": 2, + "S": 5 + }, + "22": { + "A": 2, + "D": 2, + "S": 7 + }, + "24": { + "A": 4, + "D": 2, + "S": 7 + }, + "25": { + "A": 4, + "D": 1, + "S": 5 + }, + "26": { + "A": 1, + "D": 2, + "S": 7 + }, + "27": { + "A": 0, + "D": 3, + "S": 7 + }, + "28": { + "A": 4, + "D": 3, + "S": 8 + }, + "29": { + "A": 4, + "D": 4, + "S": 9 + }, + "30": { + "A": 0, + "D": 1, + "S": 2 + }, + "31": { + "A": 1, + "D": 5, + "S": 8 + }, + "32": { + "A": 1, + "D": 4, + "S": 6 + }, + "33": { + "A": 1, + "D": 4, + "S": 6 + }, + "34": { + "A": 3, + "D": 2, + "S": 5 + }, + "35": { + "A": 2, + "D": 4, + "S": 7 + }, + "36": { + "A": 5, + "D": 2, + "S": 8 + }, + "37": { + "A": 0, + "D": 9, + "S": 9 + }, + "38": { + "A": 1, + "D": 0, + "S": 1 + }, + "39": { + "A": 2, + "D": 1, + "S": 5 + }, + "40": { + "A": 2, + "D": 3, + "S": 5 + }, + "41": { + "A": 3, + "D": 1, + "S": 6 + }, + "42": { + "A": 1, + "D": 3, + "S": 5 + }, + "43": { + "A": 2, + "D": 1, + "S": 5 + }, + "44": { + "A": 0, + "D": 1, + "S": 2 + }, + "45": { + "A": 1, + "D": 0, + "S": 2 + }, + "46": { + "A": 1, + "D": 0, + "S": 1 + }, + "47": { + "A": 1, + "D": 0, + "S": 1 + }, + "48": { + "A": 1, + "D": 0, + "S": 1 + }, + "49": { + "A": 0, + "D": 0, + "S": 0 + }, + "50": { + "A": 0, + "D": 0, + "S": 0 + } + }, + "id": 1 + }, + "2": { + "n-members": 3, + "votes": { + "0": { + "A": 0, + "D": 0, + "S": 2 + }, + "1": { + "A": 0, + "D": 1, + "S": 2 + }, + "2": { + "A": 2, + "D": 0, + "S": 2 + }, + "3": { + "A": 0, + "D": 0, + "S": 2 + }, + "4": { + "A": 2, + "D": 0, + "S": 2 + }, + "5": { + "A": 2, + "D": 0, + "S": 2 + }, + "7": { + "A": 2, + "D": 0, + "S": 2 + }, + "8": { + "A": 0, + "D": 1, + "S": 2 + }, + "9": { + "A": 2, + "D": 0, + "S": 2 + }, + "10": { + "A": 1, + "D": 0, + "S": 2 + }, + "11": { + "A": 0, + "D": 2, + "S": 2 + }, + "13": { + "A": 2, + "D": 0, + "S": 2 + }, + "14": { + "A": 1, + "D": 0, + "S": 2 + }, + "15": { + "A": 2, + "D": 0, + "S": 2 + }, + "16": { + "A": 2, + "D": 0, + "S": 2 + }, + "17": { + "A": 2, + "D": 0, + "S": 2 + }, + "18": { + "A": 2, + "D": 0, + "S": 2 + }, + "21": { + "A": 0, + "D": 0, + "S": 2 + }, + "22": { + "A": 1, + "D": 0, + "S": 2 + }, + "24": { + "A": 2, + "D": 0, + "S": 2 + }, + "25": { + "A": 1, + "D": 0, + "S": 2 + }, + "26": { + "A": 0, + "D": 0, + "S": 2 + }, + "27": { + "A": 2, + "D": 0, + "S": 2 + }, + "28": { + "A": 2, + "D": 0, + "S": 2 + }, + "29": { + "A": 0, + "D": 2, + "S": 2 + }, + "30": { + "A": 0, + "D": 0, + "S": 0 + }, + "31": { + "A": 3, + "D": 0, + "S": 3 + }, + "32": { + "A": 3, + "D": 0, + "S": 3 + }, + "33": { + "A": 3, + "D": 0, + "S": 3 + }, + "34": { + "A": 1, + "D": 1, + "S": 3 + }, + "35": { + "A": 3, + "D": 0, + "S": 3 + }, + "36": { + "A": 1, + "D": 0, + "S": 2 + }, + "37": { + "A": 2, + "D": 0, + "S": 2 + }, + "38": { + "A": 0, + "D": 0, + "S": 0 + }, + "39": { + "A": 0, + "D": 0, + "S": 2 + }, + "40": { + "A": 2, + "D": 0, + "S": 2 + }, + "41": { + "A": 0, + "D": 0, + "S": 2 + }, + "42": { + "A": 2, + "D": 0, + "S": 2 + }, + "43": { + "A": 0, + "D": 2, + "S": 2 + }, + "44": { + "A": 1, + "D": 0, + "S": 1 + }, + "45": { + "A": 1, + "D": 0, + "S": 1 + }, + "46": { + "A": 1, + "D": 0, + "S": 1 + }, + "47": { + "A": 0, + "D": 0, + "S": 0 + }, + "48": { + "A": 0, + "D": 0, + "S": 0 + }, + "49": { + "A": 0, + "D": 0, + "S": 0 + }, + "50": { + "A": 0, + "D": 0, + "S": 0 + } + }, + "id": 2 + } + }, + "lastModTimestamp": null, + "in-conv": [ + 0, + 7, + 20, + 1, + 24, + 4, + 15, + 21, + 13, + 22, + 29, + 6, + 28, + 25, + 17, + 3, + 12, + 2, + 19, + 11, + 9, + 5, + 14, + 26, + 16, + 10, + 18, + 8 + ], + "tids": [ + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 10, + 11, + 13, + 14, + 15, + 16, + 17, + 18, + 21, + 22, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50 + ], + "lastVoteTimestamp": 1718226369862, + "math_tick": 1116 + } \ No newline at end of file From 600777f1585d4099168805ded81e97c86f336734 Mon Sep 17 00:00:00 2001 From: thomassth Date: Sun, 20 Oct 2024 02:59:24 -0400 Subject: [PATCH 2/7] Participants Graph --- .../ParticipantsGraph.stories.js | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 stories/compdem/client-report/ParticipantsGraph.stories.js diff --git a/stories/compdem/client-report/ParticipantsGraph.stories.js b/stories/compdem/client-report/ParticipantsGraph.stories.js new file mode 100644 index 0000000..3259eb9 --- /dev/null +++ b/stories/compdem/client-report/ParticipantsGraph.stories.js @@ -0,0 +1,82 @@ +import React from 'react' +import ParticipantsGraph from '../../../codebases/compdem/client-report/src/components/participantsGraph/participantsGraph'; + +import '../../../codebases/compdem/client-report/src/index.css'; +import { comments, math } from './testData'; + +export default { + title: 'compdem/client-report/ParticipantsGraph', + component: ParticipantsGraph, +} + +const Template = (args) => + +export const AllNull = Template.bind({}) +AllNull.args = { + comments: null, + groupNames: null, + badTids: null, + colorBlindMode: null, + formatTid: null, + repfulAgreeTidsByGroup: null, + math: null, + renderHeading: null, + report: null, + voteColors: null, +} + +var maxTid = -1; +for (let i = 0; i < comments.length; i++) { + if (comments[i].tid > maxTid) { + maxTid = comments[i].tid; + } +} +var tidWidth = ("" + maxTid).length; +function pad(n, width, z) { + z = z || "0"; + n = n + ""; + return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; +} +function formatTid(tid) { + // let padded = "" + tid; + // return '#' + pad(""+tid, tidWidth); + return pad("" + tid, tidWidth); +} + +export const Default = Template.bind({}) +Default.args = { + comments: comments, + groupNames: {}, + badTids: {}, + colorBlindMode: false, + formatTid: formatTid, + repfulAgreeTidsByGroup: null, + math: math, + renderHeading: true, + report: { + "report_id": "r3bpnywujybyru4rkx92i", + "created": "1718153339926", + "modified": "1718153339926", + "label_x_neg": null, + "label_y_neg": null, + "label_y_pos": null, + "label_x_pos": null, + "label_group_0": null, + "label_group_1": null, + "label_group_2": null, + "label_group_3": null, + "label_group_4": null, + "label_group_5": null, + "label_group_6": null, + "label_group_7": null, + "label_group_8": null, + "label_group_9": null, + "report_name": null, + "conversation_id": "5esrbenwxs" + }, + voteColors: { + "agree": "rgb(46, 204, 113)", + "disagree": "rgb(231, 76, 60)", + "pass": "rgb(230,230,230)" + }, +} From 4a58a6cde86745115e205bfdf36202b31db5660a Mon Sep 17 00:00:00 2001 From: thomassth Date: Mon, 21 Oct 2024 00:42:49 -0400 Subject: [PATCH 3/7] use pre-existing test data --- .storybook/utils.js | 24 + .../compdem/client-report/Beeswarm.stories.js | 18 +- .../ParticipantsGraph.stories.js | 41 +- stories/compdem/client-report/testData.js | 7212 ----------------- 4 files changed, 41 insertions(+), 7254 deletions(-) delete mode 100644 stories/compdem/client-report/testData.js diff --git a/.storybook/utils.js b/.storybook/utils.js index 250bd88..d2bb957 100644 --- a/.storybook/utils.js +++ b/.storybook/utils.js @@ -25,6 +25,30 @@ export const getComments = () => { return commentsData } +export const getReport = () => { + return { + "report_id": "r3bpnywujybyru4rkx92i", // example; might not match + "created": participationData.conversation.created, + "modified": participationData.conversation.modified, + "label_x_neg": null, + "label_y_neg": null, + "label_y_pos": null, + "label_x_pos": null, + "label_group_0": null, + "label_group_1": null, + "label_group_2": null, + "label_group_3": null, + "label_group_4": null, + "label_group_5": null, + "label_group_6": null, + "label_group_7": null, + "label_group_8": null, + "label_group_9": null, + "report_name": null, + "conversation_id": participationData.conversation.conversation_id + } +} + export const getVoteColors = () => ({ agree: globals.brandColors.agree, disagree: globals.brandColors.disagree, diff --git a/stories/compdem/client-report/Beeswarm.stories.js b/stories/compdem/client-report/Beeswarm.stories.js index 9196dc8..880c174 100644 --- a/stories/compdem/client-report/Beeswarm.stories.js +++ b/stories/compdem/client-report/Beeswarm.stories.js @@ -1,9 +1,8 @@ import React from 'react' import Beeswarm from '../../../codebases/compdem/client-report/src/components/beeswarm/beeswarm' -import { getMath, getConversation, getExtremity } from '../../../.storybook/utils' +import { getMath, getConversation, getExtremity, getComments, getVoteColors } from '../../../.storybook/utils' import '../../../codebases/compdem/client-report/src/index.css'; -import { comments, conversation, extremity, math } from './testData'; const mathResult = getMath() @@ -28,16 +27,11 @@ AllNull.args = { export const Default = Template.bind({}) Default.args = { ...AllNull.args, - conversation: conversation, - extremity: extremity, - math: math, - comments: comments, + conversation: getConversation(), + extremity: getExtremity(), + math: mathResult, + comments: getComments(), probabilities: {}, //{this.state.filteredCorrelationMatrix} probabilitiesTids: {}, //{this.state.filteredCorrelationTids} - voteColors: { - "agree": "rgb(46, 204, 113)", - "disagree": "rgb(231, 76, 60)", - "pass": "rgb(230,230,230)" - }, //{this.state.voteColors}, - + voteColors: getVoteColors(), //{this.state.voteColors}, } diff --git a/stories/compdem/client-report/ParticipantsGraph.stories.js b/stories/compdem/client-report/ParticipantsGraph.stories.js index 3259eb9..356c9fa 100644 --- a/stories/compdem/client-report/ParticipantsGraph.stories.js +++ b/stories/compdem/client-report/ParticipantsGraph.stories.js @@ -2,7 +2,7 @@ import React from 'react' import ParticipantsGraph from '../../../codebases/compdem/client-report/src/components/participantsGraph/participantsGraph'; import '../../../codebases/compdem/client-report/src/index.css'; -import { comments, math } from './testData'; +import { getComments, getMath, getReport, getVoteColors } from '../../../.storybook/utils'; export default { title: 'compdem/client-report/ParticipantsGraph', @@ -25,13 +25,17 @@ AllNull.args = { voteColors: null, } -var maxTid = -1; +const comments = getComments(); + +// Logic from client-report/src/components/app.js#L274-291 +let maxTid = -1; for (let i = 0; i < comments.length; i++) { if (comments[i].tid > maxTid) { maxTid = comments[i].tid; } } -var tidWidth = ("" + maxTid).length; +const tidWidth = ("" + maxTid).length; + function pad(n, width, z) { z = z || "0"; n = n + ""; @@ -42,6 +46,7 @@ function formatTid(tid) { // return '#' + pad(""+tid, tidWidth); return pad("" + tid, tidWidth); } +// end copied logic export const Default = Template.bind({}) Default.args = { @@ -51,32 +56,8 @@ Default.args = { colorBlindMode: false, formatTid: formatTid, repfulAgreeTidsByGroup: null, - math: math, + math: getMath(), renderHeading: true, - report: { - "report_id": "r3bpnywujybyru4rkx92i", - "created": "1718153339926", - "modified": "1718153339926", - "label_x_neg": null, - "label_y_neg": null, - "label_y_pos": null, - "label_x_pos": null, - "label_group_0": null, - "label_group_1": null, - "label_group_2": null, - "label_group_3": null, - "label_group_4": null, - "label_group_5": null, - "label_group_6": null, - "label_group_7": null, - "label_group_8": null, - "label_group_9": null, - "report_name": null, - "conversation_id": "5esrbenwxs" - }, - voteColors: { - "agree": "rgb(46, 204, 113)", - "disagree": "rgb(231, 76, 60)", - "pass": "rgb(230,230,230)" - }, + report: getReport(), + voteColors: getVoteColors(), } diff --git a/stories/compdem/client-report/testData.js b/stories/compdem/client-report/testData.js deleted file mode 100644 index 772a47c..0000000 --- a/stories/compdem/client-report/testData.js +++ /dev/null @@ -1,7212 +0,0 @@ -// data source: https://pol.is/report/r3bpnywujybyru4rkx92i - -export const comments = [ - { - "txt": "Developers should be allowed to build low-rise apartment buildings in 90% of Toronto's neighbourhoods.", - "tid": 1, - "created": "1717704584359", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 15, - "disagree_count": 2, - "pass_count": 4, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.0875, - "agreed": 15, - "disagreed": 2, - "saw": 21, - "pctAgreed": 0.7142857142857143, - "pctDisagreed": 0.09523809523809523, - "pctVoted": 0.19047619047619047 - }, - { - "txt": "The city should increase the supply of affordable housing units by incentivizing developers to build more affordable homes.", - "tid": 14, - "created": "1717705772799", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 12, - "disagree_count": 3, - "pass_count": 4, - "count": 19, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.14423076923076925, - "agreed": 12, - "disagreed": 3, - "saw": 19, - "pctAgreed": 0.631578947368421, - "pctDisagreed": 0.15789473684210525, - "pctVoted": 0.21052631578947367 - }, - { - "txt": "We need rent-control on condo fees.", - "tid": 43, - "created": "1717958584421", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 5, - "disagree_count": 3, - "pass_count": 3, - "count": 11, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.07142857142857142, - "agreed": 5, - "disagreed": 3, - "saw": 11, - "pctAgreed": 0.45454545454545453, - "pctDisagreed": 0.2727272727272727, - "pctVoted": 0.2727272727272727 - }, - { - "txt": "The zoning change to allow for quadplexes in all of Toronto was a step in the right direction.", - "tid": 3, - "created": "1717705051844", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 17, - "disagree_count": 1, - "pass_count": 2, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.1782407407407407, - "agreed": 16, - "disagreed": 1, - "saw": 19, - "pctAgreed": 0.8421052631578947, - "pctDisagreed": 0.05263157894736842, - "pctVoted": 0.10526315789473684 - }, - { - "txt": "We have a lack of affordability requirements in land sales.", - "tid": 26, - "created": "1717706977315", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 9, - "disagree_count": 2, - "pass_count": 9, - "count": 20, - "conversation_id": "5esrbenwxs", - "unc": 0.45, - "group-aware-consensus": 0.03846153846153846, - "agreed": 9, - "disagreed": 2, - "saw": 20, - "pctAgreed": 0.45, - "pctDisagreed": 0.1, - "pctVoted": 0.45 - }, - { - "txt": "Rent control limitations contributes to rising rents and insecurity of tenure.", - "tid": 25, - "created": "1717706386128", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 5, - "pass_count": 5, - "count": 18, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.11904761904761903, - "agreed": 8, - "disagreed": 5, - "saw": 17, - "pctAgreed": 0.47058823529411764, - "pctDisagreed": 0.29411764705882354, - "pctVoted": 0.23529411764705882 - }, - { - "txt": "Toronto is losing private market affordable rental housing faster than it is building it", - "tid": 45, - "created": "1718036137137", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 19, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 4, - "disagree_count": 0, - "pass_count": 3, - "count": 7, - "conversation_id": "5esrbenwxs", - "unc": 0.42857142857142855, - "group-aware-consensus": 0.16666666666666666, - "agreed": 4, - "disagreed": 0, - "saw": 7, - "pctAgreed": 0.5714285714285714, - "pctDisagreed": 0, - "pctVoted": 0.42857142857142855 - }, - { - "txt": "New city bylaw directing development priorities of 4+ floor multi developments with low income to for profit 30/70 split", - "tid": 31, - "created": "1717859468800", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 5, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 10, - "disagree_count": 5, - "pass_count": 5, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.09600000000000003, - "agreed": 9, - "disagreed": 5, - "saw": 19, - "pctAgreed": 0.47368421052631576, - "pctDisagreed": 0.2631578947368421, - "pctVoted": 0.2631578947368421 - }, - { - "txt": "Federal, provincial, and local government need to work together to make building rental buildings profitable.", - "tid": 36, - "created": "1717862453403", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 8, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 14, - "disagree_count": 3, - "pass_count": 2, - "count": 19, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.2454545454545455, - "agreed": 14, - "disagreed": 3, - "saw": 19, - "pctAgreed": 0.7368421052631579, - "pctDisagreed": 0.15789473684210525, - "pctVoted": 0.10526315789473684 - }, - { - "txt": "We need strict regulation controlling condo fees as they are a captive market", - "tid": 47, - "created": "1718132845748", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 25, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 3, - "disagree_count": 0, - "pass_count": 0, - "count": 3, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.25, - "agreed": 3, - "disagreed": 0, - "saw": 3, - "pctAgreed": 1, - "pctDisagreed": 0, - "pctVoted": 0 - }, - { - "txt": "Legislation around Housing Co-ops should be crafted to incentivise more growth in this type of housing.", - "tid": 13, - "created": "1717705740567", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 14, - "disagree_count": 2, - "pass_count": 4, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.25, - "agreed": 14, - "disagreed": 2, - "saw": 20, - "pctAgreed": 0.7, - "pctDisagreed": 0.1, - "pctVoted": 0.2 - }, - { - "txt": "I had to sacrifice on location to find an affordable place.", - "tid": 28, - "created": "1717707119356", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 14, - "disagree_count": 5, - "pass_count": 3, - "count": 22, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.24107142857142855, - "agreed": 14, - "disagreed": 5, - "saw": 22, - "pctAgreed": 0.6363636363636364, - "pctDisagreed": 0.22727272727272727, - "pctVoted": 0.13636363636363635 - }, - { - "txt": "Doug Ford's abolition of rent control for purpose built rentals built after 2018 is helping increase the supply of housing and therefor decreasing the cost of rent for everyone.", - "tid": 2, - "created": "1717704938338", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 5, - "disagree_count": 12, - "pass_count": 3, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.037500000000000006, - "agreed": 5, - "disagreed": 12, - "saw": 20, - "pctAgreed": 0.25, - "pctDisagreed": 0.6, - "pctVoted": 0.15 - }, - { - "txt": "The city should provide more resources and support for community land trusts to preserve affordable housing options.", - "tid": 16, - "created": "1717705788409", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 16, - "disagree_count": 3, - "pass_count": 2, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.2857142857142857, - "agreed": 16, - "disagreed": 3, - "saw": 21, - "pctAgreed": 0.7619047619047619, - "pctDisagreed": 0.14285714285714285, - "pctVoted": 0.09523809523809523 - }, - { - "txt": "Feds must disincentivize speculators in the housing market.", - "tid": 40, - "created": "1717876409622", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 13, - "disagree_count": 3, - "pass_count": 0, - "count": 16, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.29220779220779225, - "agreed": 13, - "disagreed": 3, - "saw": 16, - "pctAgreed": 0.8125, - "pctDisagreed": 0.1875, - "pctVoted": 0 - }, - { - "txt": "We need a dramatic increase in the housing supply.", - "tid": 4, - "created": "1717705098660", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 21, - "disagree_count": 1, - "pass_count": 1, - "count": 23, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.525974025974026, - "agreed": 21, - "disagreed": 1, - "saw": 23, - "pctAgreed": 0.9130434782608695, - "pctDisagreed": 0.043478260869565216, - "pctVoted": 0.043478260869565216 - }, - { - "txt": "experienced rent hikes due to gentrification", - "tid": 18, - "created": "1717705853867", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 5, - "pass_count": 5, - "count": 18, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.09375, - "agreed": 8, - "disagreed": 5, - "saw": 18, - "pctAgreed": 0.4444444444444444, - "pctDisagreed": 0.2777777777777778, - "pctVoted": 0.2777777777777778 - }, - { - "txt": "Freeze condo builds", - "tid": 32, - "created": "1717859478324", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 5, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 4, - "disagree_count": 11, - "pass_count": 3, - "count": 18, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.020000000000000004, - "agreed": 4, - "disagreed": 10, - "saw": 17, - "pctAgreed": 0.23529411764705882, - "pctDisagreed": 0.5882352941176471, - "pctVoted": 0.17647058823529413 - }, - { - "txt": "We need to incentivise developers to build more housing.", - "tid": 11, - "created": "1717705636446", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 14, - "disagree_count": 8, - "pass_count": 2, - "count": 24, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.08184523809523808, - "agreed": 14, - "disagreed": 8, - "saw": 24, - "pctAgreed": 0.5833333333333334, - "pctDisagreed": 0.3333333333333333, - "pctVoted": 0.08333333333333333 - }, - { - "txt": "The city should implement rent control measures to prevent rapid gentrification and displacement of long-time residents.", - "tid": 15, - "created": "1717705782919", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 16, - "disagree_count": 8, - "pass_count": 0, - "count": 24, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.1753246753246753, - "agreed": 15, - "disagreed": 8, - "saw": 23, - "pctAgreed": 0.6521739130434783, - "pctDisagreed": 0.34782608695652173, - "pctVoted": 0 - }, - { - "txt": "Toronto should raise density limits across the city and remove them entirely near transit hubs and along major corridors", - "tid": 48, - "created": "1718133341342", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 25, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 3, - "disagree_count": 0, - "pass_count": 0, - "count": 3, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.25, - "agreed": 3, - "disagreed": 0, - "saw": 3, - "pctAgreed": 1, - "pctDisagreed": 0, - "pctVoted": 0 - }, - { - "txt": "Ontario government is not doing enough to build transitional and supportive housing for people at risk of homelessness or facing mental health challenges", - "tid": 24, - "created": "1717706355915", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 17, - "disagree_count": 2, - "pass_count": 1, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.3819444444444445, - "agreed": 16, - "disagreed": 2, - "saw": 19, - "pctAgreed": 0.8421052631578947, - "pctDisagreed": 0.10526315789473684, - "pctVoted": 0.05263157894736842 - }, - { - "txt": "Purpose built rentals will server Toronto better than condos.", - "tid": 9, - "created": "1717705502311", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 17, - "disagree_count": 2, - "pass_count": 2, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.3846153846153846, - "agreed": 16, - "disagreed": 2, - "saw": 20, - "pctAgreed": 0.8, - "pctDisagreed": 0.1, - "pctVoted": 0.1 - }, - { - "txt": "Several government initiatives have been implemented to address the affordable housing crisis in Toronto.", - "tid": 22, - "created": "1717706070012", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 7, - "pass_count": 5, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.07692307692307693, - "agreed": 8, - "disagreed": 7, - "saw": 20, - "pctAgreed": 0.4, - "pctDisagreed": 0.35, - "pctVoted": 0.25 - }, - { - "txt": "The Feds must curb immigration to lower the cost of housing.", - "tid": 41, - "created": "1717876460361", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 6, - "disagree_count": 4, - "pass_count": 5, - "count": 15, - "conversation_id": "5esrbenwxs", - "unc": 0.3333333333333333, - "group-aware-consensus": 0.05555555555555555, - "agreed": 6, - "disagreed": 4, - "saw": 15, - "pctAgreed": 0.4, - "pctDisagreed": 0.26666666666666666, - "pctVoted": 0.3333333333333333 - }, - { - "txt": "We need to increase the density of the city.", - "tid": 0, - "created": "1717704485552", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 12, - "disagree_count": 3, - "pass_count": 4, - "count": 19, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.10416666666666667, - "agreed": 12, - "disagreed": 3, - "saw": 19, - "pctAgreed": 0.631578947368421, - "pctDisagreed": 0.15789473684210525, - "pctVoted": 0.21052631578947367 - }, - { - "txt": "The city should explore alternative housing models, such as co-living spaces or tiny homes, to reduce costs and increase affordability.", - "tid": 17, - "created": "1717705835491", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 17, - "disagree_count": 2, - "pass_count": 2, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.3928571428571428, - "agreed": 17, - "disagreed": 2, - "saw": 21, - "pctAgreed": 0.8095238095238095, - "pctDisagreed": 0.09523809523809523, - "pctVoted": 0.09523809523809523 - }, - { - "txt": "The city government should give up its unused land so developers can build more houses on it.", - "tid": 29, - "created": "1717720755198", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 11, - "disagree_count": 9, - "pass_count": 2, - "count": 22, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.06993006993006994, - "agreed": 11, - "disagreed": 9, - "saw": 22, - "pctAgreed": 0.5, - "pctDisagreed": 0.4090909090909091, - "pctVoted": 0.09090909090909091 - }, - { - "txt": "Analysis has proven housing inaffordability is from overheated demand.", - "tid": 39, - "created": "1717876367357", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 4, - "disagree_count": 2, - "pass_count": 8, - "count": 14, - "conversation_id": "5esrbenwxs", - "unc": 0.5714285714285714, - "group-aware-consensus": 0.03571428571428571, - "agreed": 4, - "disagreed": 2, - "saw": 14, - "pctAgreed": 0.2857142857142857, - "pctDisagreed": 0.14285714285714285, - "pctVoted": 0.5714285714285714 - }, - { - "txt": "there are multiple definitions used by different government bodies, leading to confusion and inconsistency", - "tid": 21, - "created": "1717706064706", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 5, - "disagree_count": 3, - "pass_count": 9, - "count": 17, - "conversation_id": "5esrbenwxs", - "unc": 0.5294117647058824, - "group-aware-consensus": 0.029761904761904757, - "agreed": 5, - "disagreed": 3, - "saw": 17, - "pctAgreed": 0.29411764705882354, - "pctDisagreed": 0.17647058823529413, - "pctVoted": 0.5294117647058824 - }, - { - "txt": "Government subsidies are the way to improve rental prices in Toronto.", - "tid": 10, - "created": "1717705549108", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 9, - "disagree_count": 8, - "pass_count": 3, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.03846153846153846, - "agreed": 9, - "disagreed": 8, - "saw": 20, - "pctAgreed": 0.45, - "pctDisagreed": 0.4, - "pctVoted": 0.15 - }, - { - "txt": "The housing crisis will never be solved as long as houses are treated like any other asset for investors.", - "tid": 49, - "created": "1718146299570", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 28, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 1, - "disagree_count": 0, - "pass_count": 1, - "count": 2, - "conversation_id": "5esrbenwxs", - "unc": 0.5, - "group-aware-consensus": 0.125, - "agreed": 1, - "disagreed": 0, - "saw": 2, - "pctAgreed": 0.5, - "pctDisagreed": 0, - "pctVoted": 0.5 - }, - { - "txt": "We need more condos.", - "tid": 8, - "created": "1717705456381", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 12, - "disagree_count": 7, - "pass_count": 3, - "count": 22, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.07407407407407407, - "agreed": 12, - "disagreed": 7, - "saw": 22, - "pctAgreed": 0.5454545454545454, - "pctDisagreed": 0.3181818181818182, - "pctVoted": 0.13636363636363635 - }, - { - "txt": "Heavily invest in Multi-Unit Residential Acquisition Program (MURA) 2 purchase/convert private market housing 2 permanent affordable rentals", - "tid": 44, - "created": "1718036027298", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 19, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 5, - "disagree_count": 1, - "pass_count": 2, - "count": 8, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.11904761904761903, - "agreed": 5, - "disagreed": 1, - "saw": 8, - "pctAgreed": 0.625, - "pctDisagreed": 0.125, - "pctVoted": 0.25 - }, - { - "txt": "Government has a role to play by building more public housing.", - "tid": 7, - "created": "1717705308576", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 19, - "disagree_count": 1, - "pass_count": 0, - "count": 20, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.5625, - "agreed": 19, - "disagreed": 1, - "saw": 20, - "pctAgreed": 0.95, - "pctDisagreed": 0.05, - "pctVoted": 0 - }, - { - "txt": "Convert vacant office buildings into homeless and low income housing opportunities.", - "tid": 33, - "created": "1717859515503", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 5, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 6, - "pass_count": 2, - "count": 16, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.11111111111111112, - "agreed": 8, - "disagreed": 6, - "saw": 16, - "pctAgreed": 0.5, - "pctDisagreed": 0.375, - "pctVoted": 0.125 - }, - { - "txt": "Incentivize combatting loneliness with renovation incentives to convert single family dwellings to shared accommodations", - "tid": 35, - "created": "1717859654743", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 5, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 8, - "pass_count": 3, - "count": 19, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.08000000000000002, - "agreed": 7, - "disagreed": 8, - "saw": 18, - "pctAgreed": 0.3888888888888889, - "pctDisagreed": 0.4444444444444444, - "pctVoted": 0.16666666666666666 - }, - { - "txt": "The 1% tax on land lords who own vacant apartments should be increased.", - "tid": 5, - "created": "1717705182005", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 14, - "disagree_count": 4, - "pass_count": 3, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.13846153846153847, - "agreed": 14, - "disagreed": 4, - "saw": 21, - "pctAgreed": 0.6666666666666666, - "pctDisagreed": 0.19047619047619047, - "pctVoted": 0.14285714285714285 - }, - { - "txt": "All levels of gov need to implement clauses in construction contracts that have heavy fines for late completion to speed building housing", - "tid": 37, - "created": "1717862561295", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 8, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 11, - "pass_count": 2, - "count": 21, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.039772727272727265, - "agreed": 8, - "disagreed": 11, - "saw": 21, - "pctAgreed": 0.38095238095238093, - "pctDisagreed": 0.5238095238095238, - "pctVoted": 0.09523809523809523 - }, - { - "txt": "I struggled to find a place that met my accessibility needs.", - "tid": 27, - "created": "1717707074364", - "tweet_id": null, - "quote_src_url": null, - "is_seed": true, - "is_meta": false, - "lang": "en", - "pid": 0, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 6, - "disagree_count": 7, - "pass_count": 6, - "count": 19, - "conversation_id": "5esrbenwxs", - "unc": 0.3157894736842105, - "group-aware-consensus": 0.03472222222222222, - "agreed": 6, - "disagreed": 7, - "saw": 19, - "pctAgreed": 0.3157894736842105, - "pctDisagreed": 0.3684210526315789, - "pctVoted": 0.3157894736842105 - }, - { - "txt": "Increase taxes for each additional property owned by a household beyond their primary home.", - "tid": 42, - "created": "1717958347419", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 12, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 10, - "disagree_count": 3, - "pass_count": 1, - "count": 14, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.19047619047619047, - "agreed": 10, - "disagreed": 3, - "saw": 14, - "pctAgreed": 0.7142857142857143, - "pctDisagreed": 0.21428571428571427, - "pctVoted": 0.07142857142857142 - }, - { - "txt": "Develop incentives for home conversions from single family dwellings into mini communities of shared accommodations", - "tid": 34, - "created": "1717859594897", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 5, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 8, - "disagree_count": 6, - "pass_count": 2, - "count": 16, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.11428571428571428, - "agreed": 8, - "disagreed": 6, - "saw": 16, - "pctAgreed": 0.5, - "pctDisagreed": 0.375, - "pctVoted": 0.125 - }, - { - "txt": "Investing in preserving existing affordable housing is one of the most cost effective ways TO can ensure secure affordable housing for ppl", - "tid": 46, - "created": "1718036194199", - "tweet_id": null, - "quote_src_url": null, - "is_seed": false, - "is_meta": false, - "lang": "en", - "pid": 19, - "velocity": 1, - "mod": 1, - "active": true, - "agree_count": 5, - "disagree_count": 0, - "pass_count": 2, - "count": 7, - "conversation_id": "5esrbenwxs", - "group-aware-consensus": 0.2962962962962963, - "agreed": 5, - "disagreed": 0, - "saw": 6, - "pctAgreed": 0.8333333333333334, - "pctDisagreed": 0, - "pctVoted": 0.16666666666666666 - } -] - -export const conversation = { - "topic": "Affordable Housing In Toronto", - "description": "Toronto is an expensive place to live. We want to hear your ideas on how to make it more affordable as well as the housing related struggles you have encountered while in the city.", - "is_anon": false, - "is_active": false, - "is_draft": true, - "is_public": true, - "email_domain": null, - "owner": 628487, - "participant_count": 30, - "created": "1717704305027", - "strict_moderation": true, - "profanity_filter": true, - "spam_filter": true, - "context": null, - "modified": "1725409480207", - "owner_sees_participation_stats": false, - "course_id": null, - "lti_users_only": false, - "link_url": null, - "upvotes": 1, - "parent_url": null, - "vis_type": 1, - "write_type": 1, - "bgcolor": null, - "help_type": 1, - "socialbtn_type": 0, - "style_btn": null, - "auth_needed_to_vote": false, - "auth_needed_to_write": false, - "auth_opt_fb": false, - "auth_opt_tw": false, - "auth_opt_allow_3rdparty": true, - "help_bgcolor": null, - "help_color": null, - "is_data_open": false, - "is_slack": false, - "is_curated": false, - "dataset_explanation": null, - "write_hint_type": 1, - "subscribe_type": 1, - "org_id": 628487, - "need_suzinvite": false, - "use_xid_whitelist": false, - "prioritize_seed": false, - "site_id": "polis_site_id_AO5Ijjr6WPVlmvZO1M", - "auth_opt_fb_computed": false, - "auth_opt_tw_computed": false, - "translations": [], - "ownername": "Civic Tech", - "is_mod": false, - "is_owner": false, - "conversation_id": "5esrbenwxs" -} - -export const extremity = { - "0": 0.8260855281177053, - "1": 0.6306355831344891, - "2": 2.814996254738393, - "3": 0.32247236241316024, - "4": 0.06298202770114834, - "5": 0.9333786729987231, - "7": 0.03462096082319622, - "8": 0.9143442519239249, - "9": 0.17027388869703525, - "10": 2.312575874400266, - "11": 1.9104110105627867, - "13": 0.44449995110234064, - "14": 0.6721130374828893, - "15": 1.3240130711677636, - "16": 0.4022519227783988, - "17": 0.30081384801309347, - "18": 1.1161361439265396, - "21": 0.5656129603654764, - "22": 0.595645135168949, - "24": 0.3085504583957649, - "25": 0.7089684715917088, - "26": 0.5851240796287611, - "27": 2.232842651973817, - "28": 0.9707329505851755, - "29": 2.1887084036061464, - "30": 0, - "31": 1.6622689116365483, - "32": 3.462740123808781, - "33": 1.726212866701811, - "34": 0.8278821762598564, - "35": 1.8631850965518824, - "36": 0.4093581065709053, - "37": 2.8107497165044735, - "38": 0, - "39": 0.8051268337578901, - "40": 0.528458780001725, - "41": 0.3837401264416687, - "42": 0.7040883580503492, - "43": 1.3042962628156052, - "44": 0.28483672731689186, - "45": 0.1427084422478072, - "46": 0.06157180030795967, - "47": 0, - "48": 0, - "49": 0.0640012840044182, - "50": 0 -} - -export const math = { - "comment-priorities": { - "0": 1.8386278895890114, - "1": 1.6235208583162395, - "2": 1.6305252840599262, - "3": 2.087089180443183, - "4": 1.3098325481458581, - "5": 2.23502628041467, - "7": 1.8136476648576936, - "8": 1.4197952079415055, - "9": 1.3723720662646226, - "10": 3.4148251721822196, - "11": 3.655344911927386, - "13": 1.3031884392867672, - "14": 1.5416396811879933, - "15": 3.6058070397499837, - "16": 1.6732814225321606, - "17": 1.6143376353809213, - "18": 1.224040372324852, - "21": 0.16947656421745647, - "22": 0.5070950882306116, - "24": 2.276726889030155, - "25": 1.0994171495341387, - "26": 0.3475208083008897, - "27": 1.2792229142613771, - "28": 2.003258519522552, - "29": 3.7005785495174486, - "30": 1.4268271588273578, - "31": 2.0324099101710544, - "32": 2.6563117149876367, - "33": 4.514773293191842, - "34": 2.0296110425068083, - "35": 2.3125239050363113, - "36": 1.8454198524824805, - "37": 3.4635776544297494, - "38": 12.529726250088048, - "39": 0.28120465467431216, - "40": 4.410727832912038, - "41": 0.5436943579116422, - "42": 4.851730093586537, - "43": 4.073248043943424, - "44": 3.8562248895203615, - "45": 2.021621152726477, - "46": 7.163523657237001, - "47": 16.143843865255583, - "48": 16.143843865255583, - "49": 3.529606475676068, - "50": 12.529726250088048 - }, - "user-vote-counts": { - "0": 42, - "1": 1, - "2": 25, - "3": 22, - "4": 2, - "5": 5, - "6": 25, - "7": 25, - "8": 36, - "9": 33, - "10": 34, - "11": 24, - "12": 37, - "13": 38, - "14": 24, - "15": 12, - "16": 10, - "17": 37, - "18": 20, - "19": 40, - "20": 37, - "21": 11, - "22": 40, - "23": 6, - "24": 24, - "25": 42, - "26": 40, - "27": 3, - "28": 43, - "29": 12 - }, - "meta-tids": [ - 19 - ], - "pca": { - "center": [ - -0.4736842105263155, - -0.6190476190476192, - 0.34999999999999987, - -0.8000000000000003, - -0.8695652173913044, - -0.4761904761904762, - -0.8999999999999996, - -0.2272727272727273, - -0.7142857142857144, - -0.05000000000000001, - -0.25, - -0.6000000000000001, - -0.47368421052631554, - -0.3333333333333333, - -0.6190476190476192, - -0.7142857142857144, - -0.16666666666666669, - -0.11764705882352942, - -0.05, - -0.75, - -0.1666666666666667, - -0.34999999999999987, - 0.05263157894736841, - -0.4090909090909089, - -0.09090909090909088, - 0, - -0.25, - 0.388888888888889, - -0.125, - -0.125, - 0, - -0.5789473684210527, - 0.14285714285714288, - 0, - -0.14285714285714285, - -0.625, - -0.1333333333333333, - -0.5, - -0.18181818181818177, - -0.5, - -0.5714285714285714, - -0.7142857142857144, - -1, - -1, - -0.5, - -1 - ], - "comps": [ - [ - -0.16970395777709227, - -0.15465162823008013, - 0.01732569361823226, - -0.06376510560092909, - -0.05925720148168942, - -0.26128310365047, - 0.007170152638865003, - -0.05400731043458847, - -0.03432142369575052, - -0.3588067108674857, - -0.2623006430508646, - -0.15784863735566565, - -0.18474840066720372, - -0.2576002563008507, - -0.12432893680392279, - -0.09501254545191216, - -0.15989504200741717, - -0.08344920633619238, - 0.06152072957017326, - -0.1462722493060385, - 0.12433927592875535, - -0.1326052110365999, - -0.1864528123593041, - -0.14507899383813913, - -0.007830679328369724, - 0, - -0.30310093222757956, - 0.0031269047201053497, - -0.22388388541244317, - -0.058585437736948784, - -0.13974050098555243, - -0.12420072469611282, - -0.33916940984505656, - 0, - -0.0004232911085997396, - -0.17727646114714085, - 0.06377851423913922, - -0.18433180887008002, - 0.007417232452423054, - -0.08341341522143178, - -0.023382227358043763, - -0.012123106873381306, - 0, - 0, - -0.01794753830786796, - 0 - ], - [ - 0.15733877331316856, - 0.18883062900786426, - -0.30695479848755985, - 0.22901846959704922, - -0.03946125878846343, - 0.027511629363060144, - -0.05053973528095085, - 0.16589371146452428, - -0.08088914846740661, - 0.008878353881308648, - 0.26879068031709397, - -0.04391975001921987, - 0.03632463370937502, - 0.13923789809826229, - 0.0937034150367296, - -0.1227608351878517, - -0.1158933842006997, - -0.04437574320531472, - -0.06900248432425901, - 0.10825271397698191, - -0.016566406667102285, - -0.0056589863868856186, - -0.25109835620595866, - -0.1939586604603697, - 0.3548918119651992, - 0, - -0.12213830023364777, - -0.36758498835762776, - -0.18570044418856327, - 0.12660432748759584, - -0.23651445188361714, - -0.07157159811316015, - -0.1282852636451983, - 0, - 0.13849374100555237, - 0.10837447352708428, - 0.013938829401049728, - 0.09554918364127225, - 0.23492604022142138, - -0.009856739390378176, - -0.04317064367205261, - -0.029370276173048496, - 0, - 0, - -0.005837300180896131, - 0 - ] - ], - "comment-projection": [ - [ - 0.60578328478242, - 0.39958033336533877, - -0.15863657126226133, - 0.08649519751886595, - 0.052421986216350906, - 0.9282471670332718, - -0.004863034122615908, - 0.28304644612563096, - 0.06650834885578134, - 2.3118682375999517, - 1.334257136967688, - 0.42823261837311927, - 0.6594866406208509, - 1.1647532946466759, - 0.3212342384210788, - 0.18411612451187312, - 0.9037174479666497, - 0.49939416547232174, - -0.39639119431015096, - 0.24801666554187976, - -0.7027583326764026, - 0.5845919941759204, - 1.3311415786342502, - 0.5814389512632157, - 0.048282046542764745, - 0, - 1.5417979054202495, - -0.029455138385481163, - 1.3286475901749708, - 0.347677549570598, - 0.9477661896912584, - 0.3546822311715086, - 2.628981551715462, - 0, - 0.0024607714092397272, - 0.4508802966527231, - -0.3748913388161897, - 0.62509957707163, - -0.04115955113499162, - 0.2828686535255972, - 0.06796542072116235, - 0.02349226035313315, - 0, - 0, - 0.0608630635943711, - 0 - ], - [ - -0.5616439367105545, - -0.4878901473723586, - 2.810522789882575, - -0.3106557666075055, - 0.034909471128634025, - -0.09773916361194454, - 0.03427771619352084, - -0.8694309175328262, - 0.15674768484570367, - -0.05720512944349643, - -1.367270317724449, - 0.11915129496268857, - -0.1296661328069143, - -0.6295715807061234, - -0.2421057071713684, - 0.23788699807087593, - 0.655022645425218, - 0.2655625885278295, - 0.4445977374254256, - -0.18355140694019206, - 0.09363236387577847, - 0.024947723479816844, - 1.792665168430676, - 0.777335968102424, - -2.1881757973247504, - 0, - 0.6212866918219688, - 3.462614844284294, - 1.1020464791873015, - -0.7513382855234654, - 1.604119058452695, - 0.20438829297813807, - 0.9943691314445238, - 0, - -0.8051230732261228, - -0.2756367904530597, - -0.08193270849955325, - -0.3240230465366716, - -1.30364666706325, - 0.03342582955160689, - 0.12548466470047695, - 0.05691397277175325, - 0, - 0, - 0.019795248018697188, - 0 - ] - ], - "comment-extremity": [ - 0.8260855281177053, - 0.6306355831344891, - 2.814996254738393, - 0.32247236241316024, - 0.06298202770114834, - 0.9333786729987231, - 0.03462096082319622, - 0.9143442519239249, - 0.17027388869703525, - 2.312575874400266, - 1.9104110105627867, - 0.44449995110234064, - 0.6721130374828893, - 1.3240130711677636, - 0.4022519227783988, - 0.30081384801309347, - 1.1161361439265396, - 0.5656129603654764, - 0.595645135168949, - 0.3085504583957649, - 0.7089684715917088, - 0.5851240796287611, - 2.232842651973817, - 0.9707329505851755, - 2.1887084036061464, - 0, - 1.6622689116365483, - 3.462740123808781, - 1.726212866701811, - 0.8278821762598564, - 1.8631850965518824, - 0.4093581065709053, - 2.8107497165044735, - 0, - 0.8051268337578901, - 0.528458780001725, - 0.3837401264416687, - 0.7040883580503492, - 1.3042962628156052, - 0.28483672731689186, - 0.1427084422478072, - 0.06157180030795967, - 0, - 0, - 0.0640012840044182, - 0 - ] - }, - "group-clusters": [ - { - "id": 0, - "members": [ - 0, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 12, - 14, - 15, - 22, - 25, - 26, - 27 - ], - "center": [ - 1.2149460883682703, - -0.7258950000036276 - ] - }, - { - "id": 1, - "members": [ - 1, - 10, - 11, - 13, - 16, - 17, - 18, - 21, - 23, - 24 - ], - "center": [ - -2.493115238527354, - -0.043802215235604305 - ] - }, - { - "id": 2, - "members": [ - 9, - 19, - 20 - ], - "center": [ - 1.4794580708555858, - 3.3169789987450615 - ] - } - ], - "n": 30, - "consensus": { - "agree": [ - { - "tid": 7, - "n-success": 19, - "n-trials": 20, - "p-success": 0.9090909090909091, - "p-test": 4.1461399144838555 - }, - { - "tid": 4, - "n-success": 21, - "n-trials": 23, - "p-success": 0.88, - "p-test": 4.08248290463863 - }, - { - "tid": 3, - "n-success": 17, - "n-trials": 20, - "p-success": 0.8181818181818182, - "p-test": 3.273268353539885 - }, - { - "tid": 24, - "n-success": 17, - "n-trials": 20, - "p-success": 0.8181818181818182, - "p-test": 3.273268353539885 - }, - { - "tid": 9, - "n-success": 17, - "n-trials": 21, - "p-success": 0.782608695652174, - "p-test": 2.9848100289785466 - } - ], - "disagree": [] - }, - "n-cmts": 46, - "repness": { - "0": [ - { - "tid": 1, - "n-agree": 13, - "p-test": 3.7416573867739413, - "repness-test": 3.5535126, - "n-success": 13, - "repful-for": "agree", - "n-trials": 13, - "repness": 3.111111111111111, - "best-agree": true, - "p-success": 0.9333333333333333 - }, - { - "tid": 5, - "n-success": 11, - "n-trials": 11, - "p-success": 0.9230769230769231, - "p-test": 3.4641016151377544, - "repness": 2.769230769230769, - "repness-test": 3.3131967, - "repful-for": "agree" - }, - { - "tid": 15, - "n-success": 11, - "n-trials": 12, - "p-success": 0.8571428571428571, - "p-test": 3.05085107923876, - "repness": 2.228571428571429, - "repness-test": 2.711848, - "repful-for": "agree" - }, - { - "tid": 10, - "n-success": 8, - "n-trials": 11, - "p-success": 0.6923076923076923, - "p-test": 1.7320508075688772, - "repness": 3.807692307692308, - "repness-test": 2.5690465, - "repful-for": "agree" - }, - { - "tid": 2, - "n-success": 9, - "n-trials": 10, - "p-success": 0.8333333333333333, - "p-test": 2.7136021011998723, - "repness": 2.5, - "repness-test": 2.6592157, - "repful-for": "disagree" - } - ], - "1": [ - { - "tid": 7, - "n-agree": 6, - "p-test": 2.6457513110645907, - "repness-test": 0.6992059, - "n-success": 6, - "repful-for": "agree", - "n-trials": 6, - "repness": 1, - "best-agree": true, - "p-success": 0.875 - }, - { - "tid": 25, - "n-success": 4, - "n-trials": 5, - "p-success": 0.7142857142857143, - "p-test": 1.6329931618554516, - "repness": 2, - "repness-test": 1.8208588, - "repful-for": "agree" - }, - { - "tid": 37, - "n-success": 9, - "n-trials": 9, - "p-success": 0.9090909090909091, - "p-test": 3.1622776601683795, - "repness": 4.242424242424242, - "repness-test": 3.6891012, - "repful-for": "disagree" - }, - { - "tid": 15, - "n-success": 7, - "n-trials": 9, - "p-success": 0.7272727272727273, - "p-test": 1.897366596101028, - "repness": 5.818181818181818, - "repness-test": 3.3333333, - "repful-for": "disagree" - }, - { - "tid": 10, - "n-success": 6, - "n-trials": 7, - "p-success": 0.7777777777777778, - "p-test": 2.121320343559643, - "repness": 3.888888888888889, - "repness-test": 2.9939423, - "repful-for": "disagree" - } - ], - "2": [ - { - "tid": 32, - "n-agree": 3, - "p-test": 2, - "repness-test": 3.313273, - "n-success": 3, - "repful-for": "agree", - "n-trials": 3, - "repness": 6.4, - "best-agree": true, - "p-success": 0.8 - }, - { - "tid": 2, - "n-success": 2, - "n-trials": 2, - "p-success": 0.75, - "p-test": 1.7320508075688772, - "repness": 3.75, - "repness-test": 2.7282977, - "repful-for": "agree" - }, - { - "tid": 35, - "n-success": 3, - "n-trials": 3, - "p-success": 0.8, - "p-test": 2, - "repness": 2.72, - "repness-test": 2.4720662, - "repful-for": "agree" - }, - { - "tid": 27, - "n-success": 2, - "n-trials": 2, - "p-success": 0.75, - "p-test": 1.7320508075688772, - "repness": 2.85, - "repness-test": 2.384848, - "repful-for": "agree" - }, - { - "tid": 43, - "n-success": 2, - "n-trials": 2, - "p-success": 0.75, - "p-test": 1.7320508075688772, - "repness": 4.125, - "repness-test": 2.4979992, - "repful-for": "disagree" - } - ] - }, - "group-aware-consensus": { - "0": 0.10416666666666667, - "1": 0.0875, - "2": 0.037500000000000006, - "3": 0.1782407407407407, - "4": 0.525974025974026, - "5": 0.13846153846153847, - "7": 0.5625, - "8": 0.07407407407407407, - "9": 0.3846153846153846, - "10": 0.03846153846153846, - "11": 0.08184523809523808, - "13": 0.25, - "14": 0.14423076923076925, - "15": 0.1753246753246753, - "16": 0.2857142857142857, - "17": 0.3928571428571428, - "18": 0.09375, - "21": 0.029761904761904757, - "22": 0.07692307692307693, - "24": 0.3819444444444445, - "25": 0.11904761904761903, - "26": 0.03846153846153846, - "27": 0.03472222222222222, - "28": 0.24107142857142855, - "29": 0.06993006993006994, - "30": 0.07142857142857142, - "31": 0.09600000000000003, - "32": 0.020000000000000004, - "33": 0.11111111111111112, - "34": 0.11428571428571428, - "35": 0.08000000000000002, - "36": 0.2454545454545455, - "37": 0.039772727272727265, - "38": 0.16666666666666666, - "39": 0.03571428571428571, - "40": 0.29220779220779225, - "41": 0.05555555555555555, - "42": 0.19047619047619047, - "43": 0.07142857142857142, - "44": 0.11904761904761903, - "45": 0.16666666666666666, - "46": 0.2962962962962963, - "47": 0.25, - "48": 0.25, - "49": 0.125, - "50": 0.16666666666666666 - }, - "mod-in": [ - 0, - 7, - 27, - 1, - 24, - 39, - 46, - 4, - 15, - 48, - 21, - 31, - 32, - 40, - 33, - 13, - 22, - 36, - 41, - 43, - 29, - 44, - 28, - 25, - 34, - 17, - 3, - 2, - 47, - 35, - 19, - 11, - 9, - 5, - 14, - 45, - 26, - 16, - 10, - 18, - 42, - 37, - 8, - 49 - ], - "votes-base": { - "0": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "1": { - "A": [ - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "2": { - "A": [ - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 1, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "3": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "4": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "5": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "7": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "8": { - "A": [ - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 1 - ], - "D": [ - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1 - ] - }, - "9": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "10": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "11": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "13": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "14": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "15": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 0 - ], - "D": [ - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "16": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1 - ], - "D": [ - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "17": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "18": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0 - ], - "D": [ - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "21": { - "A": [ - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "22": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0 - ], - "S": [ - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1 - ] - }, - "24": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "25": { - "A": [ - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "26": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "27": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "28": { - "A": [ - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "29": { - "A": [ - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0 - ], - "D": [ - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 0 - ], - "S": [ - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "30": { - "A": [ - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - }, - "31": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "32": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "33": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0 - ], - "D": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "34": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "35": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "36": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "37": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0, - 1 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "38": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - }, - "39": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "40": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 1, - 1 - ] - }, - "41": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "42": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 1, - 1, - 0, - 1, - 0, - 0, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "43": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "44": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "45": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 0 - ] - }, - "46": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1, - 0, - 1, - 1, - 1, - 0 - ] - }, - "47": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1 - ] - }, - "48": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1 - ] - }, - "49": { - "A": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1 - ] - }, - "50": { - "A": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "D": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "S": [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - } - }, - "base-clusters": { - "id": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27 - ], - "members": [ - [ - 0 - ], - [ - 2 - ], - [ - 1 - ], - [ - 3 - ], - [ - 4 - ], - [ - 6 - ], - [ - 7 - ], - [ - 8 - ], - [ - 9 - ], - [ - 5 - ], - [ - 10 - ], - [ - 11 - ], - [ - 12 - ], - [ - 13 - ], - [ - 14 - ], - [ - 15 - ], - [ - 16 - ], - [ - 17 - ], - [ - 18 - ], - [ - 19 - ], - [ - 20 - ], - [ - 21 - ], - [ - 22 - ], - [ - 24 - ], - [ - 25 - ], - [ - 26 - ], - [ - 28 - ], - [ - 29 - ] - ], - "x": [ - 1.179229056874007, - -0.741089797391672, - 0.23069781303135872, - 1.2374602288050658, - 0.1634169418637999, - 2.607410376808897, - -0.3690403533627668, - 2.765220565943106, - 1.0316601346301837, - 1.5634251334102856, - -4.239348931860806, - -2.1378570128849117, - 2.3333674150471357, - -4.2602730290596895, - 0.667597590739773, - 0.35184993790027763, - -2.2864006138140756, - -3.0872147233169156, - -1.9195321620484458, - 1.8396710498283027, - 1.0352780293281691, - -2.447364155095016, - 0.5304411363810324, - -1.9886644521543215, - -1.8234075076476886, - 1.6739794773733927, - 3.3822666705324544, - 0.43863433295634 - ], - "y": [ - -1.5228915793355702, - 0.743171883814533, - -0.28168350792039737, - -2.2209343125566328, - -0.5019661742793604, - 0.2717266369626228, - 0.10147738156225365, - -0.6111808605675436, - 0.369169875909347, - 2.2824249440862774, - -1.586497042842393, - -0.33620059518874845, - 0.7262940273597082, - 3.0780400053015864, - -1.76698648916633, - -0.6332423456765759, - -1.8379608240669254, - -1.002573285301031, - 0.7612876880138849, - 3.4893669509255725, - 4.179145101223336, - -0.8532007642727052, - -2.019318193693788, - 0.6040554641576954, - -0.008144681971939714, - -1.9556993958727298, - 0.11168613351847693, - -0.9548761962978954 - ], - "count": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - "mod-out": [ - 20, - 6, - 12, - 23, - 19, - 38, - 30 - ], - "group-votes": { - "0": { - "n-members": 15, - "votes": { - "0": { - "A": 8, - "D": 1, - "S": 10 - }, - "1": { - "A": 13, - "D": 0, - "S": 13 - }, - "2": { - "A": 1, - "D": 9, - "S": 10 - }, - "3": { - "A": 10, - "D": 0, - "S": 10 - }, - "4": { - "A": 11, - "D": 0, - "S": 12 - }, - "5": { - "A": 11, - "D": 0, - "S": 11 - }, - "7": { - "A": 11, - "D": 1, - "S": 12 - }, - "8": { - "A": 9, - "D": 4, - "S": 13 - }, - "9": { - "A": 9, - "D": 1, - "S": 11 - }, - "10": { - "A": 8, - "D": 2, - "S": 11 - }, - "11": { - "A": 10, - "D": 1, - "S": 12 - }, - "13": { - "A": 9, - "D": 0, - "S": 10 - }, - "14": { - "A": 9, - "D": 1, - "S": 11 - }, - "15": { - "A": 11, - "D": 1, - "S": 12 - }, - "16": { - "A": 11, - "D": 1, - "S": 12 - }, - "17": { - "A": 10, - "D": 1, - "S": 12 - }, - "18": { - "A": 5, - "D": 2, - "S": 10 - }, - "21": { - "A": 4, - "D": 1, - "S": 10 - }, - "22": { - "A": 5, - "D": 5, - "S": 11 - }, - "24": { - "A": 10, - "D": 0, - "S": 10 - }, - "25": { - "A": 3, - "D": 4, - "S": 10 - }, - "26": { - "A": 8, - "D": 0, - "S": 11 - }, - "27": { - "A": 4, - "D": 4, - "S": 10 - }, - "28": { - "A": 8, - "D": 2, - "S": 12 - }, - "29": { - "A": 7, - "D": 3, - "S": 11 - }, - "30": { - "A": 3, - "D": 1, - "S": 5 - }, - "31": { - "A": 5, - "D": 0, - "S": 8 - }, - "32": { - "A": 0, - "D": 6, - "S": 8 - }, - "33": { - "A": 4, - "D": 2, - "S": 7 - }, - "34": { - "A": 4, - "D": 3, - "S": 8 - }, - "35": { - "A": 2, - "D": 4, - "S": 8 - }, - "36": { - "A": 8, - "D": 1, - "S": 9 - }, - "37": { - "A": 6, - "D": 2, - "S": 10 - }, - "38": { - "A": 0, - "D": 0, - "S": 0 - }, - "39": { - "A": 2, - "D": 1, - "S": 7 - }, - "40": { - "A": 9, - "D": 0, - "S": 9 - }, - "41": { - "A": 3, - "D": 3, - "S": 7 - }, - "42": { - "A": 7, - "D": 0, - "S": 7 - }, - "43": { - "A": 3, - "D": 0, - "S": 4 - }, - "44": { - "A": 4, - "D": 0, - "S": 5 - }, - "45": { - "A": 2, - "D": 0, - "S": 4 - }, - "46": { - "A": 3, - "D": 0, - "S": 4 - }, - "47": { - "A": 2, - "D": 0, - "S": 2 - }, - "48": { - "A": 2, - "D": 0, - "S": 2 - }, - "49": { - "A": 1, - "D": 0, - "S": 2 - }, - "50": { - "A": 1, - "D": 0, - "S": 1 - } - }, - "id": 0 - }, - "1": { - "n-members": 10, - "votes": { - "0": { - "A": 4, - "D": 2, - "S": 7 - }, - "1": { - "A": 2, - "D": 1, - "S": 6 - }, - "2": { - "A": 2, - "D": 3, - "S": 8 - }, - "3": { - "A": 6, - "D": 1, - "S": 7 - }, - "4": { - "A": 8, - "D": 1, - "S": 9 - }, - "5": { - "A": 1, - "D": 4, - "S": 8 - }, - "7": { - "A": 6, - "D": 0, - "S": 6 - }, - "8": { - "A": 3, - "D": 2, - "S": 7 - }, - "9": { - "A": 5, - "D": 1, - "S": 7 - }, - "10": { - "A": 0, - "D": 6, - "S": 7 - }, - "11": { - "A": 4, - "D": 5, - "S": 10 - }, - "13": { - "A": 3, - "D": 2, - "S": 8 - }, - "14": { - "A": 2, - "D": 2, - "S": 6 - }, - "15": { - "A": 2, - "D": 7, - "S": 9 - }, - "16": { - "A": 3, - "D": 2, - "S": 7 - }, - "17": { - "A": 5, - "D": 1, - "S": 7 - }, - "18": { - "A": 1, - "D": 3, - "S": 6 - }, - "21": { - "A": 1, - "D": 2, - "S": 5 - }, - "22": { - "A": 2, - "D": 2, - "S": 7 - }, - "24": { - "A": 4, - "D": 2, - "S": 7 - }, - "25": { - "A": 4, - "D": 1, - "S": 5 - }, - "26": { - "A": 1, - "D": 2, - "S": 7 - }, - "27": { - "A": 0, - "D": 3, - "S": 7 - }, - "28": { - "A": 4, - "D": 3, - "S": 8 - }, - "29": { - "A": 4, - "D": 4, - "S": 9 - }, - "30": { - "A": 0, - "D": 1, - "S": 2 - }, - "31": { - "A": 1, - "D": 5, - "S": 8 - }, - "32": { - "A": 1, - "D": 4, - "S": 6 - }, - "33": { - "A": 1, - "D": 4, - "S": 6 - }, - "34": { - "A": 3, - "D": 2, - "S": 5 - }, - "35": { - "A": 2, - "D": 4, - "S": 7 - }, - "36": { - "A": 5, - "D": 2, - "S": 8 - }, - "37": { - "A": 0, - "D": 9, - "S": 9 - }, - "38": { - "A": 1, - "D": 0, - "S": 1 - }, - "39": { - "A": 2, - "D": 1, - "S": 5 - }, - "40": { - "A": 2, - "D": 3, - "S": 5 - }, - "41": { - "A": 3, - "D": 1, - "S": 6 - }, - "42": { - "A": 1, - "D": 3, - "S": 5 - }, - "43": { - "A": 2, - "D": 1, - "S": 5 - }, - "44": { - "A": 0, - "D": 1, - "S": 2 - }, - "45": { - "A": 1, - "D": 0, - "S": 2 - }, - "46": { - "A": 1, - "D": 0, - "S": 1 - }, - "47": { - "A": 1, - "D": 0, - "S": 1 - }, - "48": { - "A": 1, - "D": 0, - "S": 1 - }, - "49": { - "A": 0, - "D": 0, - "S": 0 - }, - "50": { - "A": 0, - "D": 0, - "S": 0 - } - }, - "id": 1 - }, - "2": { - "n-members": 3, - "votes": { - "0": { - "A": 0, - "D": 0, - "S": 2 - }, - "1": { - "A": 0, - "D": 1, - "S": 2 - }, - "2": { - "A": 2, - "D": 0, - "S": 2 - }, - "3": { - "A": 0, - "D": 0, - "S": 2 - }, - "4": { - "A": 2, - "D": 0, - "S": 2 - }, - "5": { - "A": 2, - "D": 0, - "S": 2 - }, - "7": { - "A": 2, - "D": 0, - "S": 2 - }, - "8": { - "A": 0, - "D": 1, - "S": 2 - }, - "9": { - "A": 2, - "D": 0, - "S": 2 - }, - "10": { - "A": 1, - "D": 0, - "S": 2 - }, - "11": { - "A": 0, - "D": 2, - "S": 2 - }, - "13": { - "A": 2, - "D": 0, - "S": 2 - }, - "14": { - "A": 1, - "D": 0, - "S": 2 - }, - "15": { - "A": 2, - "D": 0, - "S": 2 - }, - "16": { - "A": 2, - "D": 0, - "S": 2 - }, - "17": { - "A": 2, - "D": 0, - "S": 2 - }, - "18": { - "A": 2, - "D": 0, - "S": 2 - }, - "21": { - "A": 0, - "D": 0, - "S": 2 - }, - "22": { - "A": 1, - "D": 0, - "S": 2 - }, - "24": { - "A": 2, - "D": 0, - "S": 2 - }, - "25": { - "A": 1, - "D": 0, - "S": 2 - }, - "26": { - "A": 0, - "D": 0, - "S": 2 - }, - "27": { - "A": 2, - "D": 0, - "S": 2 - }, - "28": { - "A": 2, - "D": 0, - "S": 2 - }, - "29": { - "A": 0, - "D": 2, - "S": 2 - }, - "30": { - "A": 0, - "D": 0, - "S": 0 - }, - "31": { - "A": 3, - "D": 0, - "S": 3 - }, - "32": { - "A": 3, - "D": 0, - "S": 3 - }, - "33": { - "A": 3, - "D": 0, - "S": 3 - }, - "34": { - "A": 1, - "D": 1, - "S": 3 - }, - "35": { - "A": 3, - "D": 0, - "S": 3 - }, - "36": { - "A": 1, - "D": 0, - "S": 2 - }, - "37": { - "A": 2, - "D": 0, - "S": 2 - }, - "38": { - "A": 0, - "D": 0, - "S": 0 - }, - "39": { - "A": 0, - "D": 0, - "S": 2 - }, - "40": { - "A": 2, - "D": 0, - "S": 2 - }, - "41": { - "A": 0, - "D": 0, - "S": 2 - }, - "42": { - "A": 2, - "D": 0, - "S": 2 - }, - "43": { - "A": 0, - "D": 2, - "S": 2 - }, - "44": { - "A": 1, - "D": 0, - "S": 1 - }, - "45": { - "A": 1, - "D": 0, - "S": 1 - }, - "46": { - "A": 1, - "D": 0, - "S": 1 - }, - "47": { - "A": 0, - "D": 0, - "S": 0 - }, - "48": { - "A": 0, - "D": 0, - "S": 0 - }, - "49": { - "A": 0, - "D": 0, - "S": 0 - }, - "50": { - "A": 0, - "D": 0, - "S": 0 - } - }, - "id": 2 - } - }, - "lastModTimestamp": null, - "in-conv": [ - 0, - 7, - 20, - 1, - 24, - 4, - 15, - 21, - 13, - 22, - 29, - 6, - 28, - 25, - 17, - 3, - 12, - 2, - 19, - 11, - 9, - 5, - 14, - 26, - 16, - 10, - 18, - 8 - ], - "tids": [ - 0, - 1, - 2, - 3, - 4, - 5, - 7, - 8, - 9, - 10, - 11, - 13, - 14, - 15, - 16, - 17, - 18, - 21, - 22, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50 - ], - "lastVoteTimestamp": 1718226369862, - "math_tick": 1116 - } \ No newline at end of file From 20268fa41eec5c5d6c6198cc7ef268c01cbabf11 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 21 Oct 2024 16:01:15 -0400 Subject: [PATCH 4/7] Added d3 packages that match those used in client-report. --- .storybook/preview.js | 7 +++ package-lock.json | 133 ++++++++++++++++++++++++++++++++++-------- package.json | 4 ++ 3 files changed, 121 insertions(+), 23 deletions(-) diff --git a/.storybook/preview.js b/.storybook/preview.js index 180ba53..b5e3c1e 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -7,6 +7,13 @@ import jquery from 'jquery'; global.$ = jquery; global.jQuery = jquery; +import * as d3scale from 'd3-scale'; +import * as d3geo from 'd3-geo'; +global.d3 = { + ...d3scale, + ...d3geo, +}; + // This is where we mock responses for PolisNet endpoints. // TODO: Create a storybook plugin to do this dynamically. function ajax_responses(responses) { diff --git a/package-lock.json b/package-lock.json index c8bdab1..3c38861 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,11 @@ "dependencies": { "@react-spring/web": "^9.7.4", "color": "~4.2.3", + "d3-contour": "~1.1.2", "d3-force": "~1.2.1", + "d3-geo": "1.5.0", + "d3-scale": "1.0.4", + "d3-scale-chromatic": "~1.1.1", "hull.js": "^0.2.11", "radium": "^0.26.2", "react-chat-widget": "^3.0.5", @@ -3676,6 +3680,19 @@ "node": ">=12" } }, + "node_modules/d3-contour": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-1.1.2.tgz", + "integrity": "sha512-po2Gxab58NQMAaVLj1ruASkmHlB8JebFFhm2cDVs2JFjTv9AYZpRQEWMycLoP7JH530dBDl90HI30g5EnpTJfA==", + "dependencies": { + "d3-array": "^1.1.1" + } + }, + "node_modules/d3-contour/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==" + }, "node_modules/d3-dispatch": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.6.tgz", @@ -3706,13 +3723,23 @@ "integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==" }, "node_modules/d3-format": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", - "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", - "engines": { - "node": ">=12" + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.5.tgz", + "integrity": "sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==" + }, + "node_modules/d3-geo": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.5.0.tgz", + "integrity": "sha512-GT1jYEeA++GbFn46l1SFZiqVQJhqLxC2aCYjmnkdxOKQwZ9M1k7+7PDQ8ubfVvtt2uTQSGYCJFNSVIsoO7W6Dw==", + "dependencies": { + "d3-array": "1" } }, + "node_modules/d3-geo/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==" + }, "node_modules/d3-interpolate": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", @@ -3738,20 +3765,63 @@ "integrity": "sha512-RKPAeXnkC59IDGD0Wu5mANy0Q2V28L+fNe65pOCXVdVuTJS3WPKaJlFHer32Rbh9gIo9qMuJXio8ra4+YmIymA==" }, "node_modules/d3-scale": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", - "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-1.0.4.tgz", + "integrity": "sha512-6lf7eXjRo/Ogc9tPc4gBzLKw/PHUMJ3gkGjOn0FvkOct9mK68Je0ChG75uXGzwN8n0hOHiXhCNBN//hHXTMQGw==", "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" - }, - "engines": { - "node": ">=12" + "d3-array": "1", + "d3-collection": "1", + "d3-color": "1", + "d3-format": "1", + "d3-interpolate": "1", + "d3-time": "1", + "d3-time-format": "2" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz", + "integrity": "sha512-S/+7C+GdfxL3nLVANEkALsC82krcw/oGo1vfBPJkneBLOG9uQyEoAhrr7yowWt28PGiWV9qlVhGZIG969S8Cqw==", + "dependencies": { + "d3-interpolate": "1" + } + }, + "node_modules/d3-scale-chromatic/node_modules/d3-color": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.4.1.tgz", + "integrity": "sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==" + }, + "node_modules/d3-scale-chromatic/node_modules/d3-interpolate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.4.0.tgz", + "integrity": "sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==", + "dependencies": { + "d3-color": "1" } }, + "node_modules/d3-scale/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==" + }, + "node_modules/d3-scale/node_modules/d3-color": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.4.1.tgz", + "integrity": "sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==" + }, + "node_modules/d3-scale/node_modules/d3-interpolate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.4.0.tgz", + "integrity": "sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==", + "dependencies": { + "d3-color": "1" + } + }, + "node_modules/d3-scale/node_modules/d3-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", + "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" + }, "node_modules/d3-shape": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", @@ -3775,16 +3845,18 @@ } }, "node_modules/d3-time-format": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", - "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.3.0.tgz", + "integrity": "sha512-guv6b2H37s2Uq/GefleCDtbe0XZAuy7Wa49VGkPVPMfLL9qObgBST3lEHJBMUp8S7NdLQAGIvr2KXk8Hc98iKQ==", "dependencies": { - "d3-time": "1 - 3" - }, - "engines": { - "node": ">=12" + "d3-time": "1" } }, + "node_modules/d3-time-format/node_modules/d3-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", + "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" + }, "node_modules/d3-timer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", @@ -7746,6 +7818,21 @@ "d3-timer": "^3.0.1" } }, + "node_modules/victory-vendor/node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/watchpack": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", diff --git a/package.json b/package.json index 481f93b..c5735be 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,11 @@ "dependencies": { "@react-spring/web": "^9.7.4", "color": "~4.2.3", + "d3-contour": "~1.1.2", "d3-force": "~1.2.1", + "d3-geo": "1.5.0", + "d3-scale": "1.0.4", + "d3-scale-chromatic": "~1.1.1", "hull.js": "^0.2.11", "radium": "^0.26.2", "react-chat-widget": "^3.0.5", From a0bd01c97438f015019382e8dd645cca127304d6 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 21 Oct 2024 16:23:53 -0400 Subject: [PATCH 5/7] Moved reports data into file to align with other test data. Improved util helper docs. --- .storybook/data/3ntrtcehas-reports.json | 23 ++++++++++++++ .storybook/utils.js | 30 +++++-------------- .../ParticipantsGraph.stories.js | 4 +-- 3 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 .storybook/data/3ntrtcehas-reports.json diff --git a/.storybook/data/3ntrtcehas-reports.json b/.storybook/data/3ntrtcehas-reports.json new file mode 100644 index 0000000..d5e3a78 --- /dev/null +++ b/.storybook/data/3ntrtcehas-reports.json @@ -0,0 +1,23 @@ +[ + { + "report_id": "r68fknmmmyhdpi3sh4ctc", + "created": "1515990588733", + "modified": "1515991093181", + "label_x_neg": null, + "label_y_neg": null, + "label_y_pos": null, + "label_x_pos": null, + "label_group_0": null, + "label_group_1": null, + "label_group_2": null, + "label_group_3": null, + "label_group_4": null, + "label_group_5": null, + "label_group_6": null, + "label_group_7": null, + "label_group_8": null, + "label_group_9": null, + "report_name": "SamplePoll14Jan", + "conversation_id": "3ntrtcehas" + } +] diff --git a/.storybook/utils.js b/.storybook/utils.js index d2bb957..5857408 100644 --- a/.storybook/utils.js +++ b/.storybook/utils.js @@ -1,11 +1,14 @@ import * as globals from "../codebases/compdem/client-report/src/components/globals"; import participationData from './data/3ntrtcehas-participation-init.json' import commentsData from './data/3ntrtcehas-comments.json' +import reportsData from './data/3ntrtcehas-reports.json' +// Simulates response data from /api/v3/math/pca2?conversation_id=3ntrtcehas export const getMath = () => { return JSON.parse(participationData.pca) } +// Simulates manipulation of response data done in application code. export const getExtremity = () => { const mathResult = getMath() return mathResult.pca["comment-extremity"].reduce( @@ -17,36 +20,19 @@ export const getExtremity = () => { ) } +// Simulates response data from /api/v3/conversations?conversation_id=3ntrtcehas export const getConversation = () => { return participationData.conversation } +// Simulates response data from /api/v3/comments?conversation_id=3ntrtcehas&moderation=true&include_voting_patterns=true export const getComments = () => { return commentsData } -export const getReport = () => { - return { - "report_id": "r3bpnywujybyru4rkx92i", // example; might not match - "created": participationData.conversation.created, - "modified": participationData.conversation.modified, - "label_x_neg": null, - "label_y_neg": null, - "label_y_pos": null, - "label_x_pos": null, - "label_group_0": null, - "label_group_1": null, - "label_group_2": null, - "label_group_3": null, - "label_group_4": null, - "label_group_5": null, - "label_group_6": null, - "label_group_7": null, - "label_group_8": null, - "label_group_9": null, - "report_name": null, - "conversation_id": participationData.conversation.conversation_id - } +// Simulates response data from /api/v3/reports?report_id=r3bpnywujybyru4rkx92i +export const getReports = () => { + return reportsData } export const getVoteColors = () => ({ diff --git a/stories/compdem/client-report/ParticipantsGraph.stories.js b/stories/compdem/client-report/ParticipantsGraph.stories.js index 356c9fa..68e0ba9 100644 --- a/stories/compdem/client-report/ParticipantsGraph.stories.js +++ b/stories/compdem/client-report/ParticipantsGraph.stories.js @@ -2,7 +2,7 @@ import React from 'react' import ParticipantsGraph from '../../../codebases/compdem/client-report/src/components/participantsGraph/participantsGraph'; import '../../../codebases/compdem/client-report/src/index.css'; -import { getComments, getMath, getReport, getVoteColors } from '../../../.storybook/utils'; +import { getComments, getMath, getReports, getVoteColors } from '../../../.storybook/utils'; export default { title: 'compdem/client-report/ParticipantsGraph', @@ -58,6 +58,6 @@ Default.args = { repfulAgreeTidsByGroup: null, math: getMath(), renderHeading: true, - report: getReport(), + report: getReports()[0], voteColors: getVoteColors(), } From 897619574a010deb8d80dce452bb897464a44782 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 21 Oct 2024 16:35:15 -0400 Subject: [PATCH 6/7] Add more d3 subpackages needed to get Beeswarm stories working. --- .storybook/preview.js | 10 ++++++++-- package-lock.json | 41 ++++++++++++++++++++++++++++++++--------- package.json | 2 ++ 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/.storybook/preview.js b/.storybook/preview.js index b5e3c1e..65cc6b2 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -7,11 +7,17 @@ import jquery from 'jquery'; global.$ = jquery; global.jQuery = jquery; -import * as d3scale from 'd3-scale'; +import * as d3array from 'd3-array'; +import * as d3force from 'd3-force'; import * as d3geo from 'd3-geo'; +import * as d3scale from 'd3-scale'; +import * as d3voronoi from 'd3-voronoi'; global.d3 = { - ...d3scale, + ...d3array, + ...d3force, ...d3geo, + ...d3scale, + ...d3voronoi, }; // This is where we mock responses for PolisNet endpoints. diff --git a/package-lock.json b/package-lock.json index 3c38861..606982d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,11 +11,13 @@ "dependencies": { "@react-spring/web": "^9.7.4", "color": "~4.2.3", + "d3-array": "1.0.2", "d3-contour": "~1.1.2", "d3-force": "~1.2.1", "d3-geo": "1.5.0", "d3-scale": "1.0.4", "d3-scale-chromatic": "~1.1.1", + "d3-voronoi": "1.1.1", "hull.js": "^0.2.11", "radium": "^0.26.2", "react-chat-widget": "^3.0.5", @@ -3657,15 +3659,9 @@ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/d3-array": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", - "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", - "dependencies": { - "internmap": "1 - 2" - }, - "engines": { - "node": ">=12" - } + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.0.2.tgz", + "integrity": "sha512-LAd04GJ+Ah7EWWH4PWqqKtAGQAqoRf+HvWUcioWk5bNZUa8pZQYh9SXCKCkGfFN8hh4PezUtpstI1DmM009n5Q==" }, "node_modules/d3-collection": { "version": "1.0.7", @@ -3857,6 +3853,17 @@ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" }, + "node_modules/d3-time/node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/d3-timer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", @@ -3865,6 +3872,11 @@ "node": ">=12" } }, + "node_modules/d3-voronoi": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/d3-voronoi/-/d3-voronoi-1.1.1.tgz", + "integrity": "sha512-Moym3sFHgmzjQ9RhJN4Ek8eAPDtmOjf105ZFINsj4Qf5WPxQC/Ntsrxf5uxJ86JZPgxOVgR0SxGnFdXzL9L/mQ==" + }, "node_modules/date-fns": { "version": "2.30.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", @@ -7818,6 +7830,17 @@ "d3-timer": "^3.0.1" } }, + "node_modules/victory-vendor/node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/victory-vendor/node_modules/d3-scale": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", diff --git a/package.json b/package.json index c5735be..25e4ac8 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,13 @@ "dependencies": { "@react-spring/web": "^9.7.4", "color": "~4.2.3", + "d3-array": "1.0.2", "d3-contour": "~1.1.2", "d3-force": "~1.2.1", "d3-geo": "1.5.0", "d3-scale": "1.0.4", "d3-scale-chromatic": "~1.1.1", + "d3-voronoi": "1.1.1", "hull.js": "^0.2.11", "radium": "^0.26.2", "react-chat-widget": "^3.0.5", From 2b86d62d828b7a01119bb793f39cf08038b48c58 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 21 Oct 2024 16:43:05 -0400 Subject: [PATCH 7/7] Removed AllNull stories from Beeswarm and ParticipantsGraph stories. --- stories/compdem/client-report/Beeswarm.stories.js | 12 ------------ .../client-report/ParticipantsGraph.stories.js | 14 -------------- 2 files changed, 26 deletions(-) diff --git a/stories/compdem/client-report/Beeswarm.stories.js b/stories/compdem/client-report/Beeswarm.stories.js index 880c174..9cfb9d4 100644 --- a/stories/compdem/client-report/Beeswarm.stories.js +++ b/stories/compdem/client-report/Beeswarm.stories.js @@ -13,20 +13,8 @@ export default { const Template = (args) => -export const AllNull = Template.bind({}) -AllNull.args = { - conversation: null, - extremity: null, //{this.state.extremity} - math: null, //{this.state.math} - comments: null, //{this.state.comments} - probabilities: null, //{this.state.filteredCorrelationMatrix} - probabilitiesTids: null, //{this.state.filteredCorrelationTids} - voteColors: null, //{this.state.voteColors} -} - export const Default = Template.bind({}) Default.args = { - ...AllNull.args, conversation: getConversation(), extremity: getExtremity(), math: mathResult, diff --git a/stories/compdem/client-report/ParticipantsGraph.stories.js b/stories/compdem/client-report/ParticipantsGraph.stories.js index 68e0ba9..138156f 100644 --- a/stories/compdem/client-report/ParticipantsGraph.stories.js +++ b/stories/compdem/client-report/ParticipantsGraph.stories.js @@ -11,20 +11,6 @@ export default { const Template = (args) => -export const AllNull = Template.bind({}) -AllNull.args = { - comments: null, - groupNames: null, - badTids: null, - colorBlindMode: null, - formatTid: null, - repfulAgreeTidsByGroup: null, - math: null, - renderHeading: null, - report: null, - voteColors: null, -} - const comments = getComments(); // Logic from client-report/src/components/app.js#L274-291