In T374698 we have identified that the flat 0.87 threshold (calculated in T385102) which should produce a 1% false positive rate does not necessarily apply for all Wikipedias. We think we need to calculate this threshold per-wiki. In the context of this task, we only need to calculate this threshold for en.wiki, fr.wiki, ru.wiki, pt.wiki, fa.wiki, simple.wiki, ro.wiki, and bg.wiki.
When we say "1% false positive rate" here we mean that of every 100 edits that we think should be reverted, only 1 was actually not reverted.
Some previous code is available at https://gitlab.wikimedia.org/mneisler/revert-risk-scores-threshold-analysis-2025 (used for T385102). @Kgraessle modified this for the multilingual mode at https://gitlab.wikimedia.org/mneisler/revert-risk-scores-threshold-analysis-2025/-/tree/kgraessle/multilingual?ref_type=heads.