5921d27f1e5916dbe2b640d50bae85a080cfd2bd
Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
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
Description
Languages
Shell
72.1%
Python
14.1%
PHP
10.6%
Makefile
2.7%
Awk
0.5%