├── README.md └── projects ├── Aligned-Platform-EnergizeAI ├── .DS_Store ├── README.md ├── aggregation │ ├── am1.ipynb │ └── energize-aggregator.ipynb ├── app │ ├── .env │ ├── .eslintrc.json │ ├── .gitignore │ ├── .lintstagedrc │ ├── .prettierignore │ ├── .prettierrc │ ├── README.md │ ├── bun.lockb │ ├── commitlint.config.js │ ├── components.json │ ├── next-env.d.ts │ ├── package-lock.json │ ├── package.json │ ├── postcss.config.js │ ├── public │ │ ├── EnergizeLogoFull.png │ │ ├── EnergizeLogoGraphic.png │ │ ├── favicon.ico │ │ ├── images │ │ │ ├── blogs │ │ │ │ ├── howitworks │ │ │ │ │ ├── abstract.jpg │ │ │ │ │ ├── chat.png │ │ │ │ │ ├── needs-your-help.png │ │ │ │ │ ├── propose.png │ │ │ │ │ ├── rate.png │ │ │ │ │ └── topic.png │ │ │ │ └── welcome │ │ │ │ │ ├── globe1.png │ │ │ │ │ └── rate2.png │ │ │ └── democratic-inputs-to-ai.png │ │ ├── logo.png │ │ ├── logolarge.png │ │ ├── logothin.png │ │ ├── next.svg │ │ ├── thumbnail.png │ │ └── vercel.svg │ ├── src │ │ ├── components │ │ │ ├── account │ │ │ │ ├── layout.tsx │ │ │ │ └── tabs │ │ │ │ │ └── my-profile.tsx │ │ │ ├── api-keys │ │ │ │ ├── api-keys.actions.tsx │ │ │ │ ├── api-keys.columns.tsx │ │ │ │ └── create-api-key.tsx │ │ │ ├── client-authorization.tsx │ │ │ ├── contributions │ │ │ │ └── layout.tsx │ │ │ ├── guidelines │ │ │ │ ├── create-new-guideline-admin.tsx │ │ │ │ ├── guidelines.columns.tsx │ │ │ │ ├── trending-guidelines.tsx │ │ │ │ └── trending-points.tsx │ │ │ ├── layout.tsx │ │ │ ├── live │ │ │ │ ├── constitution-demographics.tsx │ │ │ │ ├── constitution-outline.tsx │ │ │ │ └── radial-cluster-graph.tsx │ │ │ ├── members │ │ │ │ ├── members.actions.tsx │ │ │ │ └── members.columns.tsx │ │ │ ├── nav │ │ │ │ ├── main-nav.tsx │ │ │ │ ├── mobile-nav.tsx │ │ │ │ ├── tasks-dropdown.tsx │ │ │ │ └── user-dropdown.tsx │ │ │ ├── playground │ │ │ │ ├── constitution.active-gradient.tsx │ │ │ │ ├── constitution.needs-help.tsx │ │ │ │ ├── constitution.propose.tsx │ │ │ │ ├── constitution.tsx │ │ │ │ ├── experiment.active-guideline.tsx │ │ │ │ ├── experiment.chat-footer.tsx │ │ │ │ ├── experiment.guideline-actions.tsx │ │ │ │ ├── experiment.message.tsx │ │ │ │ ├── experiment.revise-guideline-popover.tsx │ │ │ │ ├── experiment.submit-guideline.tsx │ │ │ │ ├── experiment.suggest-prompt.tsx │ │ │ │ ├── experiment.tsx │ │ │ │ └── playground-directions.tsx │ │ │ ├── prolific │ │ │ │ ├── create-prolific-integration.tsx │ │ │ │ ├── prolific-completion-dialog.tsx │ │ │ │ ├── prolific-integrations.actions.tsx │ │ │ │ ├── prolific-integrations.columns.tsx │ │ │ │ └── prolific.columns.tsx │ │ │ ├── prompt-pool │ │ │ │ ├── add-to-prompt-pool.tsx │ │ │ │ └── prompt-pool.columns.tsx │ │ │ ├── rating-tags │ │ │ │ ├── rating-tags.actions.tsx │ │ │ │ └── rating-tags.columns.tsx │ │ │ ├── redirect.tsx │ │ │ ├── roles │ │ │ │ └── user-role-cell.tsx │ │ │ ├── share │ │ │ │ └── share-dropdown.tsx │ │ │ ├── spaces │ │ │ │ ├── create-new-space.tsx │ │ │ │ ├── dashboard │ │ │ │ │ ├── key-data.tsx │ │ │ │ │ ├── reports-widget.tsx │ │ │ │ │ └── top-contributors.tsx │ │ │ │ ├── export │ │ │ │ │ ├── export-form.tsx │ │ │ │ │ └── response-preview.tsx │ │ │ │ ├── layout.tsx │ │ │ │ └── settings │ │ │ │ │ └── space-admin-layout.tsx │ │ │ ├── topic-suggestions │ │ │ │ └── topic-suggestion-card.tsx │ │ │ ├── topics │ │ │ │ ├── delete-topic-dialog.tsx │ │ │ │ ├── move-topic-dialog.tsx │ │ │ │ ├── skeleton-topic-card.tsx │ │ │ │ ├── topic-form.tsx │ │ │ │ └── topic-tree-menu.tsx │ │ │ ├── ui │ │ │ │ ├── accordion.tsx │ │ │ │ ├── alert-dialog.tsx │ │ │ │ ├── alert.tsx │ │ │ │ ├── are-you-sure.tsx │ │ │ │ ├── aspect-ratio.tsx │ │ │ │ ├── autocomplete.tsx │ │ │ │ ├── avatar.tsx │ │ │ │ ├── badge.tsx │ │ │ │ ├── banner.tsx │ │ │ │ ├── button.tsx │ │ │ │ ├── calendar.tsx │ │ │ │ ├── card.tsx │ │ │ │ ├── checkbox.tsx │ │ │ │ ├── client-data-table.tsx │ │ │ │ ├── collapsible.tsx │ │ │ │ ├── command.tsx │ │ │ │ ├── context-menu.tsx │ │ │ │ ├── copy-button.tsx │ │ │ │ ├── data-table-column-header.tsx │ │ │ │ ├── data-table-copy-cell.tsx │ │ │ │ ├── data-table-date-cell.tsx │ │ │ │ ├── data-table-pagination.tsx │ │ │ │ ├── data-table.tsx │ │ │ │ ├── dialog.tsx │ │ │ │ ├── dropdown-menu.tsx │ │ │ │ ├── error-message.tsx │ │ │ │ ├── form.tsx │ │ │ │ ├── horizontal-navbar.tsx │ │ │ │ ├── hover-card.tsx │ │ │ │ ├── input-with-clear.tsx │ │ │ │ ├── input.tsx │ │ │ │ ├── label.tsx │ │ │ │ ├── loading-page.tsx │ │ │ │ ├── menubar.tsx │ │ │ │ ├── navigation-menu.tsx │ │ │ │ ├── no-data-warning.tsx │ │ │ │ ├── popover.tsx │ │ │ │ ├── progress.tsx │ │ │ │ ├── query-data-loader.tsx │ │ │ │ ├── radio-group.tsx │ │ │ │ ├── scroll-area.tsx │ │ │ │ ├── scroll-progress-circle.tsx │ │ │ │ ├── search-filter-combobox.tsx │ │ │ │ ├── search-input.tsx │ │ │ │ ├── section-header.tsx │ │ │ │ ├── select.tsx │ │ │ │ ├── separator.tsx │ │ │ │ ├── server-data-table.tsx │ │ │ │ ├── share-button.tsx │ │ │ │ ├── sheet.tsx │ │ │ │ ├── sidebar-layout.tsx │ │ │ │ ├── sidebar-nav.tsx │ │ │ │ ├── skeleton-card.tsx │ │ │ │ ├── skeleton.tsx │ │ │ │ ├── slider.tsx │ │ │ │ ├── small-spinner.tsx │ │ │ │ ├── spinner.tsx │ │ │ │ ├── switch.tsx │ │ │ │ ├── table.tsx │ │ │ │ ├── tabs.tsx │ │ │ │ ├── textarea.tsx │ │ │ │ ├── theme-provider.tsx │ │ │ │ ├── theme-toggle.tsx │ │ │ │ ├── toast.tsx │ │ │ │ ├── toaster.tsx │ │ │ │ ├── toggle.tsx │ │ │ │ ├── tooltip.tsx │ │ │ │ ├── use-toast.ts │ │ │ │ └── user-profile-name.tsx │ │ │ ├── users │ │ │ │ ├── demo-form.tsx │ │ │ │ └── user-score.tsx │ │ │ └── waitlist │ │ │ │ ├── add-to-waitlist.tsx │ │ │ │ ├── approve-waitlist-button.tsx │ │ │ │ ├── waitlist-form.tsx │ │ │ │ └── waitlist.columns..tsx │ │ ├── lib │ │ │ ├── energize-engine.ts │ │ │ ├── paths.ts │ │ │ ├── spaces.ts │ │ │ ├── transformer.ts │ │ │ ├── use-debounce.ts │ │ │ ├── use-paginated-table-state.ts │ │ │ ├── use-query-state.ts │ │ │ ├── use-stream-text-data-from-api.ts │ │ │ └── utils.ts │ │ ├── pages │ │ │ ├── 404.tsx │ │ │ ├── _app.tsx │ │ │ ├── _document.tsx │ │ │ ├── account │ │ │ │ ├── demographics.tsx │ │ │ │ └── profile.tsx │ │ │ ├── algo.tsx │ │ │ ├── feedback.tsx │ │ │ ├── index.tsx │ │ │ ├── live.tsx │ │ │ ├── prolific │ │ │ │ └── [space_id].tsx │ │ │ ├── s │ │ │ │ └── [shortened_url].tsx │ │ │ ├── spaces │ │ │ │ ├── [space_id] │ │ │ │ │ ├── api-keys.tsx │ │ │ │ │ ├── chat-messages.tsx │ │ │ │ │ ├── dashboard.tsx │ │ │ │ │ ├── export.tsx │ │ │ │ │ ├── guidelines.tsx │ │ │ │ │ ├── index.tsx │ │ │ │ │ ├── instructions.tsx │ │ │ │ │ ├── members.tsx │ │ │ │ │ ├── my-guidelines.tsx │ │ │ │ │ ├── my-ratings.tsx │ │ │ │ │ ├── prolific-integrations.tsx │ │ │ │ │ ├── prolific-members.tsx │ │ │ │ │ ├── prompt-pool.tsx │ │ │ │ │ ├── rating-tags.tsx │ │ │ │ │ ├── suggestions.tsx │ │ │ │ │ ├── taxonomy.tsx │ │ │ │ │ └── waitlist.tsx │ │ │ │ └── index.tsx │ │ │ └── waitlist.tsx │ │ ├── store │ │ │ └── playground-store.tsx │ │ ├── styles │ │ │ └── globals.css │ │ └── types │ │ │ ├── association-types.ts │ │ │ ├── data-table-types.ts │ │ │ ├── process-env.ts │ │ │ └── waitlist-types.ts │ ├── tailwind.config.js │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── process.png └── taxonomybuilder │ └── tbm.py ├── Ubuntu_AI_a_platform_for_equitable_and_inclusive_model_training └── frontend │ ├── frontend │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── after-login.png │ │ ├── create-new-post.png │ │ ├── login.png │ │ ├── main-page.png │ │ ├── register.png │ │ └── vite.svg │ ├── src │ │ ├── App.css │ │ ├── App.jsx │ │ ├── assets │ │ │ └── react.svg │ │ ├── components │ │ │ ├── auth │ │ │ │ ├── Login.jsx │ │ │ │ └── Register.jsx │ │ │ ├── layout │ │ │ │ ├── Comment.jsx │ │ │ │ ├── CurrentPost.jsx │ │ │ │ ├── Footer.jsx │ │ │ │ ├── Navbar.jsx │ │ │ │ ├── PostList.jsx │ │ │ │ ├── SubmitProject.jsx │ │ │ │ └── index.jsx │ │ │ └── posts │ │ │ │ ├── NewPost.jsx │ │ │ │ └── SinglePost.jsx │ │ ├── hooks │ │ │ ├── auths.js │ │ │ ├── posts.js │ │ │ └── user.js │ │ ├── lib │ │ │ ├── firebase.js │ │ │ └── routes.jsx │ │ ├── main.jsx │ │ └── utils │ │ │ ├── form-validation.js │ │ │ └── isUsernameExists.js │ └── vite.config.js │ ├── package-lock.json │ └── package.json ├── case_law_for_ai_policy ├── .editorconfig ├── .gitignore ├── README.md ├── case-tools │ ├── prompting-experiments.ipynb │ └── requirements.txt ├── data │ ├── .gitignore │ ├── cases.csv │ └── create_demo_inputs.py ├── docs │ ├── assets │ │ ├── cases.json │ │ ├── charts │ │ │ ├── apartment.html │ │ │ ├── bookstore.html │ │ │ └── mobile-game.html │ │ ├── img │ │ │ ├── apartment.svg │ │ │ ├── bookstore.svg │ │ │ ├── bot-profile.svg │ │ │ ├── case-law.svg │ │ │ ├── content-violation.svg │ │ │ ├── follow-up.svg │ │ │ ├── general-response.svg │ │ │ ├── mobile-game.svg │ │ │ ├── refusal.svg │ │ │ └── specific-response.svg │ │ ├── mobile-game-responses.json │ │ ├── people │ │ │ ├── axz.png │ │ │ ├── cqz.png │ │ │ ├── icheon.webp │ │ │ ├── kjfeng.jpg │ │ │ └── kxia.jpg │ │ └── pubs │ │ │ ├── mp2_workshop_case_law.pdf │ │ │ └── phase_1_blog_post.pdf │ ├── css │ │ └── style.css │ ├── index.html │ └── js │ │ └── index.js └── interactive │ ├── backend │ ├── requirements.txt │ └── server.py │ └── frontend │ ├── css │ └── base.css │ ├── index.html │ └── js │ ├── index.js │ └── mturk.js ├── collective_dialogues_for_democratic_input ├── README.md ├── experiments │ ├── conflict and war │ │ ├── CD1 - conflict │ │ │ ├── CD1_conflict.csv │ │ │ ├── CD1_conflict_DG.csv │ │ │ ├── openended_democratic_inputs_to_policy_CD1_conflict_N300.ipynb │ │ │ └── policy_candidates_conflict.csv │ │ ├── CD1 - pretest [conflict] │ │ │ ├── CD1_pretest_conflict.csv │ │ │ ├── CD1_pretest_conflict_DG.csv │ │ │ └── openended_democratic_inputs_to_policy_CD1_conflict_pretest.ipynb │ │ ├── CD2 - conflict │ │ │ ├── CD2_conflict.csv │ │ │ └── CD2_conflict_DG.csv │ │ ├── CD3 - conflict │ │ │ ├── CD3_conflict.csv │ │ │ ├── CD3_conflict_DG.csv │ │ │ ├── conflictpolicyv0_4_check_against_universal_human_rights.ipynb │ │ │ └── policy_eval_conflict.ipynb │ │ └── final_policy_conflict.md │ ├── medical advice │ │ ├── CD1 - med │ │ │ ├── CD1_med_DG.csv │ │ │ ├── CD1_med_N200.csv │ │ │ └── openended_democratic_inputs_to_policy_CD1_med_N200.ipynb │ │ ├── CD1 - pretest C [med] │ │ │ ├── CD1_pretest_C_med.csv │ │ │ ├── CD1_pretest_C_med_DG.csv │ │ │ └── openended_democratic_inputs_to_policy_CD1_pretest_C_med.ipynb │ │ ├── CD2 - med │ │ │ ├── CD2_med.csv │ │ │ └── CD2_med_DG.csv │ │ ├── CD2 - pretest [med] │ │ │ ├── CD2-pretest [med].csv │ │ │ ├── CD2_pretest_[med] DG.csv │ │ │ └── feedback_summary_CD2_med_pretest.ipynb │ │ ├── CD3 - med - UK │ │ │ ├── policy_eval_med_UK.csv │ │ │ └── policy_eval_med_UK_DG.csv │ │ ├── CD3 - med │ │ │ ├── Policy eval - med.textClipping │ │ │ ├── medpolicyv0_5_check_against_universal_human_rights.ipynb │ │ │ ├── policy_eval_med.csv │ │ │ ├── policy_eval_med.ipynb │ │ │ └── policy_eval_med_DG.csv │ │ └── final_policy_med.md │ ├── other │ │ ├── CD1 - pretest B │ │ │ ├── CD1_pretest_B.csv │ │ │ ├── CD1_pretest_B_DG.csv │ │ │ └── openended_democratic_inputs_to_policy_CD1_pretest_B.ipynb │ │ └── CD1 - pretest │ │ │ ├── CD1_pretest_DG.csv │ │ │ ├── cd1_pretest.csv │ │ │ └── openended_democratic_inputs_to_policy_CD1_pretest.ipynb │ ├── research_log.md │ └── vaccine info │ │ ├── CD1 - pretest [vax] │ │ ├── CD1_vax_pretest.csv │ │ ├── CD1_vax_pretest_DG.csv │ │ └── openended_democratic_inputs_to_policy_CD1_vax_pretest.ipynb │ │ ├── CD1 - vax │ │ ├── CD1_vax.csv │ │ ├── CD1_vax_DG.csv │ │ ├── openended_democratic_inputs_to_policy_CD1_vax_N300.ipynb │ │ └── policy_candidates_vax.csv │ │ ├── CD2 - vax │ │ ├── CD2_vax.csv │ │ └── CD2_vax_DG.csv │ │ ├── CD3 - vax │ │ ├── CD3_vax.csv │ │ ├── CD3_vax_DG.csv │ │ ├── policy_eval_vax.ipynb │ │ └── vaxpolicyv0_4_check_against_universal_human_rights.ipynb │ │ └── final_policy_vax.md ├── img │ └── process-diagram.png └── tools │ ├── human rights consitency check │ ├── UDHR_articles.csv │ └── check_against_universal_human_rights.ipynb │ └── policy generation │ ├── CD1_conflict.csv │ └── policy_gen.ipynb ├── deliberation_at_scale ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .gitlab-ci.yml ├── .npmrc ├── README.md ├── deliberation-at-scale.code-workspace ├── documentation │ ├── deploying.md │ └── images │ │ └── logo.png ├── nx.json ├── package-lock.json ├── package.json └── packages │ ├── data-core │ ├── .env.example │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── documentation │ │ ├── base-sql.md │ │ └── images │ │ │ └── entity-impression.png │ ├── drizzle.config.ts │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── commands │ │ │ ├── generateMagicLink.ts │ │ │ └── migrate.ts │ │ ├── config │ │ │ └── constants.ts │ │ ├── database │ │ │ ├── migrations │ │ │ │ ├── 0000_tough_marten_broadcloak.sql │ │ │ │ ├── 0001_quick_scourge.sql │ │ │ │ ├── 0002_talented_crusher_hogan.sql │ │ │ │ ├── 0003_wet_tana_nile.sql │ │ │ │ ├── 0004_melted_sprite.sql │ │ │ │ ├── 0005_typical_mac_gargan.sql │ │ │ │ ├── 0006_cynical_alex_wilder.sql │ │ │ │ ├── 0007_lean_mantis.sql │ │ │ │ ├── 0008_sloppy_the_order.sql │ │ │ │ ├── 0009_living_steel_serpent.sql │ │ │ │ ├── 0010_black_toad.sql │ │ │ │ ├── 0011_giant_unus.sql │ │ │ │ ├── 0012_slow_famine.sql │ │ │ │ ├── 0013_bumpy_magus.sql │ │ │ │ ├── 0014_tired_whiplash.sql │ │ │ │ ├── 0015_colossal_runaways.sql │ │ │ │ ├── 0016_short_bill_hollister.sql │ │ │ │ ├── 0017_useful_doctor_faustus.sql │ │ │ │ ├── 0018_smiling_havok.sql │ │ │ │ ├── 0019_workable_chat.sql │ │ │ │ ├── 0020_dazzling_psylocke.sql │ │ │ │ ├── 0021_flaky_secret_warriors.sql │ │ │ │ ├── 0022_fixed_argent.sql │ │ │ │ ├── 0023_nosy_lila_cheney.sql │ │ │ │ ├── 0024_slippery_carlie_cooper.sql │ │ │ │ ├── 0025_new_chameleon.sql │ │ │ │ ├── 0026_warm_silver_sable.sql │ │ │ │ ├── 0027_spooky_sentinels.sql │ │ │ │ ├── 0028_shiny_roulette.sql │ │ │ │ ├── 0029_open_cerise.sql │ │ │ │ ├── 0030_colorful_patriot.sql │ │ │ │ ├── 0031_yielding_nemesis.sql │ │ │ │ ├── 0032_plain_sway.sql │ │ │ │ ├── 0033_glossy_mockingbird.sql │ │ │ │ ├── 0034_aberrant_nightshade.sql │ │ │ │ ├── 0035_amused_sunfire.sql │ │ │ │ ├── 0036_real_ben_parker.sql │ │ │ │ ├── 0037_chemical_overlord.sql │ │ │ │ ├── 0038_whole_lila_cheney.sql │ │ │ │ ├── 0039_clean_black_widow.sql │ │ │ │ ├── 0040_mature_puff_adder.sql │ │ │ │ ├── 0041_free_talisman.sql │ │ │ │ ├── 0042_modern_wolf_cub.sql │ │ │ │ ├── 0043_abandoned_luckman.sql │ │ │ │ └── meta │ │ │ │ │ ├── 0000_snapshot.json │ │ │ │ │ ├── 0001_snapshot.json │ │ │ │ │ ├── 0002_snapshot.json │ │ │ │ │ ├── 0003_snapshot.json │ │ │ │ │ ├── 0004_snapshot.json │ │ │ │ │ ├── 0005_snapshot.json │ │ │ │ │ ├── 0006_snapshot.json │ │ │ │ │ ├── 0007_snapshot.json │ │ │ │ │ ├── 0008_snapshot.json │ │ │ │ │ ├── 0009_snapshot.json │ │ │ │ │ ├── 0010_snapshot.json │ │ │ │ │ ├── 0011_snapshot.json │ │ │ │ │ ├── 0012_snapshot.json │ │ │ │ │ ├── 0013_snapshot.json │ │ │ │ │ ├── 0014_snapshot.json │ │ │ │ │ ├── 0015_snapshot.json │ │ │ │ │ ├── 0016_snapshot.json │ │ │ │ │ ├── 0017_snapshot.json │ │ │ │ │ ├── 0018_snapshot.json │ │ │ │ │ ├── 0019_snapshot.json │ │ │ │ │ ├── 0020_snapshot.json │ │ │ │ │ ├── 0021_snapshot.json │ │ │ │ │ ├── 0022_snapshot.json │ │ │ │ │ ├── 0023_snapshot.json │ │ │ │ │ ├── 0024_snapshot.json │ │ │ │ │ ├── 0025_snapshot.json │ │ │ │ │ ├── 0026_snapshot.json │ │ │ │ │ ├── 0027_snapshot.json │ │ │ │ │ ├── 0028_snapshot.json │ │ │ │ │ ├── 0029_snapshot.json │ │ │ │ │ ├── 0030_snapshot.json │ │ │ │ │ ├── 0031_snapshot.json │ │ │ │ │ ├── 0032_snapshot.json │ │ │ │ │ ├── 0033_snapshot.json │ │ │ │ │ ├── 0034_snapshot.json │ │ │ │ │ ├── 0035_snapshot.json │ │ │ │ │ ├── 0036_snapshot.json │ │ │ │ │ ├── 0037_snapshot.json │ │ │ │ │ ├── 0038_snapshot.json │ │ │ │ │ ├── 0039_snapshot.json │ │ │ │ │ ├── 0040_snapshot.json │ │ │ │ │ ├── 0041_snapshot.json │ │ │ │ │ ├── 0042_snapshot.json │ │ │ │ │ ├── 0043_snapshot.json │ │ │ │ │ └── _journal.json │ │ │ ├── schema.ts │ │ │ └── types.ts │ │ ├── index.ts │ │ └── servers │ │ │ └── voyager.ts │ └── tsconfig.json │ ├── edge-functions │ ├── .env.example │ ├── .gitignore │ ├── package.json │ └── supabase │ │ ├── config.toml │ │ └── functions │ │ ├── import_map.json │ │ ├── login-anonymous │ │ └── index.ts │ │ └── transcribe │ │ └── index.ts │ ├── frontend │ ├── .env.example │ ├── .eslintrc.js │ ├── .gitignore │ ├── .storybook │ │ ├── main.ts │ │ └── preview.ts │ ├── README.md │ ├── app │ │ ├── [lang] │ │ │ ├── evaluate │ │ │ │ └── [roomId] │ │ │ │ │ └── page.tsx │ │ │ ├── layout.tsx │ │ │ ├── lobby │ │ │ │ ├── idle │ │ │ │ │ └── page.tsx │ │ │ │ ├── invalid │ │ │ │ │ └── page.tsx │ │ │ │ ├── page.tsx │ │ │ │ └── permission │ │ │ │ │ └── page.tsx │ │ │ ├── login │ │ │ │ ├── anonymous │ │ │ │ │ └── page.tsx │ │ │ │ └── page.tsx │ │ │ ├── page.tsx │ │ │ ├── profile │ │ │ │ └── page.tsx │ │ │ ├── register │ │ │ │ └── page.tsx │ │ │ └── room │ │ │ │ └── [roomId] │ │ │ │ ├── ai │ │ │ │ └── page.tsx │ │ │ │ ├── chat │ │ │ │ └── page.tsx │ │ │ │ ├── compact │ │ │ │ └── page.tsx │ │ │ │ ├── layout.tsx │ │ │ │ └── page.tsx │ │ ├── globals.css │ │ ├── layout.tsx │ │ └── not-found.tsx │ ├── codegen.ts │ ├── components │ │ ├── Button.tsx │ │ ├── ChatActions.tsx │ │ ├── ChatFlow │ │ │ ├── AnonymousLoginChatFlow.tsx │ │ │ ├── EvaluateChatFlow.tsx │ │ │ ├── IdleChatFlow.tsx │ │ │ ├── InvalidChatFlow.tsx │ │ │ ├── LobbyChatFlow.tsx │ │ │ ├── LoginChatFlow.tsx │ │ │ ├── PermissionChatFlow.tsx │ │ │ ├── ProfileChatFlow.tsx │ │ │ ├── RegisterChatFlow.tsx │ │ │ └── index.tsx │ │ ├── ChatInput.tsx │ │ ├── ChatMessage.tsx │ │ ├── ChatMessageList.tsx │ │ ├── ColouredHeader.tsx │ │ ├── Divider.tsx │ │ ├── EntityIcons │ │ │ ├── index.stories.tsx │ │ │ └── index.ts │ │ ├── Language.tsx │ │ ├── LatestRoomOutcome.tsx │ │ ├── Loader.tsx │ │ ├── LocalMedia │ │ │ ├── RequestPermissions.tsx │ │ │ ├── conditional.tsx │ │ │ ├── context.ts │ │ │ └── provider.tsx │ │ ├── NavLink.tsx │ │ ├── NoPrerender.tsx │ │ ├── Pill.tsx │ │ ├── Providers.tsx │ │ ├── RoomChatMessages.tsx │ │ ├── RoomChatSummary.tsx │ │ ├── RoomConnection │ │ │ ├── WaitingForRoom.tsx │ │ │ ├── conditional.tsx │ │ │ ├── context.tsx │ │ │ └── provider.tsx │ │ ├── RoomMenu.tsx │ │ ├── RoomOutcome.tsx │ │ ├── RoomParticipants │ │ │ ├── controls.tsx │ │ │ └── index.tsx │ │ ├── RoomTopic.tsx │ │ ├── RoomTranscription.tsx │ │ ├── TimeProgressBar.tsx │ │ ├── VideoView.tsx │ │ └── __Template.tsx │ ├── documentation │ │ └── images │ │ │ ├── basic-prototype-overview.png │ │ │ └── confirm-email-off.png │ ├── generated │ │ ├── graphql.tsx │ │ └── schema.graphql │ ├── graphql.config.yml │ ├── hooks │ │ ├── useAuth.ts │ │ ├── useChatFlowMessages.ts │ │ ├── useChatFlowState.ts │ │ ├── useDemographicsSurvey.ts │ │ ├── useFlowSteps.tsx │ │ ├── useGiveOpinion.ts │ │ ├── useIsMobile.ts │ │ ├── useLanguage.ts │ │ ├── useLobby.ts │ │ ├── useLocalMedia.tsx │ │ ├── useLocalizedPush.ts │ │ ├── usePingParticipant.ts │ │ ├── useProfile.ts │ │ ├── useQuickReplies.tsx │ │ ├── useRealtimeBroadcast.ts │ │ ├── useRealtimeQuery.ts │ │ ├── useRoom.ts │ │ ├── useRoomActions.ts │ │ ├── useRoomMessages.ts │ │ ├── useScrollToBottom.ts │ │ ├── useTheme.ts │ │ ├── useTranscribe.ts │ │ └── useWhisper │ │ │ ├── configs.ts │ │ │ ├── index.ts │ │ │ ├── lamejs.d.ts │ │ │ ├── types.ts │ │ │ └── useWhisper.ts │ ├── lingui.config.js │ ├── locales.js │ ├── locales │ │ ├── en.js │ │ ├── en.po │ │ ├── nl.js │ │ └── nl.po │ ├── middleware.ts │ ├── next.config.js │ ├── package.json │ ├── pages │ │ └── api │ │ │ └── auth.ts │ ├── postcss.config.js │ ├── public │ │ ├── favicon.ico │ │ ├── favicon_io │ │ │ ├── android-chrome-192x192.png │ │ │ ├── android-chrome-512x512.png │ │ │ ├── apple-touch-icon.png │ │ │ ├── favicon-16x16.png │ │ │ ├── favicon-32x32.png │ │ │ └── site.webmanifest │ │ └── images │ │ │ ├── logo.png │ │ │ ├── wordmark-bg-white.png │ │ │ └── wordmark.png │ ├── state │ │ ├── apollo.ts │ │ ├── fragments │ │ │ ├── FullOpinion.graphql │ │ │ ├── FullOutcome.graphql │ │ │ └── FullParticipant.graphql │ │ ├── queries │ │ │ ├── CreateHelpRequest.graphql │ │ │ ├── CreateOpinion.graphql │ │ │ ├── CreateParticipant.graphql │ │ │ ├── EnterRoom.graphql │ │ │ ├── GetLobbyParticipants.graphql │ │ │ ├── GetRoomMessages.graphql │ │ │ ├── GetRoomOutcomes.graphql │ │ │ ├── GetRoomParticipants.graphql │ │ │ ├── GetRooms.graphql │ │ │ ├── GetTopics.graphql │ │ │ ├── GetUser.graphql │ │ │ ├── LeaveRoom.graphql │ │ │ ├── PingParticipant.graphql │ │ │ ├── SendRoomMessage.graphql │ │ │ ├── UpdateDemographics.graphql │ │ │ └── UpdateNickName.graphql │ │ ├── slices │ │ │ ├── fetches.ts │ │ │ ├── flow.ts │ │ │ ├── profile.ts │ │ │ └── room.ts │ │ ├── store.ts │ │ └── supabase.ts │ ├── tailwind.config.js │ ├── tsconfig.json │ ├── types │ │ ├── database.ts │ │ └── flows.ts │ └── utilities │ │ ├── constants.tsx │ │ ├── loadCatalog.ts │ │ ├── sleep.ts │ │ ├── supabase.ts │ │ └── text.ts │ └── orchestrator │ ├── .env.example │ ├── .eslintrc.js │ ├── .gitignore │ ├── .swcrc │ ├── README.md │ ├── ecosystem.config.js │ ├── lingui.config.js │ ├── locales.js │ ├── locales │ ├── en.js │ ├── en.po │ ├── nl.js │ └── nl.po │ ├── package-lock.json │ ├── package.json │ ├── scripts │ └── setup-vps.sh │ ├── src │ ├── config │ │ ├── constants.ts │ │ ├── crontab.ts │ │ ├── test-0-topology.ts │ │ ├── test-1-topology.ts │ │ └── topology.ts │ ├── generated │ │ ├── database-graphile_worker.types.ts │ │ └── database-public.types.ts │ ├── index.ts │ ├── lib │ │ ├── graphileWorker.ts │ │ ├── openai.ts │ │ ├── sentry.ts │ │ ├── supabase.ts │ │ └── whereby.ts │ ├── listener.ts │ ├── migrator.ts │ ├── runner.ts │ ├── scheduler.ts │ ├── tasks │ │ ├── enrichClosure.ts │ │ ├── enrichConsensusProposal.ts │ │ ├── enrichConsensusStimulation.ts │ │ ├── enrichEqualParticipation.ts │ │ ├── enrichGroupIntroduction.ts │ │ ├── enrichModeratorIntroduction.ts │ │ ├── enrichSafeBehaviour.ts │ │ ├── enrichSmoothConversation.ts │ │ ├── enrichTopicIntroduction.ts │ │ ├── enrichVoteCheck.ts │ │ ├── handleQueuedParticipants.ts │ │ ├── reschedule.ts │ │ ├── screencast.ts │ │ ├── triggerRoomProgressionUpdates.ts │ │ ├── updateRoomProgression.ts │ │ ├── verifyConsensusForming.ts │ │ ├── verifyEasyLanguage.ts │ │ ├── verifyEasyMessage.ts │ │ ├── verifyEmotionalWellbeing.ts │ │ ├── verifyEnoughContent.ts │ │ ├── verifyEqualParticipation.ts │ │ ├── verifyGroupIntroduction.ts │ │ ├── verifyOffTopic.ts │ │ ├── verifyRequestedEnd.ts │ │ ├── verifySafeLanguage.ts │ │ ├── verifySafeMessage.ts │ │ └── verifySmoothConversation.ts │ ├── types.ts │ └── utilities │ │ ├── messages.ts │ │ ├── moderations.ts │ │ ├── outcomes.ts │ │ ├── participants.ts │ │ ├── progression.ts │ │ ├── rooms.ts │ │ ├── tasks.ts │ │ ├── time.ts │ │ └── topics.ts │ └── tsconfig.json ├── democratic_fine_tuning ├── README.md ├── data │ ├── demographics.csv │ ├── moral-graph-all-participants.json │ ├── moral-graph-prolific-run.json │ ├── queries │ │ └── bridging │ │ │ ├── bridging.csv │ │ │ └── bridging.sql │ └── survey-responses.csv ├── graph.png ├── jest.config.js ├── migrations │ ├── 20230731105749_values_cards │ │ └── migration.sql │ ├── 20230731133752_constrain_chat_to_user │ │ └── migration.sql │ ├── 20230731135527_link_values_cards_to_user_directly_for_easier_querying │ │ └── migration.sql │ ├── 20230731144307_rm_constraint │ │ └── migration.sql │ ├── 20230809115927_adding_vote_table │ │ └── migration.sql │ ├── 20230810082654_vector │ │ └── migration.sql │ ├── 20230810112613_vectors │ │ └── migration.sql │ ├── 20230811132015_rename_options_to_draw │ │ └── migration.sql │ ├── 20230811143159_rename_link_to_edge │ │ └── migration.sql │ ├── 20230812133700_edge_renaming │ │ └── migration.sql │ ├── 20230818135329_impressions │ │ └── migration.sql │ ├── 20230821182232_ │ │ └── migration.sql │ ├── 20230821195249_provisional_canonical_card │ │ └── migration.sql │ ├── 20230823091005_edge_hypothesis │ │ └── migration.sql │ ├── 20230823152938_renaming │ │ └── migration.sql │ ├── 20230824075024_chat_metadata │ │ └── migration.sql │ ├── 20230830041652_add_story_to_hypotheses │ │ └── migration.sql │ ├── 20230901112630_add_cascade_deletion_on_votes_edges_and_edgehypothesis_for_canonical_vcs │ │ └── migration.sql │ ├── 20230904100458_unqiue_constraint_canonical_cards │ │ └── migration.sql │ ├── 20230907054722_evaluation │ │ └── migration.sql │ ├── 20230907100156_chats_copy_functionality │ │ └── migration.sql │ ├── 20230907183710_multi_case_chats │ │ └── migration.sql │ ├── 20230908075839_change_default_case │ │ └── migration.sql │ ├── 20230908081258_rename_case │ │ └── migration.sql │ ├── 20230911150601_on_delete_cascade_for_values_cards │ │ └── migration.sql │ ├── 20230914141420_add_run_id_to_edge_hypothesis │ │ └── migration.sql │ ├── 20230914155552_add_relationship_and_comment_to_edges │ │ └── migration.sql │ ├── 20230919094955_save_story_and_run_id_to_edges │ │ └── migration.sql │ ├── 20230919132258_drop_unnecessary_column_on_chat │ │ └── migration.sql │ ├── 20230920144749_add_condition_to_edge_and_edge_hypothesis │ │ └── migration.sql │ ├── 20230921124654_add_prolific_information_to_user │ │ └── migration.sql │ ├── 20230921165224_prolific_signup_type │ │ └── migration.sql │ ├── 20230922083205_drop_unnecessary_prolific_columns │ │ └── migration.sql │ ├── 20230922093003_add_case_id_to_votes_and_impressions │ │ └── migration.sql │ └── migration_lock.toml ├── package-lock.json ├── package.json ├── public │ └── favicon.ico ├── remix.config.js ├── remix.env.d.ts ├── schema.prisma ├── tailwind.config.ts ├── tests │ ├── chat.test.ts │ ├── delete-messages.test.ts │ ├── services │ │ ├── articulator.test.ts │ │ └── deduplication.test.ts │ ├── transcripts │ │ ├── articulate_values_card_called.json │ │ ├── ellie_articulation.json │ │ ├── her.json │ │ ├── long_tangent.json │ │ ├── mariana_articulation.json │ │ └── no_function_call.json │ ├── utils.test.ts │ ├── utils.ts │ └── values │ │ ├── empathic_and_embodied.json │ │ ├── holistic_decision_making.json │ │ ├── quality.json │ │ ├── similar_but_different.json │ │ └── values.json ├── tsconfig.json └── yarn.lock ├── generative_social_choice └── README.md ├── inclusive_ai_a_chatgpt_plugin_and_dao_to_engage_marginalized_groups_in_ai ├── Inclusive.AI app │ ├── buildspec.yml │ └── website │ │ ├── README.md │ │ ├── next.config.js │ │ ├── package.json │ │ ├── pnpm-lock.yaml │ │ ├── postcss.config.js │ │ ├── public │ │ ├── fonts │ │ │ └── Inter-roman.var.woff2 │ │ ├── next.svg │ │ └── vercel.svg │ │ ├── src │ │ ├── assets │ │ │ └── images │ │ │ │ ├── chat-gpt-logo.png │ │ │ │ └── dalle-nurse-helping-ceo.png │ │ ├── components │ │ │ ├── Chat │ │ │ │ ├── AiChatBox.tsx │ │ │ │ ├── ChatMessage.tsx │ │ │ │ ├── ChatSideIconButton.tsx │ │ │ │ ├── MessageBoxScrollDownButton.tsx │ │ │ │ ├── MessageStack.tsx │ │ │ │ ├── PromptSuggestion.tsx │ │ │ │ ├── SocketChatBox.tsx │ │ │ │ └── index.ts │ │ │ ├── ColumnRow.tsx │ │ │ ├── CountrySelect.tsx │ │ │ ├── GotoLinkButton.tsx │ │ │ ├── LikertScale │ │ │ │ ├── LikertScaleQuestion.tsx │ │ │ │ ├── LikertScaleSurvey.tsx │ │ │ │ └── index.ts │ │ │ ├── Link.tsx │ │ │ ├── LoadingScreen.tsx │ │ │ ├── Modal │ │ │ │ ├── ModalInnerBox.ts │ │ │ │ └── index.ts │ │ │ ├── Navbar │ │ │ │ ├── Navbar.tsx │ │ │ │ └── index.ts │ │ │ ├── Proposal │ │ │ │ ├── ProposalOption.tsx │ │ │ │ ├── ProposalQuadraticVote.tsx │ │ │ │ ├── ProposalRankVote.tsx │ │ │ │ └── index.ts │ │ │ ├── Providers │ │ │ │ ├── Web3AuthProvider.tsx │ │ │ │ └── index.ts │ │ │ ├── SelectShowOnHoverBox.tsx │ │ │ ├── ShadowedBox.tsx │ │ │ ├── Topbar.tsx │ │ │ ├── ValueQuestionBox.tsx │ │ │ ├── VoteStats │ │ │ │ ├── BorderedLinearProgress.tsx │ │ │ │ ├── Choice.tsx │ │ │ │ ├── ChoiceTopVoters.tsx │ │ │ │ ├── VoteStats.tsx │ │ │ │ ├── VotesChart.tsx │ │ │ │ └── index.ts │ │ │ ├── VotingIntro.tsx │ │ │ └── index.ts │ │ ├── config │ │ │ └── web3auth.ts │ │ ├── data │ │ │ ├── countries.ts │ │ │ ├── erc20MintableAbi.ts │ │ │ └── surveyQuestions.ts │ │ ├── hooks │ │ │ ├── index.ts │ │ │ ├── useSnapshotProposalData.ts │ │ │ ├── useSnapshotUserVotes.ts │ │ │ ├── useSocket.ts │ │ │ └── useWeb3Auth.ts │ │ ├── layouts │ │ │ ├── BodyLayout.tsx │ │ │ ├── MainLayout.tsx │ │ │ ├── Web3AuthGatedLayout.tsx │ │ │ └── index.ts │ │ ├── pages │ │ │ ├── _app.tsx │ │ │ ├── _document.tsx │ │ │ ├── auth │ │ │ │ └── index.tsx │ │ │ ├── controlpanel │ │ │ │ └── index.tsx │ │ │ ├── discuss │ │ │ │ └── index.tsx │ │ │ ├── index.tsx │ │ │ ├── intro │ │ │ │ ├── index-prev.tsx │ │ │ │ └── index.tsx │ │ │ ├── profile │ │ │ │ └── index.tsx │ │ │ └── vote │ │ │ │ └── index.tsx │ │ ├── services │ │ │ ├── admin.ts │ │ │ ├── ai.ts │ │ │ ├── discuss.ts │ │ │ ├── index.ts │ │ │ ├── survey.ts │ │ │ └── user.ts │ │ ├── slices │ │ │ ├── app.ts │ │ │ ├── chat.ts │ │ │ ├── group.ts │ │ │ └── user.ts │ │ ├── store.ts │ │ ├── styles │ │ │ └── global.css │ │ ├── theme.ts │ │ ├── types │ │ │ ├── chat.ts │ │ │ ├── index.ts │ │ │ ├── pod.ts │ │ │ ├── profile.ts │ │ │ ├── snapshot.ts │ │ │ └── user.ts │ │ └── utils │ │ │ ├── index.ts │ │ │ ├── misc.ts │ │ │ ├── snapshot.ts │ │ │ └── web3auth.ts │ │ ├── tailwind.config.js │ │ └── tsconfig.json └── README.md ├── making_ai_transparent_and_accountable ├── README.md └── rappler_aidialogue │ ├── .devcontainer │ ├── devcontainer.json │ └── env.example │ ├── .firebaserc │ ├── .github │ └── workflows │ │ ├── on-push-prod.yaml │ │ └── on-push-staging.yaml │ ├── .gitignore │ ├── .nvmrc │ ├── README.md │ ├── firebase.json │ ├── firestore.indexes.json │ ├── firestore.rules │ ├── functions │ ├── .eslintrc.js │ ├── .gitignore │ ├── chatgpt.js │ ├── index.js │ ├── moderation.js │ ├── package-lock.json │ ├── package.json │ └── prompts.js │ ├── hosting │ ├── .gitignore │ ├── .nvmrc │ ├── README.md │ ├── components │ │ ├── ParticipantBox.js │ │ ├── PolicyGuidelinesTerms.js │ │ ├── QuestionBox.js │ │ ├── ResponseBox.js │ │ ├── SessionReg.js │ │ └── UserAvatar.js │ ├── env.example │ ├── globals.css │ ├── lib │ │ ├── anonanimals │ │ │ ├── adjectives.js │ │ │ ├── animals.js │ │ │ └── index.js │ │ ├── context.js │ │ ├── firebase.js │ │ └── utils.js │ ├── package-lock.json │ ├── package.json │ ├── pages │ │ ├── _app.js │ │ └── index.js │ └── public │ │ └── static │ │ └── images │ │ ├── alligator.png │ │ ├── anteater.png │ │ ├── armadillo.png │ │ ├── auroch.png │ │ ├── axolotl.png │ │ ├── badger.png │ │ ├── bat.png │ │ ├── beaver.png │ │ ├── btn_google_signin_dark_pressed_web.png │ │ ├── buffalo.png │ │ ├── camel.png │ │ ├── capybara.png │ │ ├── chameleon.png │ │ ├── cheetah.png │ │ ├── chinchilla.png │ │ ├── chipmunk.png │ │ ├── chupacabra.png │ │ ├── cormorant.png │ │ ├── coyote.png │ │ ├── crow.png │ │ ├── dingo.png │ │ ├── dinosaur.png │ │ ├── dolphin.png │ │ ├── dragon.png │ │ ├── duck.png │ │ ├── elephant.png │ │ ├── ferret.png │ │ ├── fox.png │ │ ├── frog.png │ │ ├── giraffe.png │ │ ├── gopher.png │ │ ├── grizzly.png │ │ ├── hedgehog.png │ │ ├── hippo.png │ │ ├── hyena.png │ │ ├── ibex.png │ │ ├── ifrit.png │ │ ├── iguana.png │ │ ├── jackal.png │ │ ├── kangaroo.png │ │ ├── koala.png │ │ ├── kraken.png │ │ ├── lemur.png │ │ ├── leopard.png │ │ ├── liger.png │ │ ├── llama.png │ │ ├── logo1.png │ │ ├── logo2.png │ │ ├── manatee.png │ │ ├── mink.png │ │ ├── monkey.png │ │ ├── moose.png │ │ ├── narwhal.png │ │ ├── nyancat.png │ │ ├── orangutan.png │ │ ├── otter.png │ │ ├── panda.png │ │ ├── penguin.png │ │ ├── platypus.png │ │ ├── pumpkin.png │ │ ├── python.png │ │ ├── quagga.png │ │ ├── rabbit.png │ │ ├── raccoon.png │ │ ├── rhino.png │ │ ├── sheep.png │ │ ├── shrew.png │ │ ├── skunk.png │ │ ├── slowloris.png │ │ ├── squirrel.png │ │ ├── turtle.png │ │ ├── walrus.png │ │ ├── wolf.png │ │ ├── wolverine.png │ │ └── wombat.png │ └── seed │ ├── auth_export │ ├── accounts.json │ └── config.json │ ├── firebase-export-metadata.json │ └── firestore_export │ ├── all_namespaces │ └── all_kinds │ │ ├── all_namespaces_all_kinds.export_metadata │ │ └── output-0 │ └── firestore_export.overall_export_metadata └── vtaiwan_and_chatham_house_bridging_the_recursive_public └── README.md /projects/Aligned-Platform-EnergizeAI/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/.DS_Store -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_Y2xlcmsuZW5lcmdpemUuYWkk 2 | 3 | ENERGIZE_ENGINE=api.energize.ai 4 | NEXT_PUBLIC_ENERGIZE_ENGINE=api.energize.ai 5 | 6 | NEXT_PUBLIC_ENERGIZE_ENGINE_KEY= 7 | ENERGIZE_ENGINE_KEY= -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": ["next/core-web-vitals", "prettier"], 4 | "overrides": [ 5 | { 6 | "files": ["*.js"], 7 | "parser": "espree", 8 | "parserOptions": { 9 | "ecmaVersion": 2020 10 | } 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.gitignore: -------------------------------------------------------------------------------- 1 | .vercel 2 | .DS_Store -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.lintstagedrc: -------------------------------------------------------------------------------- 1 | { 2 | "*": ["prettier --write --ignore-unknown"] 3 | } 4 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.prettierignore: -------------------------------------------------------------------------------- 1 | .next 2 | coverage 3 | dist 4 | compiled 5 | build-next-static -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": false, 4 | "semi": false, 5 | "plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"], 6 | "importOrder": ["[^\\s]/(.*)$", "^[./]"], 7 | "importOrderSeparation": true, 8 | "importOrderSortSpecifiers": true, 9 | "printWidth": 120 10 | } 11 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/bun.lockb -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ["gitmoji"], 3 | rules: { "type-empty": [0, "always"] }, 4 | } 5 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/components.json: -------------------------------------------------------------------------------- 1 | { 2 | "style": "default", 3 | "tailwind": { 4 | "config": "tailwind.config.js", 5 | "css": "src/styles/globals.css", 6 | "baseColor": "slate", 7 | "cssVariables": true 8 | }, 9 | "aliases": { 10 | "components": "@/components", 11 | "utils": "@/lib/utils" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/basic-features/typescript for more information. 6 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/EnergizeLogoFull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/EnergizeLogoFull.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/EnergizeLogoGraphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/EnergizeLogoGraphic.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/favicon.ico -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/abstract.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/abstract.jpg -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/chat.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/needs-your-help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/needs-your-help.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/propose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/propose.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/rate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/rate.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/topic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/howitworks/topic.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/welcome/globe1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/welcome/globe1.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/welcome/rate2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/blogs/welcome/rate2.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/images/democratic-inputs-to-ai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/images/democratic-inputs-to-ai.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/logo.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/logolarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/logolarge.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/logothin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/logothin.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openai/democratic-inputs/7f1be9b6530d2322e1c2ada965aa3e7ece62f87b/projects/Aligned-Platform-EnergizeAI/app/public/thumbnail.png -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/account/layout.tsx: -------------------------------------------------------------------------------- 1 | import { ReactNode } from "react" 2 | 3 | import { SidebarLayout } from "../ui/sidebar-layout" 4 | import { Paths } from "@/lib/paths" 5 | 6 | type Props = { 7 | children: ReactNode 8 | } 9 | 10 | const sidebarNavItems = [ 11 | { 12 | title: "My Profile", 13 | href: Paths.Profile, 14 | }, 15 | { 16 | title: "Demographics", 17 | href: Paths.Demographics, 18 | }, 19 | ] 20 | 21 | export const AccountLayout = ({ children }: Props) => { 22 | return {children} 23 | } 24 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/contributions/layout.tsx: -------------------------------------------------------------------------------- 1 | import { ReactNode } from "react" 2 | 3 | import { SidebarLayout } from "../ui/sidebar-layout" 4 | import { Paths } from "@/lib/paths" 5 | import { useRouter } from "next/router" 6 | 7 | type Props = { 8 | children: ReactNode 9 | } 10 | 11 | export const ContributionsLayout = ({ children }: Props) => { 12 | const router = useRouter() 13 | const { space_id } = router.query 14 | 15 | const sidebarNavItems = [ 16 | { 17 | title: "My Guidelines", 18 | href: Paths.MyGuidelines, 19 | }, 20 | { 21 | title: "My Ratings", 22 | href: Paths.MyRatings, 23 | }, 24 | ].map((item) => ({ 25 | ...item, 26 | href: item.href.replace(":id", space_id as string), 27 | })) 28 | 29 | return {children} 30 | } 31 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/playground/constitution.active-gradient.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | export const ConstitutionActiveGradient = () => { 4 | return ( 5 |
12 | ) 13 | } 14 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/redirect.tsx: -------------------------------------------------------------------------------- 1 | import { useEffect } from "react" 2 | 3 | import { useRouter } from "next/router" 4 | 5 | type Props = { 6 | redirectTo: string 7 | } 8 | 9 | export const Redirect = ({ redirectTo }: Props) => { 10 | const router = useRouter() 11 | 12 | useEffect(() => { 13 | router.push(redirectTo) 14 | }, []) 15 | 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/spaces/layout.tsx: -------------------------------------------------------------------------------- 1 | import { ReactNode } from "react" 2 | 3 | import { SidebarLayout } from "../ui/sidebar-layout" 4 | 5 | type Props = { 6 | children: ReactNode 7 | } 8 | 9 | const sidebarNavItems = [ 10 | { 11 | title: "Public", 12 | href: "/spaces", 13 | }, 14 | { 15 | title: "Membership", 16 | href: "/spaces/member-only", 17 | }, 18 | ] 19 | 20 | export const SpacesLayout = ({ children }: Props) => { 21 | return ( 22 | 23 | {children} 24 | 25 | ) 26 | } 27 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/topics/skeleton-topic-card.tsx: -------------------------------------------------------------------------------- 1 | import { Card, CardDescription, CardHeader, CardTitle } from "../ui/card" 2 | 3 | export const SkeletonTopicCard = () => { 4 | return ( 5 | 6 | 7 | 8 | 9 | 10 | 11 | ) 12 | } 13 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/aspect-ratio.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" 4 | 5 | const AspectRatio = AspectRatioPrimitive.Root 6 | 7 | export { AspectRatio } 8 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/collapsible.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible" 4 | 5 | const Collapsible = CollapsiblePrimitive.Root 6 | 7 | const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger 8 | 9 | const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent 10 | 11 | export { Collapsible, CollapsibleTrigger, CollapsibleContent } 12 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/data-table-date-cell.tsx: -------------------------------------------------------------------------------- 1 | type Props = { 2 | date: Date | null 3 | } 4 | 5 | export const DataTableDateCell = ({ date }: Props) => { 6 | if (!date) return null 7 | const formattedDate = date.toLocaleDateString("en-US", { 8 | month: "short", 9 | day: "numeric", 10 | year: "numeric", 11 | }) 12 | 13 | return {formattedDate} 14 | } 15 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/error-message.tsx: -------------------------------------------------------------------------------- 1 | type Props = { 2 | message: string 3 | } 4 | 5 | export const ErrorMessage = ({ message }: Props) => { 6 | return ( 7 |
8 |

9 | Oops! 10 |

11 |

{message}

12 |
13 | ) 14 | } 15 | 16 | export default ErrorMessage 17 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/input.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | export interface InputProps extends React.InputHTMLAttributes {} 6 | 7 | const Input = React.forwardRef(({ className, type, ...props }, ref) => { 8 | return ( 9 | 18 | ) 19 | }) 20 | Input.displayName = "Input" 21 | 22 | export { Input } 23 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/label.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import { cva } from "class-variance-authority" 4 | import type { VariantProps } from "class-variance-authority" 5 | import * as React from "react" 6 | 7 | import { cn } from "@/lib/utils" 8 | import * as LabelPrimitive from "@radix-ui/react-label" 9 | 10 | const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70") 11 | 12 | const Label = React.forwardRef< 13 | React.ElementRef, 14 | React.ComponentPropsWithoutRef & VariantProps 15 | >(({ className, ...props }, ref) => ( 16 | 17 | )) 18 | Label.displayName = LabelPrimitive.Root.displayName 19 | 20 | export { Label } 21 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/loading-page.tsx: -------------------------------------------------------------------------------- 1 | import { Spinner } from "@/components/ui/spinner" 2 | 3 | export const LoadingPage = () => { 4 | return ( 5 |
6 | 7 |
8 | ) 9 | } 10 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/no-data-warning.tsx: -------------------------------------------------------------------------------- 1 | import { InfoIcon } from "lucide-react" 2 | 3 | type Props = { 4 | message?: string 5 | } 6 | 7 | export const NoDataWarning = ({ message = "No data to display." }: Props) => { 8 | return ( 9 |
10 | 11 |

{message}

12 |
13 | ) 14 | } 15 | 16 | export default NoDataWarning 17 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/progress.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as React from "react" 4 | 5 | import { cn } from "@/lib/utils" 6 | import * as ProgressPrimitive from "@radix-ui/react-progress" 7 | 8 | const Progress = React.forwardRef< 9 | React.ElementRef, 10 | React.ComponentPropsWithoutRef 11 | >(({ className, value, ...props }, ref) => ( 12 | 17 | 21 | 22 | )) 23 | Progress.displayName = ProgressPrimitive.Root.displayName 24 | 25 | export { Progress } 26 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/section-header.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | type Props = { 4 | title: string 5 | description?: string 6 | children?: React.ReactNode 7 | variant?: "normal" | "large" 8 | } 9 | 10 | export const SectionHeader = ({ title, description, children, variant }: Props) => { 11 | return ( 12 |
13 |
14 |

17 | {title} 18 |

19 | {description &&

{description}

} 20 |
21 | {children} 22 |
23 | ) 24 | } 25 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/separator.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as React from "react" 4 | 5 | import { cn } from "@/lib/utils" 6 | import * as SeparatorPrimitive from "@radix-ui/react-separator" 7 | 8 | const Separator = React.forwardRef< 9 | React.ElementRef, 10 | React.ComponentPropsWithoutRef 11 | >(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => ( 12 | 19 | )) 20 | Separator.displayName = SeparatorPrimitive.Root.displayName 21 | 22 | export { Separator } 23 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/skeleton-card.tsx: -------------------------------------------------------------------------------- 1 | import { Card, CardDescription, CardHeader, CardTitle } from "./card" 2 | import { cn } from "@/lib/utils" 3 | 4 | type Props = { 5 | className?: string 6 | } 7 | 8 | export const SkeletonCard = ({ className }: Props) => { 9 | return ( 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ) 18 | } 19 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | function Skeleton({ className, ...props }: React.HTMLAttributes) { 4 | return
5 | } 6 | 7 | export { Skeleton } 8 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/small-spinner.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | type Props = { 4 | className?: string 5 | } 6 | 7 | export const SmallSpinner = ({ className }: Props) => { 8 | return ( 9 | 15 | 16 | 17 | 18 | ) 19 | } 20 | -------------------------------------------------------------------------------- /projects/Aligned-Platform-EnergizeAI/app/src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | export interface TextareaProps extends React.TextareaHTMLAttributes {} 6 | 7 | const Textarea = React.forwardRef(({ className, ...props }, ref) => { 8 | return ( 9 |