sapor 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Area Class Diagram.dia +0 -0
- data/Area Class Diagram.png +0 -0
- data/Class Diagram.dia +0 -0
- data/Class Diagram.png +0 -0
- data/Example-Catalonia.md +361 -0
- data/Example-Flanders.md +486 -0
- data/Example-Greece.md +25 -0
- data/Example-Oslo.md +678 -0
- data/Example-UnitedKingdom-Referendum.md +132 -0
- data/Examples.md +15 -0
- data/LICENSE +674 -0
- data/README.md +103 -0
- data/Rakefile +18 -0
- data/Technical Documentation.md +14 -0
- data/bin/create_installation_package.sh +49 -0
- data/bin/install.sh +45 -0
- data/bin/sapor.rb +24 -0
- data/bin/sapor.sh +106 -0
- data/data/hu/hungary-2014.txt +1680 -0
- data/data/hu/hungary_2014_screen_scraper.rb +48 -0
- data/data/hu/hungary_2014_to_psv.rb +80 -0
- data/data/hu/index-2014.txt +106 -0
- data/data/ie/2016-04-28_general-election-2016-candidate-details-csv_en.csv +552 -0
- data/data/ie/ireland_2016_to_psv.rb +138 -0
- data/data/no/2020-01-01_partifordeling_1_st_2017.csv +335 -0
- data/data/no/norway_2017_to_psv.rb +61 -0
- data/data/pl/2015-gl-lis-okr.csv +42 -0
- data/data/pl/poland_2015_to_psv.rb +79 -0
- data/data/pl/poland_2015_to_psv_with_ko_and_rsw.rb +94 -0
- data/data/pl/poland_2015_to_psv_with_ko_konf_kp_l_and_zp.rb +100 -0
- data/data/pl/poland_2015_to_psv_with_ko_sld_and_wi.rb +92 -0
- data/data/pl/poland_2015_to_psv_with_sld.rb +84 -0
- data/data/pl/poland_2015_to_psv_with_sld_and_wi.rb +85 -0
- data/data/uk/inject_ukip_2015_as_brexit_2019_in_2017.rb +54 -0
- data/data/uk/united_kingdom_2015.txt +651 -0
- data/data/uk/united_kingdom_2015_to_psv.rb +104 -0
- data/data/uk/united_kingdom_2017.txt +651 -0
- data/data/uk/united_kingdom_2017_to_psv.rb +104 -0
- data/data/uk/united_kingdom_2017_to_psv_with_brexit_and_chuk.rb +113 -0
- data/data/uk/united_kingdom_2017_to_psv_with_tig.rb +111 -0
- data/lib/sapor.rb +147 -0
- data/lib/sapor/binomials_cache.rb +45 -0
- data/lib/sapor/combinations_distribution.rb +222 -0
- data/lib/sapor/denominators.rb +67 -0
- data/lib/sapor/dichotomies.rb +138 -0
- data/lib/sapor/dichotomy.rb +164 -0
- data/lib/sapor/first_past_the_post.rb +82 -0
- data/lib/sapor/largest_remainder.rb +118 -0
- data/lib/sapor/log4r_logger.rb +49 -0
- data/lib/sapor/log_facade.rb +40 -0
- data/lib/sapor/many_past_the_post.rb +113 -0
- data/lib/sapor/multi_district_leveled_proportional.rb +64 -0
- data/lib/sapor/multi_district_proportional.rb +123 -0
- data/lib/sapor/multi_district_variable_threshold_proportional.rb +128 -0
- data/lib/sapor/number_formatter.rb +45 -0
- data/lib/sapor/options.rb +73 -0
- data/lib/sapor/poll.rb +282 -0
- data/lib/sapor/polychotomy.rb +200 -0
- data/lib/sapor/pseudorandom_multirange_enumerator.rb +87 -0
- data/lib/sapor/referendum_polychotomy.rb +165 -0
- data/lib/sapor/regional_data/area.rb +100 -0
- data/lib/sapor/regional_data/austria.rb +84 -0
- data/lib/sapor/regional_data/belgium-brussels-2014.psv +46 -0
- data/lib/sapor/regional_data/belgium-brussels-20190526.psv +33 -0
- data/lib/sapor/regional_data/belgium-flanders-2014.psv +80 -0
- data/lib/sapor/regional_data/belgium-flanders-20190526.psv +74 -0
- data/lib/sapor/regional_data/belgium-wallonia-2014.psv +114 -0
- data/lib/sapor/regional_data/belgium-wallonia-20190526.psv +93 -0
- data/lib/sapor/regional_data/belgium.rb +97 -0
- data/lib/sapor/regional_data/belgium_brussels.rb +62 -0
- data/lib/sapor/regional_data/belgium_flanders.rb +64 -0
- data/lib/sapor/regional_data/belgium_wallonia.rb +63 -0
- data/lib/sapor/regional_data/catalonia-2012-2015.psv +100 -0
- data/lib/sapor/regional_data/catalonia-2012.psv +87 -0
- data/lib/sapor/regional_data/catalonia-2015-jxcat.psv +68 -0
- data/lib/sapor/regional_data/catalonia-2015-no-jxsi.psv +68 -0
- data/lib/sapor/regional_data/catalonia-2015.psv +63 -0
- data/lib/sapor/regional_data/catalonia-20171221-with-vox.psv +67 -0
- data/lib/sapor/regional_data/catalonia-20171221.psv +61 -0
- data/lib/sapor/regional_data/catalonia.rb +124 -0
- data/lib/sapor/regional_data/denmark-20150618-with-e-and-p.psv +164 -0
- data/lib/sapor/regional_data/denmark-20150618-with-e.psv +153 -0
- data/lib/sapor/regional_data/denmark-20150618-with-p.psv +153 -0
- data/lib/sapor/regional_data/denmark-20150618.psv +142 -0
- data/lib/sapor/regional_data/denmark.rb +128 -0
- data/lib/sapor/regional_data/denmark_with_e.rb +128 -0
- data/lib/sapor/regional_data/denmark_with_e_and_p.rb +128 -0
- data/lib/sapor/regional_data/denmark_with_p.rb +128 -0
- data/lib/sapor/regional_data/estonia.rb +88 -0
- data/lib/sapor/regional_data/european-union-great-britain-20140522-brexit-chuk.psv +172 -0
- data/lib/sapor/regional_data/european-union-great-britain-20140522.psv +146 -0
- data/lib/sapor/regional_data/european-union-great-britain-20190523.psv +141 -0
- data/lib/sapor/regional_data/european-union-ireland-2014-ia-ri-sd.psv +64 -0
- data/lib/sapor/regional_data/european-union-ireland-2014-ia-sd.psv +60 -0
- data/lib/sapor/regional_data/european-union-ireland-2014-ia.psv +56 -0
- data/lib/sapor/regional_data/european-union-ireland-2014-sd.psv +56 -0
- data/lib/sapor/regional_data/european-union-ireland-2014.psv +50 -0
- data/lib/sapor/regional_data/european-union-ireland-20190524-ia.psv +58 -0
- data/lib/sapor/regional_data/european-union-ireland-20190524.psv +52 -0
- data/lib/sapor/regional_data/european_union_27_austria.rb +76 -0
- data/lib/sapor/regional_data/european_union_27_croatia.rb +83 -0
- data/lib/sapor/regional_data/european_union_27_denmark.rb +77 -0
- data/lib/sapor/regional_data/european_union_27_estonia.rb +74 -0
- data/lib/sapor/regional_data/european_union_27_finland.rb +74 -0
- data/lib/sapor/regional_data/european_union_27_france.rb +84 -0
- data/lib/sapor/regional_data/european_union_27_ireland.rb +96 -0
- data/lib/sapor/regional_data/european_union_27_ireland_with_ia.rb +97 -0
- data/lib/sapor/regional_data/european_union_27_italy.rb +84 -0
- data/lib/sapor/regional_data/european_union_27_netherlands.rb +81 -0
- data/lib/sapor/regional_data/european_union_27_poland.rb +84 -0
- data/lib/sapor/regional_data/european_union_27_romania.rb +78 -0
- data/lib/sapor/regional_data/european_union_27_slovakia.rb +80 -0
- data/lib/sapor/regional_data/european_union_27_spain.rb +82 -0
- data/lib/sapor/regional_data/european_union_27_sweden.rb +76 -0
- data/lib/sapor/regional_data/european_union_austria.rb +76 -0
- data/lib/sapor/regional_data/european_union_bulgaria.rb +82 -0
- data/lib/sapor/regional_data/european_union_croatia.rb +83 -0
- data/lib/sapor/regional_data/european_union_cyprus.rb +72 -0
- data/lib/sapor/regional_data/european_union_czech_republic.rb +82 -0
- data/lib/sapor/regional_data/european_union_denmark.rb +77 -0
- data/lib/sapor/regional_data/european_union_estonia.rb +74 -0
- data/lib/sapor/regional_data/european_union_finland.rb +74 -0
- data/lib/sapor/regional_data/european_union_flanders.rb +74 -0
- data/lib/sapor/regional_data/european_union_france.rb +84 -0
- data/lib/sapor/regional_data/european_union_french_community_of_belgium.rb +73 -0
- data/lib/sapor/regional_data/european_union_germany.rb +86 -0
- data/lib/sapor/regional_data/european_union_great_britain.rb +98 -0
- data/lib/sapor/regional_data/european_union_greece.rb +77 -0
- data/lib/sapor/regional_data/european_union_hungary.rb +76 -0
- data/lib/sapor/regional_data/european_union_ireland.rb +96 -0
- data/lib/sapor/regional_data/european_union_ireland_with_ia.rb +97 -0
- data/lib/sapor/regional_data/european_union_italy.rb +84 -0
- data/lib/sapor/regional_data/european_union_latvia.rb +81 -0
- data/lib/sapor/regional_data/european_union_lithuania.rb +80 -0
- data/lib/sapor/regional_data/european_union_luxembourg.rb +75 -0
- data/lib/sapor/regional_data/european_union_malta.rb +71 -0
- data/lib/sapor/regional_data/european_union_netherlands.rb +81 -0
- data/lib/sapor/regional_data/european_union_northern_ireland.rb +75 -0
- data/lib/sapor/regional_data/european_union_poland.rb +84 -0
- data/lib/sapor/regional_data/european_union_portugal.rb +75 -0
- data/lib/sapor/regional_data/european_union_romania.rb +78 -0
- data/lib/sapor/regional_data/european_union_slovakia.rb +81 -0
- data/lib/sapor/regional_data/european_union_slovenia.rb +85 -0
- data/lib/sapor/regional_data/european_union_spain.rb +82 -0
- data/lib/sapor/regional_data/european_union_sweden.rb +76 -0
- data/lib/sapor/regional_data/finland-20150419-with-sin.psv +224 -0
- data/lib/sapor/regional_data/finland-20150419.psv +212 -0
- data/lib/sapor/regional_data/finland.rb +107 -0
- data/lib/sapor/regional_data/finland_with_sin.rb +107 -0
- data/lib/sapor/regional_data/flanders-2014.psv +96 -0
- data/lib/sapor/regional_data/flanders-20190526.psv +87 -0
- data/lib/sapor/regional_data/flanders.rb +115 -0
- data/lib/sapor/regional_data/france.rb +38 -0
- data/lib/sapor/regional_data/greece.rb +92 -0
- data/lib/sapor/regional_data/hungary-2014.psv +2104 -0
- data/lib/sapor/regional_data/hungary.rb +116 -0
- data/lib/sapor/regional_data/iceland-20161029-midflokkurinn.psv +94 -0
- data/lib/sapor/regional_data/iceland-20161029.psv +88 -0
- data/lib/sapor/regional_data/iceland-20171028-with-j.psv +94 -0
- data/lib/sapor/regional_data/iceland-20171028.psv +85 -0
- data/lib/sapor/regional_data/iceland.rb +149 -0
- data/lib/sapor/regional_data/ireland-20160226-2020-candidates.psv +322 -0
- data/lib/sapor/regional_data/ireland-20160226-2020.psv +344 -0
- data/lib/sapor/regional_data/ireland-20160226.psv +348 -0
- data/lib/sapor/regional_data/ireland.rb +165 -0
- data/lib/sapor/regional_data/latvia-20141004-kpv-p-par.psv +109 -0
- data/lib/sapor/regional_data/latvia-20141004-kpv-par.psv +103 -0
- data/lib/sapor/regional_data/latvia-20141004-kpv.psv +97 -0
- data/lib/sapor/regional_data/latvia-20141004.psv +89 -0
- data/lib/sapor/regional_data/latvia-20181006.psv +104 -0
- data/lib/sapor/regional_data/latvia.rb +111 -0
- data/lib/sapor/regional_data/luxembourg-20131020.psv +60 -0
- data/lib/sapor/regional_data/luxembourg-20181014.psv +59 -0
- data/lib/sapor/regional_data/luxembourg.rb +88 -0
- data/lib/sapor/regional_data/netherlands.rb +108 -0
- data/lib/sapor/regional_data/norway-20170911.psv +331 -0
- data/lib/sapor/regional_data/norway.rb +130 -0
- data/lib/sapor/regional_data/norwegian_municipality.rb +68 -0
- data/lib/sapor/regional_data/poland-20151025-with-ko-and-l-without-n-po-r-and-zl.psv +321 -0
- data/lib/sapor/regional_data/poland-20151025-with-ko-konf-kp-l-and-zp-without-k-k15-n-pis-po-psl-r-and-zl.psv +280 -0
- data/lib/sapor/regional_data/poland-20151025-with-ko-sld-and-wi-without-n-po-and-zl.psv +403 -0
- data/lib/sapor/regional_data/poland-20151025-with-sld-and-wi-without-zl.psv +444 -0
- data/lib/sapor/regional_data/poland-20151025-with-sld-without-zl.psv +403 -0
- data/lib/sapor/regional_data/poland-20151025.psv +403 -0
- data/lib/sapor/regional_data/poland.rb +125 -0
- data/lib/sapor/regional_data/poland_with_ko_and_l_without_n_po_r_and_zl.rb +122 -0
- data/lib/sapor/regional_data/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl.rb +123 -0
- data/lib/sapor/regional_data/poland_with_ko_sld_and_wi_without_n_po_and_zl.rb +125 -0
- data/lib/sapor/regional_data/poland_with_sld_and_wi_without_zl.rb +126 -0
- data/lib/sapor/regional_data/poland_with_sld_without_zl.rb +126 -0
- data/lib/sapor/regional_data/portugal-20151004-with-a-and-ch-without-paf.psv +438 -0
- data/lib/sapor/regional_data/portugal-20151004-with-a-and-il-without-paf.psv +438 -0
- data/lib/sapor/regional_data/portugal-20151004-with-a-ch-and-il-without-paf.psv +461 -0
- data/lib/sapor/regional_data/portugal-20151004-with-a-without-paf.psv +415 -0
- data/lib/sapor/regional_data/portugal-20151004-with-ch-and-il-without-paf.psv +438 -0
- data/lib/sapor/regional_data/portugal-20151004-without-paf.psv +392 -0
- data/lib/sapor/regional_data/portugal-20151004.psv +370 -0
- data/lib/sapor/regional_data/portugal.rb +101 -0
- data/lib/sapor/regional_data/portugal_with_a_and_ch_without_paf.rb +92 -0
- data/lib/sapor/regional_data/portugal_with_a_and_il_without_paf.rb +92 -0
- data/lib/sapor/regional_data/portugal_with_a_ch_and_il_without_paf.rb +92 -0
- data/lib/sapor/regional_data/portugal_with_a_without_paf.rb +92 -0
- data/lib/sapor/regional_data/portugal_with_ch_and_il_without_paf.rb +92 -0
- data/lib/sapor/regional_data/portugal_without_paf.rb +92 -0
- data/lib/sapor/regional_data/slovakia.rb +81 -0
- data/lib/sapor/regional_data/slovenia.rb +114 -0
- data/lib/sapor/regional_data/spain-20160626.psv +619 -0
- data/lib/sapor/regional_data/spain.rb +136 -0
- data/lib/sapor/regional_data/sweden.rb +92 -0
- data/lib/sapor/regional_data/sweden_20140914.rb +89 -0
- data/lib/sapor/regional_data/united_kingdom-2015.psv +4358 -0
- data/lib/sapor/regional_data/united_kingdom-20170608-brexit-chuk.psv +5154 -0
- data/lib/sapor/regional_data/united_kingdom-20170608-brexit.psv +4521 -0
- data/lib/sapor/regional_data/united_kingdom-20170608-tig.psv +4529 -0
- data/lib/sapor/regional_data/united_kingdom-20170608.psv +3894 -0
- data/lib/sapor/regional_data/united_kingdom.rb +94 -0
- data/lib/sapor/regional_data/united_kingdom_with_brexit.rb +110 -0
- data/lib/sapor/regional_data/united_kingdom_with_brexit_and_chuk.rb +111 -0
- data/lib/sapor/regional_data/united_kingdom_with_tig.rb +111 -0
- data/lib/sapor/regional_data/utopia.rb +66 -0
- data/lib/sapor/regional_data/wallonia-2014.psv +101 -0
- data/lib/sapor/regional_data/wallonia-20190526.psv +88 -0
- data/lib/sapor/regional_data/wallonia.rb +112 -0
- data/lib/sapor/representatives_polychotomy.rb +338 -0
- data/lib/sapor/single_district_proportional.rb +75 -0
- data/sapor.gemspec +35 -0
- data/spec/integration/area_spec.rb +28 -0
- data/spec/integration/poll_spec.rb +112 -0
- data/spec/integration/sample.poll +8 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/unit/area_spec.rb +115 -0
- data/spec/unit/austria_spec.rb +76 -0
- data/spec/unit/belgium_brussels_spec.rb +58 -0
- data/spec/unit/belgium_flanders_spec.rb +62 -0
- data/spec/unit/belgium_spec.rb +26 -0
- data/spec/unit/belgium_wallonia_spec.rb +65 -0
- data/spec/unit/binomials_cache_spec.rb +34 -0
- data/spec/unit/catalonia_spec.rb +61 -0
- data/spec/unit/catalonia_with_vox_spec.rb +62 -0
- data/spec/unit/combinations_distribution_spec.rb +241 -0
- data/spec/unit/denmark_spec.rb +56 -0
- data/spec/unit/denmark_with_e_and_p_spec.rb +58 -0
- data/spec/unit/denmark_with_e_spec.rb +57 -0
- data/spec/unit/denmark_with_p_spec.rb +57 -0
- data/spec/unit/denominators_spec.rb +40 -0
- data/spec/unit/dichotomies_spec.rb +154 -0
- data/spec/unit/dichotomy_spec.rb +320 -0
- data/spec/unit/estonia_spec.rb +65 -0
- data/spec/unit/european_union_27_austria_spec.rb +61 -0
- data/spec/unit/european_union_27_croatia_spec.rb +60 -0
- data/spec/unit/european_union_27_denmark_spec.rb +62 -0
- data/spec/unit/european_union_27_estonia_spec.rb +94 -0
- data/spec/unit/european_union_27_finland_spec.rb +75 -0
- data/spec/unit/european_union_27_france_spec.rb +73 -0
- data/spec/unit/european_union_27_ireland_spec.rb +72 -0
- data/spec/unit/european_union_27_ireland_with_ia_spec.rb +74 -0
- data/spec/unit/european_union_27_italy_spec.rb +69 -0
- data/spec/unit/european_union_27_netherlands_spec.rb +81 -0
- data/spec/unit/european_union_27_poland_spec.rb +69 -0
- data/spec/unit/european_union_27_romania_spec.rb +67 -0
- data/spec/unit/european_union_27_slovakia_spec.rb +111 -0
- data/spec/unit/european_union_27_spain_spec.rb +130 -0
- data/spec/unit/european_union_27_sweden_spec.rb +89 -0
- data/spec/unit/european_union_austria_spec.rb +61 -0
- data/spec/unit/european_union_bulgaria_spec.rb +97 -0
- data/spec/unit/european_union_croatia_spec.rb +59 -0
- data/spec/unit/european_union_cyprus_spec.rb +65 -0
- data/spec/unit/european_union_czech_republic_spec.rb +125 -0
- data/spec/unit/european_union_denmark_spec.rb +61 -0
- data/spec/unit/european_union_estonia_spec.rb +93 -0
- data/spec/unit/european_union_finland_spec.rb +75 -0
- data/spec/unit/european_union_flanders_spec.rb +56 -0
- data/spec/unit/european_union_france_spec.rb +73 -0
- data/spec/unit/european_union_french_community_of_belgium_spec.rb +61 -0
- data/spec/unit/european_union_germany_spec.rb +90 -0
- data/spec/unit/european_union_great_britain_spec.rb +87 -0
- data/spec/unit/european_union_greece_spec.rb +148 -0
- data/spec/unit/european_union_hungary_spec.rb +57 -0
- data/spec/unit/european_union_ireland_spec.rb +72 -0
- data/spec/unit/european_union_ireland_with_ia_spec.rb +74 -0
- data/spec/unit/european_union_italy_spec.rb +69 -0
- data/spec/unit/european_union_latvia_spec.rb +76 -0
- data/spec/unit/european_union_lithuania_spec.rb +68 -0
- data/spec/unit/european_union_luxembourg_spec.rb +63 -0
- data/spec/unit/european_union_malta_spec.rb +60 -0
- data/spec/unit/european_union_netherlands_spec.rb +81 -0
- data/spec/unit/european_union_northern_ireland_spec.rb +66 -0
- data/spec/unit/european_union_poland_spec.rb +69 -0
- data/spec/unit/european_union_portugal_spec.rb +77 -0
- data/spec/unit/european_union_romania_spec.rb +67 -0
- data/spec/unit/european_union_slovakia_spec.rb +111 -0
- data/spec/unit/european_union_slovenia_spec.rb +77 -0
- data/spec/unit/european_union_spain_spec.rb +129 -0
- data/spec/unit/european_union_sweden_spec.rb +89 -0
- data/spec/unit/finland_spec.rb +65 -0
- data/spec/unit/finland_with_sin_spec.rb +67 -0
- data/spec/unit/first_past_the_post_spec.rb +54 -0
- data/spec/unit/flanders_spec.rb +70 -0
- data/spec/unit/france_spec.rb +32 -0
- data/spec/unit/greece_spec.rb +118 -0
- data/spec/unit/hungary_spec.rb +132 -0
- data/spec/unit/iceland_spec.rb +57 -0
- data/spec/unit/iceland_with_j_spec.rb +58 -0
- data/spec/unit/ireland_2016_spec.rb +62 -0
- data/spec/unit/ireland_spec.rb +62 -0
- data/spec/unit/largest_remainder_spec.rb +79 -0
- data/spec/unit/latvia_spec.rb +62 -0
- data/spec/unit/luxembourg_spec.rb +55 -0
- data/spec/unit/multi_district_leveled_proportional_spec.rb +49 -0
- data/spec/unit/multi_district_proportional_spec.rb +81 -0
- data/spec/unit/netherlands_spec.rb +107 -0
- data/spec/unit/norway_spec.rb +69 -0
- data/spec/unit/norwegian_municipality_spec.rb +89 -0
- data/spec/unit/number_formatter_spec.rb +173 -0
- data/spec/unit/poland_spec.rb +62 -0
- data/spec/unit/poland_with_ko_and_l_without_n_po_r_and_zl_spec.rb +60 -0
- data/spec/unit/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl_spec.rb +59 -0
- data/spec/unit/poland_with_ko_sld_and_wi_without_n_po_and_zl_spec.rb +62 -0
- data/spec/unit/poland_with_sld_and_wi_without_zl_spec.rb +63 -0
- data/spec/unit/poland_with_sld_without_zl_spec.rb +62 -0
- data/spec/unit/poll_spec.rb +110 -0
- data/spec/unit/portugal_spec.rb +66 -0
- data/spec/unit/portugal_with_a_and_ch_without_paf_spec.rb +68 -0
- data/spec/unit/portugal_with_a_and_il_without_paf_spec.rb +68 -0
- data/spec/unit/portugal_with_a_ch_and_il_without_paf_spec.rb +69 -0
- data/spec/unit/portugal_with_a_without_paf_spec.rb +67 -0
- data/spec/unit/portugal_with_ch_and_il_without_paf_spec.rb +68 -0
- data/spec/unit/portugal_without_paf_spec.rb +66 -0
- data/spec/unit/pseudorandom_multirange_enumerator_spec.rb +82 -0
- data/spec/unit/referendum_polychotomy_spec.rb +289 -0
- data/spec/unit/representatives_polychotomy_spec.rb +332 -0
- data/spec/unit/slovakia_spec.rb +99 -0
- data/spec/unit/slovenia_spec.rb +80 -0
- data/spec/unit/spain_spec.rb +101 -0
- data/spec/unit/sweden_20140914_spec.rb +112 -0
- data/spec/unit/sweden_spec.rb +113 -0
- data/spec/unit/united_kingdom_spec.rb +65 -0
- data/spec/unit/united_kingdom_with_brexit_and_chuk_spec.rb +67 -0
- data/spec/unit/united_kingdom_with_brexit_spec.rb +66 -0
- data/spec/unit/united_kingdom_with_tig_spec.rb +66 -0
- data/spec/unit/wallonia_spec.rb +70 -0
- metadata +502 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
|
|
2
|
+
#
|
|
3
|
+
# Statistical Analysis of Polling Results (SAPoR)
|
|
4
|
+
# Copyright (C) 2020 Filip van Laenen <f.a.vanlaenen@ieee.org>
|
|
5
|
+
#
|
|
6
|
+
# This file is part of SAPoR.
|
|
7
|
+
#
|
|
8
|
+
# SAPoR is free software: you can redistribute it and/or modify it under the
|
|
9
|
+
# terms of the GNU General Public License as published by the Free Software
|
|
10
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
|
11
|
+
# version.
|
|
12
|
+
#
|
|
13
|
+
# SAPoR is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
14
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
15
|
+
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
16
|
+
#
|
|
17
|
+
# You can find a copy of the GNU General Public License in /doc/gpl.txt
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
module Sapor
|
|
21
|
+
#
|
|
22
|
+
# The regional data for Iceland.
|
|
23
|
+
#
|
|
24
|
+
class Iceland < Area
|
|
25
|
+
include Singleton
|
|
26
|
+
|
|
27
|
+
def area_code
|
|
28
|
+
'IS'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def coalitions
|
|
32
|
+
COALITIONS
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def election_results_of_2017
|
|
36
|
+
if @election_results_of_2017.nil?
|
|
37
|
+
@election_results_of_2017 = load_election_results(
|
|
38
|
+
'iceland-20171028.psv'
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
@election_results_of_2017
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def no_of_seats
|
|
45
|
+
NO_OF_SEATS
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def overall_election_results_of_2017
|
|
49
|
+
if @overall_election_results_of_2017.nil?
|
|
50
|
+
@overall_election_results_of_2017 = \
|
|
51
|
+
summarize_election_results(election_results_of_2017)
|
|
52
|
+
end
|
|
53
|
+
@overall_election_results_of_2017
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def population_size
|
|
57
|
+
# Voter turnout on 28 October 2017
|
|
58
|
+
# Source: Wikipedia, Icelandic parliamentary election, 2017, downloaded
|
|
59
|
+
# on 20 November 2017,
|
|
60
|
+
# https://en.wikipedia.org/wiki/Icelandic_parliamentary_election,_2017
|
|
61
|
+
196_246
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def seat_distribution
|
|
65
|
+
SEAT_DISTRIBUTION
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def seats(simulation)
|
|
69
|
+
electoral_system.project(simulation)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def threshold
|
|
73
|
+
LEVELING_THRESHOLD
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
private
|
|
77
|
+
|
|
78
|
+
COALITIONS = [['Björt framtíð', 'Píratar', 'Samfylkingin', 'Viðreisn',
|
|
79
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
80
|
+
['Björt framtíð', 'Píratar', 'Samfylkingin',
|
|
81
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
82
|
+
['Björt framtíð', 'Sjálfstæðisflokkurinn'],
|
|
83
|
+
['Björt framtíð', 'Sjálfstæðisflokkurinn', 'Viðreisn'],
|
|
84
|
+
['Framsóknarflokkurinn', 'Miðflokkurinn', 'Samfylkingin',
|
|
85
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
86
|
+
%w[Framsóknarflokkurinn Miðflokkurinn Sjálfstæðisflokkurinn],
|
|
87
|
+
['Framsóknarflokkurinn', 'Miðflokkurinn',
|
|
88
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
89
|
+
['Framsóknarflokkurinn', 'Samfylkingin',
|
|
90
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
91
|
+
%w[Framsóknarflokkurinn Sjálfstæðisflokkurinn],
|
|
92
|
+
['Framsóknarflokkurinn', 'Sjálfstæðisflokkurinn',
|
|
93
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
94
|
+
['Framsóknarflokkurinn', 'Vinstrihreyfingin – grænt framboð'],
|
|
95
|
+
['Miðflokkurinn', 'Samfylkingin',
|
|
96
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
97
|
+
%w[Miðflokkurinn Sjálfstæðisflokkurinn],
|
|
98
|
+
['Miðflokkurinn', 'Vinstrihreyfingin – grænt framboð'],
|
|
99
|
+
%w[Samfylkingin Sjálfstæðisflokkurinn],
|
|
100
|
+
['Píratar', 'Samfylkingin', 'Viðreisn',
|
|
101
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
102
|
+
['Píratar', 'Samfylkingin',
|
|
103
|
+
'Vinstrihreyfingin – grænt framboð'],
|
|
104
|
+
['Píratar', 'Vinstrihreyfingin – grænt framboð'],
|
|
105
|
+
['Samfylkingin', 'Vinstrihreyfingin – grænt framboð'],
|
|
106
|
+
%w[Sjálfstæðisflokkurinn Viðreisn],
|
|
107
|
+
['Sjálfstæðisflokkurinn',
|
|
108
|
+
'Vinstrihreyfingin – grænt framboð']].freeze
|
|
109
|
+
|
|
110
|
+
DIRECT_SEAT_DISTRIBUTION = { 'Norðaustur' => 9, 'Norðvestur' => 9,
|
|
111
|
+
'Reykjavík norður' => 9,
|
|
112
|
+
'Reykjavík suður' => 9, 'Suðvestur' => 9,
|
|
113
|
+
'Suður' => 9 }.freeze
|
|
114
|
+
|
|
115
|
+
NO_OF_LEVELING_SEATS = 9
|
|
116
|
+
|
|
117
|
+
LEVELING_THRESHOLD = 0.05
|
|
118
|
+
|
|
119
|
+
NO_OF_SEATS = NO_OF_LEVELING_SEATS + \
|
|
120
|
+
DIRECT_SEAT_DISTRIBUTION.values.inject(:+)
|
|
121
|
+
|
|
122
|
+
def electoral_system
|
|
123
|
+
if @electoral_system.nil?
|
|
124
|
+
@electoral_system = MultiDistrictLeveledProportional.new(
|
|
125
|
+
overall_election_results_of_2017, election_results_of_2017,
|
|
126
|
+
DIRECT_SEAT_DISTRIBUTION, NO_OF_LEVELING_SEATS, LEVELING_THRESHOLD,
|
|
127
|
+
DhondtDenominators
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
@electoral_system
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Extension of Iceland with J
|
|
135
|
+
class IcelandWithJ < Iceland
|
|
136
|
+
def area_code
|
|
137
|
+
'IS∪{J}'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def election_results_of_2017
|
|
141
|
+
if @election_results_of_2017.nil?
|
|
142
|
+
@election_results_of_2017 = load_election_results(
|
|
143
|
+
'iceland-20171028-with-j.psv'
|
|
144
|
+
)
|
|
145
|
+
end
|
|
146
|
+
@election_results_of_2017
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# Statistical Analysis of Polling Results (SAPoR)
|
|
2
|
+
# Copyright (C) 2020 Filip van Laenen <f.a.vanlaenen@ieee.org>
|
|
3
|
+
#
|
|
4
|
+
# This file is part of SAPoR.
|
|
5
|
+
#
|
|
6
|
+
# SAPoR is free software: you can redistribute it and/or modify it under the
|
|
7
|
+
# terms of the GNU General Public License as published by the Free Software
|
|
8
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
|
9
|
+
# version.
|
|
10
|
+
#
|
|
11
|
+
# SAPoR is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
12
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
13
|
+
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You can find a copy of the GNU General Public License in /doc/gpl.txt
|
|
16
|
+
#
|
|
17
|
+
Carlow–Kilkenny | Fianna Fáil | 28267 | 3
|
|
18
|
+
Carlow–Kilkenny | Fine Gael | 19147 | 3
|
|
19
|
+
Carlow–Kilkenny | Green Party/Comhaontas Glas | 2621 | 1
|
|
20
|
+
Carlow–Kilkenny | Independent | 1698 | 2
|
|
21
|
+
Carlow–Kilkenny | Labour Party | 4391 | 1
|
|
22
|
+
Carlow–Kilkenny | Renua Ireland | 2483 | 1
|
|
23
|
+
Carlow–Kilkenny | Sinn Féin | 8700 | 1
|
|
24
|
+
Carlow–Kilkenny | Solidarity–People Before Profit | 2702 | 1
|
|
25
|
+
Cavan–Monaghan | Direct Democracy Ireland | 754 | 2
|
|
26
|
+
Cavan–Monaghan | Fianna Fáil | 17952 | 3
|
|
27
|
+
Cavan–Monaghan | Fine Gael | 18957 | 3
|
|
28
|
+
Cavan–Monaghan | Green Party/Comhaontas Glas | 1251 | 1
|
|
29
|
+
Cavan–Monaghan | Sinn Féin | 16126 | 2
|
|
30
|
+
Clare | Fianna Fáil | 17580 | 3
|
|
31
|
+
Clare | Fine Gael | 14707 | 3
|
|
32
|
+
Clare | Fís Nua | 1154 | 1
|
|
33
|
+
Clare | Green Party/Comhaontas Glas | 1700 | 1
|
|
34
|
+
Clare | Independent | 13171 | 4
|
|
35
|
+
Clare | Solidarity–People Before Profit | 4472 | 1
|
|
36
|
+
Clare | Sinn Féin | 4216 | 1
|
|
37
|
+
Cork East | Fianna Fáil | 12858 | 2
|
|
38
|
+
Cork East | Fine Gael | 15038 | 2
|
|
39
|
+
Cork East | Green Party/Comhaontas Glas | 806 | 1
|
|
40
|
+
Cork East | Independent | 5168 | 1
|
|
41
|
+
Cork East | Labour Party | 6949 | 1
|
|
42
|
+
Cork East | Sinn Féin | 5358 | 1
|
|
43
|
+
Cork North-Central | Fianna Fáil | 14286 | 3
|
|
44
|
+
Cork North-Central | Fine Gael | 9105 | 2
|
|
45
|
+
Cork North-Central | Green Party/Comhaontas Glas | 1693 | 1
|
|
46
|
+
Cork North-Central | Independent | 1783 | 6
|
|
47
|
+
Cork North-Central | Labour Party | 3723 | 1
|
|
48
|
+
Cork North-Central | Sinn Féin | 10004 | 2
|
|
49
|
+
Cork North-Central | Solidarity–People Before Profit | 8041 | 1
|
|
50
|
+
Cork North-Central | Workers’ Party | 1419 | 1
|
|
51
|
+
Cork North-West | Communist Party of Ireland | 185 | 1
|
|
52
|
+
Cork North-West | Social Democrats | 185 | 1
|
|
53
|
+
Cork North-West | Fianna Fáil | 16256 | 2
|
|
54
|
+
Cork North-West | Fine Gael | 15106 | 2
|
|
55
|
+
Cork North-West | Green Party/Comhaontas Glas | 1354 | 1
|
|
56
|
+
Cork North-West | Independent | 9251 | 1
|
|
57
|
+
Cork South-Central | Fianna Fáil | 23141 | 2
|
|
58
|
+
Cork South-Central | Fine Gael | 14384 | 2
|
|
59
|
+
Cork South-Central | Green Party/Comhaontas Glas | 2064 | 1
|
|
60
|
+
Cork South-Central | Independent | 4071 | 4
|
|
61
|
+
Cork South-Central | Labour Party | 2417 | 1
|
|
62
|
+
Cork South-Central | Social Democrats | 2417 | 1
|
|
63
|
+
Cork South-Central | Sinn Féin | 6986 | 1
|
|
64
|
+
Cork South-Central | Solidarity–People Before Profit | 1732 | 2
|
|
65
|
+
Cork South-West | Catholic Democrats | 686 | 1
|
|
66
|
+
Cork South-West | Fianna Fáil | 8482 | 2
|
|
67
|
+
Cork South-West | Fine Gael | 13803 | 2
|
|
68
|
+
Cork South-West | Independent | 12844 | 2
|
|
69
|
+
Cork South-West | Social Democrats | 3035 | 1
|
|
70
|
+
Cork South-West | Sinn Féin | 3656 | 1
|
|
71
|
+
Donegal | Fianna Fáil | 22731 | 2
|
|
72
|
+
Donegal | Fine Gael | 11243 | 2
|
|
73
|
+
Donegal | Fís Nua | 70 | 1
|
|
74
|
+
Donegal | Green Party/Comhaontas Glas | 428 | 1
|
|
75
|
+
Donegal | Independent | 18653 | 4
|
|
76
|
+
Donegal | Sinn Féin | 20178 | 3
|
|
77
|
+
Donegal | Renua Ireland | 500 | 4
|
|
78
|
+
Dublin Bay North | Fianna Fáil | 11367 | 2
|
|
79
|
+
Dublin Bay North | Fine Gael | 14517 | 2
|
|
80
|
+
Dublin Bay North | Green Party/Comhaontas Glas | 1024 | 1
|
|
81
|
+
Dublin Bay North | Independent | 13401 | 6
|
|
82
|
+
Dublin Bay North | Labour Party | 5675 | 1
|
|
83
|
+
Dublin Bay North | Sinn Féin | 8566 | 1
|
|
84
|
+
Dublin Bay North | Social Democrats | 3864 | 1
|
|
85
|
+
Dublin Bay North | Solidarity–People Before Profit | 6645 | 2
|
|
86
|
+
Dublin Bay South | Fianna Fáil | 4575 | 1
|
|
87
|
+
Dublin Bay South | Fine Gael | 11966 | 2
|
|
88
|
+
Dublin Bay South | Green Party/Comhaontas Glas | 4529 | 1
|
|
89
|
+
Dublin Bay South | Independent | 2045 | 5
|
|
90
|
+
Dublin Bay South | Labour Party | 4205 | 1
|
|
91
|
+
Dublin Bay South | Renua Ireland | 4229 | 1
|
|
92
|
+
Dublin Bay South | Sinn Féin | 3774 | 1
|
|
93
|
+
Dublin Bay South | Social Democrats | 2652 | 1
|
|
94
|
+
Dublin Bay South | Solidarity–People Before Profit | 1728 | 1
|
|
95
|
+
Dublin Central | Direct Democracy Ireland | 62 | 1
|
|
96
|
+
Dublin Central | Fianna Fáil | 2508 | 1
|
|
97
|
+
Dublin Central | Fine Gael | 3226 | 2
|
|
98
|
+
Dublin Central | Green Party/Comhaontas Glas | 644 | 1
|
|
99
|
+
Dublin Central | Independent | 5723 | 5
|
|
100
|
+
Dublin Central | Labour Party | 2092 | 1
|
|
101
|
+
Dublin Central | Sinn Féin | 5770 | 1
|
|
102
|
+
Dublin Central | Social Democrats | 2307 | 1
|
|
103
|
+
Dublin Central | Solidarity–People Before Profit | 721 | 2
|
|
104
|
+
Dublin Central | Workers’ Party | 303 | 1
|
|
105
|
+
Dublin Fingal | Fianna Fáil | 14185 | 2
|
|
106
|
+
Dublin Fingal | Fine Gael | 12180 | 2
|
|
107
|
+
Dublin Fingal | Green Party/Comhaontas Glas | 2783 | 1
|
|
108
|
+
Dublin Fingal | Independent | 3953 | 4
|
|
109
|
+
Dublin Fingal | Labour Party | 6009 | 1
|
|
110
|
+
Dublin Fingal | Sinn Féin | 5228 | 1
|
|
111
|
+
Dublin Fingal | Solidarity–People Before Profit | 2067 | 1
|
|
112
|
+
Dublin Mid-West | Direct Democracy Ireland | 167 | 1
|
|
113
|
+
Dublin Mid-West | Fianna Fáil | 6971 | 2
|
|
114
|
+
Dublin Mid-West | Fine Gael | 11365 | 2
|
|
115
|
+
Dublin Mid-West | Green Party/Comhaontas Glas | 388 | 1
|
|
116
|
+
Dublin Mid-West | Independent | 4521 | 2
|
|
117
|
+
Dublin Mid-West | Labour Party | 2146 | 1
|
|
118
|
+
Dublin Mid-West | Sinn Féin | 9782 | 2
|
|
119
|
+
Dublin Mid-West | Solidarity–People Before Profit | 4629 | 1
|
|
120
|
+
Dublin Mid-West | Workers’ Party | 502 | 1
|
|
121
|
+
Dublin North-West | Direct Democracy Ireland | 158 | 1
|
|
122
|
+
Dublin North-West | Fianna Fáil | 4750 | 1
|
|
123
|
+
Dublin North-West | Fine Gael | 4642 | 1
|
|
124
|
+
Dublin North-West | Green Party/Comhaontas Glas | 915 | 1
|
|
125
|
+
Dublin North-West | Independent | 1120 | 2
|
|
126
|
+
Dublin North-West | Labour Party | 2750 | 1
|
|
127
|
+
Dublin North-West | Sinn Féin | 10008 | 1
|
|
128
|
+
Dublin North-West | Social Democrats | 10540 | 1
|
|
129
|
+
Dublin North-West | Solidarity–People Before Profit | 1434 | 1
|
|
130
|
+
Dublin North-West | Workers’ Party | 692 | 1
|
|
131
|
+
Dublin Rathdown | Fianna Fáil | 4220 | 2
|
|
132
|
+
Dublin Rathdown | Fine Gael | 12573 | 2
|
|
133
|
+
Dublin Rathdown | Green Party/Comhaontas Glas | 4122 | 1
|
|
134
|
+
Dublin Rathdown | Independent | 12223 | 2
|
|
135
|
+
Dublin Rathdown | Labour Party | 4048 | 1
|
|
136
|
+
Dublin Rathdown | Sinn Féin | 2858 | 1
|
|
137
|
+
Dublin South-Central | Direct Democracy Ireland | 407 | 1
|
|
138
|
+
Dublin South-Central | Fianna Fáil | 5441 | 1
|
|
139
|
+
Dublin South-Central | Fine Gael | 6130 | 1
|
|
140
|
+
Dublin South-Central | Green Party/Comhaontas Glas | 1410 | 1
|
|
141
|
+
Dublin South-Central | Independent | 2305 | 4
|
|
142
|
+
Dublin South-Central | Independents 4 Change | 6195 | 1
|
|
143
|
+
Dublin South-Central | Labour Party | 3297 | 1
|
|
144
|
+
Dublin South-Central | Sinn Féin | 9971 | 1
|
|
145
|
+
Dublin South-Central | Social Democrats | 2434 | 1
|
|
146
|
+
Dublin South-Central | Solidarity–People Before Profit | 4374 | 1
|
|
147
|
+
Dublin South-West | Direct Democracy Ireland | 359 | 1
|
|
148
|
+
Dublin South-West | Fianna Fáil | 9647 | 3
|
|
149
|
+
Dublin South-West | Fine Gael | 14746 | 2
|
|
150
|
+
Dublin South-West | Green Party/Comhaontas Glas | 1297 | 1
|
|
151
|
+
Dublin South-West | Independent | 12102 | 2
|
|
152
|
+
Dublin South-West | Labour Party | 4378 | 1
|
|
153
|
+
Dublin South-West | Renua Ireland | 2906 | 1
|
|
154
|
+
Dublin South-West | Sinn Féin | 9590 | 1
|
|
155
|
+
Dublin South-West | Social Democrats | 4378 | 1
|
|
156
|
+
Dublin South-West | Solidarity–People Before Profit | 12246 | 1
|
|
157
|
+
Dublin West | Fianna Fáil | 6917 | 1
|
|
158
|
+
Dublin West | Fine Gael | 9321 | 2
|
|
159
|
+
Dublin West | Green Party/Comhaontas Glas | 1730 | 1
|
|
160
|
+
Dublin West | Independent | 4308 | 3
|
|
161
|
+
Dublin West | Labour Party | 6445 | 1
|
|
162
|
+
Dublin West | Sinn Féin | 6034 | 1
|
|
163
|
+
Dublin West | Solidarity–People Before Profit | 6520 | 1
|
|
164
|
+
Dún Laoghaire | Direct Democracy Ireland | 213 | 1
|
|
165
|
+
Dún Laoghaire | Fianna Fáil | 11143 | 2
|
|
166
|
+
Dún Laoghaire | Fine Gael | 21306 | 3
|
|
167
|
+
Dún Laoghaire | Green Party/Comhaontas Glas | 3478 | 1
|
|
168
|
+
Dún Laoghaire | Independent | 3152 | 1
|
|
169
|
+
Dún Laoghaire | Labour Party | 5192 | 1
|
|
170
|
+
Dún Laoghaire | Sinn Féin | 3167 | 1
|
|
171
|
+
Dún Laoghaire | Social Democrats | 5192 | 1
|
|
172
|
+
Dún Laoghaire | Solidarity–People Before Profit | 9775 | 1
|
|
173
|
+
Galway East | Direct Democracy Ireland | 489 | 1
|
|
174
|
+
Galway East | Fianna Fáil | 12364 | 2
|
|
175
|
+
Galway East | Fine Gael | 13597 | 2
|
|
176
|
+
Galway East | Green Party/Comhaontas Glas | 769 | 1
|
|
177
|
+
Galway East | Independent | 10805 | 2
|
|
178
|
+
Galway East | Labour Party | 4531 | 1
|
|
179
|
+
Galway East | Social Democrats | 4531 | 1
|
|
180
|
+
Galway East | Sinn Féin | 2683 | 1
|
|
181
|
+
Galway West | Direct Democracy Ireland | 152 | 1
|
|
182
|
+
Galway West | Fianna Fáil | 15629 | 2
|
|
183
|
+
Galway West | Fine Gael | 15437 | 2
|
|
184
|
+
Galway West | Green Party/Comhaontas Glas | 1588 | 1
|
|
185
|
+
Galway West | Independent | 17024 | 4
|
|
186
|
+
Galway West | Labour Party | 3220 | 1
|
|
187
|
+
Galway West | Sinn Féin | 5755 | 1
|
|
188
|
+
Galway West | Social Democrats | 3455 | 1
|
|
189
|
+
Galway West | Solidarity–People Before Profit | 1017 | 1
|
|
190
|
+
Kerry | Fianna Fáil | 12504 | 3
|
|
191
|
+
Kerry | Fine Gael | 16939 | 2
|
|
192
|
+
Kerry | Green Party/Comhaontas Glas | 1011 | 1
|
|
193
|
+
Kerry | Independent | 32851 | 4
|
|
194
|
+
Kerry | Sinn Féin | 9458 | 1
|
|
195
|
+
Kildare North | Fianna Fáil | 13802 | 2
|
|
196
|
+
Kildare North | Fine Gael | 11553 | 2
|
|
197
|
+
Kildare North | Green Party/Comhaontas Glas | 1485 | 1
|
|
198
|
+
Kildare North | Independent | 1920 | 2
|
|
199
|
+
Kildare North | Labour Party | 4087 | 1
|
|
200
|
+
Kildare North | Renua Ireland | 994 | 1
|
|
201
|
+
Kildare North | Sinn Féin | 3205 | 1
|
|
202
|
+
Kildare North | Social Democrats | 11108 | 1
|
|
203
|
+
Kildare North | Solidarity–People Before Profit | 781 | 1
|
|
204
|
+
Kildare South | Fianna Fáil | 13375 | 3
|
|
205
|
+
Kildare South | Fine Gael | 11101 | 1
|
|
206
|
+
Kildare South | Green Party/Comhaontas Glas | 836 | 1
|
|
207
|
+
Kildare South | Independent | 2143 | 2
|
|
208
|
+
Kildare South | Labour Party | 4277 | 1
|
|
209
|
+
Kildare South | Social Democrats | 4277 | 1
|
|
210
|
+
Kildare South | Solidarity–People Before Profit | 4277 | 1
|
|
211
|
+
Kildare South | Sinn Féin | 4267 | 1
|
|
212
|
+
Laois–Offaly | Fianna Fáil | 29386 | 4
|
|
213
|
+
Laois–Offaly | Fine Gael | 19441 | 2
|
|
214
|
+
Laois–Offaly | Green Party/Comhaontas Glas | 2066 | 1
|
|
215
|
+
Laois–Offaly | Independent | 10540 | 2
|
|
216
|
+
Laois–Offaly | Irish Democratic Party | 971 | 1
|
|
217
|
+
Laois–Offaly | Labour Party | 2856 | 1
|
|
218
|
+
Laois–Offaly | Solidarity–People Before Profit | 2856 | 1
|
|
219
|
+
Laois–Offaly | Renua Ireland | 4596 | 1
|
|
220
|
+
Laois–Offaly | Sinn Féin | 13046 | 2
|
|
221
|
+
Limerick City | Catholic Democrats | 673 | 1
|
|
222
|
+
Limerick City | Fianna Fáil | 12999 | 2
|
|
223
|
+
Limerick City | Fine Gael | 13341 | 2
|
|
224
|
+
Limerick City | Green Party/Comhaontas Glas | 964 | 1
|
|
225
|
+
Limerick City | Independent | 332 | 1
|
|
226
|
+
Limerick City | Labour Party | 5227 | 1
|
|
227
|
+
Limerick City | Sinn Féin | 5894 | 1
|
|
228
|
+
Limerick City | Social Democrats | 2747 | 1
|
|
229
|
+
Limerick City | Solidarity–People Before Profit | 4584 | 1
|
|
230
|
+
Limerick County | Direct Democracy Ireland | 222 | 1
|
|
231
|
+
Limerick County | Fianna Fáil | 12276 | 2
|
|
232
|
+
Limerick County | Fine Gael | 16492 | 2
|
|
233
|
+
Limerick County | Green Party/Comhaontas Glas | 311 | 1
|
|
234
|
+
Limerick County | Independent | 8494 | 3
|
|
235
|
+
Limerick County | Sinn Féin | 3347 | 1
|
|
236
|
+
Longford–Westmeath | Catholic Democrats | 654 | 1
|
|
237
|
+
Longford–Westmeath | Direct Democracy Ireland | 132 | 1
|
|
238
|
+
Longford–Westmeath | Fianna Fáil | 15596 | 2
|
|
239
|
+
Longford–Westmeath | Fine Gael | 13156 | 3
|
|
240
|
+
Longford–Westmeath | Green Party/Comhaontas Glas | 1102 | 1
|
|
241
|
+
Longford–Westmeath | Independent | 14013 | 4
|
|
242
|
+
Longford–Westmeath | Labour Party | 4817 | 1
|
|
243
|
+
Longford–Westmeath | Sinn Féin | 5270 | 1
|
|
244
|
+
Longford–Westmeath | Solidarity–People Before Profit | 506 | 2
|
|
245
|
+
Louth | Direct Democracy Ireland | 803 | 2
|
|
246
|
+
Louth | Fianna Fáil | 12521 | 2
|
|
247
|
+
Louth | Fine Gael | 13222 | 2
|
|
248
|
+
Louth | Green Party/Comhaontas Glas | 3187 | 1
|
|
249
|
+
Louth | Independent | 6606 | 4
|
|
250
|
+
Louth | Labour Party | 6143 | 1
|
|
251
|
+
Louth | Renua Ireland | 2095 | 1
|
|
252
|
+
Louth | Sinn Féin | 19490 | 2
|
|
253
|
+
Louth | Solidarity–People Before Profit | 3462 | 1
|
|
254
|
+
Mayo | Fianna Fáil | 17633 | 2
|
|
255
|
+
Mayo | Fine Gael | 32434 | 3
|
|
256
|
+
Mayo | Green Party/Comhaontas Glas | 629 | 1
|
|
257
|
+
Mayo | Independent | 4386 | 4
|
|
258
|
+
Mayo | Sinn Féin | 6414 | 1
|
|
259
|
+
Mayo | Solidarity–People Before Profit | 576 | 1
|
|
260
|
+
Mayo | Labour Party | 576 | 1
|
|
261
|
+
Meath East | Direct Democracy Ireland | 794 | 1
|
|
262
|
+
Meath East | Fianna Fáil | 10818 | 2
|
|
263
|
+
Meath East | Fine Gael | 14386 | 2
|
|
264
|
+
Meath East | Green Party/Comhaontas Glas | 766 | 1
|
|
265
|
+
Meath East | Independent | 4010 | 2
|
|
266
|
+
Meath East | Labour Party | 2270 | 1
|
|
267
|
+
Meath East | Sinn Féin | 5780 | 1
|
|
268
|
+
Meath East | Solidarity–People Before Profit | 1715 | 1
|
|
269
|
+
Meath East | Workers’ Party | 326 | 1
|
|
270
|
+
Meath West | Direct Democracy Ireland | 1279 | 1
|
|
271
|
+
Meath West | Fianna Fáil | 10585 | 1
|
|
272
|
+
Meath West | Fine Gael | 12555 | 3
|
|
273
|
+
Meath West | Green Party/Comhaontas Glas | 1421 | 1
|
|
274
|
+
Meath West | Social Democrats | 1166 | 1
|
|
275
|
+
Meath West | Sinn Féin | 9442 | 1
|
|
276
|
+
Roscommon–Galway | Fianna Fáil | 8819 | 2
|
|
277
|
+
Roscommon–Galway | Fine Gael | 6812 | 1
|
|
278
|
+
Roscommon–Galway | Green Party/Comhaontas Glas | 286 | 1
|
|
279
|
+
Roscommon–Galway | Independent | 23975 | 3
|
|
280
|
+
Roscommon–Galway | Sinn Féin | 3075 | 1
|
|
281
|
+
Roscommon–Galway | Solidarity–People Before Profit | 982 | 1
|
|
282
|
+
Sligo–Leitrim | Fianna Fáil | 20177 | 3
|
|
283
|
+
Sligo–Leitrim | Fine Gael | 17247 | 2
|
|
284
|
+
Sligo–Leitrim | Green Party/Comhaontas Glas | 603 | 1
|
|
285
|
+
Sligo–Leitrim | Independent | 8727 | 6
|
|
286
|
+
Sligo–Leitrim | Independents 4 Change | 4363 | 1
|
|
287
|
+
Sligo–Leitrim | Labour Party | 1829 | 1
|
|
288
|
+
Sligo–Leitrim | Renua Ireland | 881 | 1
|
|
289
|
+
Sligo–Leitrim | Sinn Féin | 11103 | 1
|
|
290
|
+
Sligo–Leitrim | Solidarity–People Before Profit | 1768 | 1
|
|
291
|
+
Tipperary | Fianna Fáil | 18604 | 3
|
|
292
|
+
Tipperary | Fine Gael | 12542 | 2
|
|
293
|
+
Tipperary | Green Party/Comhaontas Glas | 1341 | 1
|
|
294
|
+
Tipperary | Independent | 31991 | 5
|
|
295
|
+
Tipperary | Labour Party | 7746 | 1
|
|
296
|
+
Tipperary | Sinn Féin | 5724 | 1
|
|
297
|
+
Waterford | Direct Democracy Ireland | 194 | 1
|
|
298
|
+
Waterford | Fianna Fáil | 10603 | 2
|
|
299
|
+
Waterford | Fine Gael | 14850 | 2
|
|
300
|
+
Waterford | Green Party/Comhaontas Glas | 2237 | 1
|
|
301
|
+
Waterford | Independent | 9304 | 2
|
|
302
|
+
Waterford | Labour Party | 2268 | 1
|
|
303
|
+
Waterford | Sinn Féin | 9739 | 1
|
|
304
|
+
Waterford | Solidarity–People Before Profit | 1646 | 1
|
|
305
|
+
Wexford | Direct Democracy Ireland | 128 | 1
|
|
306
|
+
Wexford | Fianna Fáil | 19106 | 4
|
|
307
|
+
Wexford | Fine Gael | 16708 | 2
|
|
308
|
+
Wexford | Green Party/Comhaontas Glas | 1056 | 1
|
|
309
|
+
Wexford | Independent | 5805 | 3
|
|
310
|
+
Wexford | Independents 4 Change | 7917 | 1
|
|
311
|
+
Wexford | Labour Party | 10574 | 1
|
|
312
|
+
Wexford | Sinn Féin | 7260 | 1
|
|
313
|
+
Wexford | Solidarity–People Before Profit | 1472 | 1
|
|
314
|
+
Wicklow | Direct Democracy Ireland | 168 | 1
|
|
315
|
+
Wicklow | Fianna Fáil | 9279 | 2
|
|
316
|
+
Wicklow | Fine Gael | 18955 | 3
|
|
317
|
+
Wicklow | Green Party/Comhaontas Glas | 1350 | 1
|
|
318
|
+
Wicklow | Independent | 3629 | 8
|
|
319
|
+
Wicklow | Labour Party | 2634 | 1
|
|
320
|
+
Wicklow | Sinn Féin | 11151 | 1
|
|
321
|
+
Wicklow | Social Democrats | 14348 | 1
|
|
322
|
+
Wicklow | Solidarity–People Before Profit | 1780 | 2
|