philippe lhardy 6095bd26ce exmples mieuxvoter
2025-10-07 13:17:33 +02:00
2025-10-07 11:02:55 +02:00
2025-09-28 09:50:55 +02:00
2025-10-07 10:53:08 +02:00
2025-07-31 11:10:59 +02:00
2025-10-07 13:17:33 +02:00
2025-07-03 13:00:00 +02:00
2025-10-07 11:02:55 +02:00
2025-10-07 13:17:33 +02:00
2025-07-03 14:41:53 +02:00

Glue to use majority judgement algorithm in various polls applications

Initial trigger of this project is implementation of this in Nextcloud poll app https://github.com/nextcloud/polls/issues/3472, project pushed by https://www.astrolabe.coop/

What does this project :

It compares local implementation with https://github.com/MieuxVoter using tests samples some exported from nextcloud_poll in csv.

What is majortiy judgement algorithm ?

https://en.wikipedia.org/wiki/Majority_judgment

Library to deliver a poll result with majority judgement algorithm

After some research most of implementation is done in https://github.com/MieuxVoter

Sorry for inconvenience but currently only french version is available.

LISEZMOI.md

Testing

cd samples
./test.sh

tests should run without errors, there is not special error checking within test

unitary tests

python venv code activated ( within sample tests.sh does it ).

make setup_dev 
./check.sh 1
./check.sh 2
./check.sh 3
./check.sh 4

ça marche chez moi (tm)

dev done on Ubuntu 24.04.2 LTS

cd code
./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv 
./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv >../samples/0.json

et tester

Languages
Shell 69.6%
Python 15.3%
PHP 11.5%
Makefile 3%
Awk 0.6%