{"id":13821994,"url":"https://github.com/2022etmoi/2022etmoi","last_synced_at":"2025-05-16T15:32:09.703Z","repository":{"id":42658673,"uuid":"448511803","full_name":"2022etmoi/2022etmoi","owner":"2022etmoi","description":"Test en ligne pour se comparer aux candidats de l'élection présidentielle sur une trentaine de propositions.","archived":true,"fork":false,"pushed_at":"2022-07-13T15:01:39.000Z","size":1830,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"prod","last_synced_at":"2024-08-05T08:10:03.231Z","etag":null,"topics":["election","france","politics"],"latest_commit_sha":null,"homepage":"https://2022etmoi.fr","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2022etmoi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-16T09:41:04.000Z","updated_at":"2024-05-15T10:30:09.000Z","dependencies_parsed_at":"2022-08-12T10:03:08.877Z","dependency_job_id":null,"html_url":"https://github.com/2022etmoi/2022etmoi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2022etmoi%2F2022etmoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2022etmoi%2F2022etmoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2022etmoi%2F2022etmoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2022etmoi%2F2022etmoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2022etmoi","download_url":"https://codeload.github.com/2022etmoi/2022etmoi/tar.gz/refs/heads/prod","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225436419,"owners_count":17474143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["election","france","politics"],"created_at":"2024-08-04T08:01:37.445Z","updated_at":"2024-11-19T22:31:44.231Z","avatar_url":"https://github.com/2022etmoi.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"![CI Front](https://github.com/2022-app/2022/actions/workflows/node.js.yml/badge.svg)\n\n\u003cimg style=\"display: block; margin-left: auto; margin-right: auto; width: 30%;\" src=\"src/components/Icon/icons/logo.svg\"\u003e\u003c/img\u003e\n\n_2022 et moi_ permet de se comparer aux différents candidats à l'élection présidentielle sur une série de propositions.\nLe projet est facilement réutilisable en modifiant `src/data` et `src/types/Proposition.ts`.\n\n## Développement\n\n### Espace de travail\n\nInstallation des dépendances :\n\n```\nnpm ci\n```\n\nLancer le site :\n\n```\nnpm start\n```\n\n### Contribuer\n\n[Contributing.md](CONTRIBUTING.md)\n\n## Propositions et réponses\n\nListe des propositions : [Propositions.ts](src/data/Propositions.ts), [tableau](https://www.2022etmoi.fr/app/table).\n\nLes candidats se prononcent sur chaque proposition : *pour* (`CandidateAnswer.YES`), *contre* (`CandidateAnswer.NO`),\nou *neutre* (`CandidateAnswer.NEUTRAL`).\n\n## Score\n\n### Principe\n\n50% correspond au score neutre (en moyenne autant en accord qu'en désaccord).\n0% correspond à un désaccord parfait et 100% à un accord parfait.\n\nIl faut relativiser la signification du score car celui-ci dépend forcément du choix des propositions !\n\n### Calcul\n\nFonctions de calcul du score : [ScoringService.ts](src/services/ScoringService.ts)\n\n- Pour une réponse \u003cimg src=\"https://render.githubusercontent.com/render/math?math=r_i\"\u003e à une proposition (de très\n  défavorable à très favorable, -2 à 2),\n  et une réponse du candidat \u003cimg src=\"https://render.githubusercontent.com/render/math?math=r'_i\"\u003e (contre, sans avis\n  ou pour, -1 à 1), on gagne \u003cimg src=\"https://render.githubusercontent.com/render/math?math=p_i = r_i * r'_i\"\u003e points.\n  Le score des réponses face au candidat est la somme\n  des \u003cimg src=\"https://render.githubusercontent.com/render/math?math=p_i\"\u003e, normalisée face à la somme des valeurs\n  absolues des points \u003cimg src=\"https://render.githubusercontent.com/render/math?math=p_i\"\u003e, et exprimée sous forme de\n  pourcentage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2022etmoi%2F2022etmoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2022etmoi%2F2022etmoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2022etmoi%2F2022etmoi/lists"}