sapor 0.1b1 → 0.2a1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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 +9 -355
- data/README.md +41 -8
- data/bin/create_installation_package.sh +2 -2
- data/bin/install.sh +1 -1
- data/bin/sapor.rb +4 -2
- data/bin/sapor.sh +10 -9
- 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/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/binomials_cache.rb +1 -1
- data/lib/sapor/combinations_distribution.rb +43 -1
- data/lib/sapor/denominators.rb +67 -0
- data/lib/sapor/dichotomies.rb +41 -1
- data/lib/sapor/dichotomy.rb +31 -5
- data/lib/sapor/first_past_the_post.rb +6 -2
- data/lib/sapor/largest_remainder.rb +118 -0
- data/lib/sapor/log4r_logger.rb +1 -1
- data/lib/sapor/log_facade.rb +1 -1
- data/lib/sapor/{leveled_proportional.rb → multi_district_leveled_proportional.rb} +7 -7
- data/lib/sapor/{proportional.rb → multi_district_proportional.rb} +27 -32
- data/lib/sapor/multi_district_variable_threshold_proportional.rb +128 -0
- data/lib/sapor/number_formatter.rb +1 -1
- data/lib/sapor/options.rb +73 -0
- data/lib/sapor/poll.rb +178 -29
- data/lib/sapor/polychotomy.rb +100 -259
- data/lib/sapor/pseudorandom_multirange_enumerator.rb +1 -1
- data/lib/sapor/referendum_polychotomy.rb +165 -0
- data/lib/sapor/regional_data/area.rb +4 -2
- 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 +1 -1
- data/lib/sapor/regional_data/catalonia-2012.psv +1 -1
- 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-jxcat.rb +109 -0
- data/lib/sapor/regional_data/catalonia-no-jxsi.rb +96 -0
- data/lib/sapor/regional_data/catalonia.rb +27 -21
- 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 +81 -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_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 +83 -0
- data/lib/sapor/regional_data/european_union_27_netherlands.rb +81 -0
- data/lib/sapor/regional_data/european_union_27_poland.rb +79 -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 +81 -0
- data/lib/sapor/regional_data/european_union_croatia.rb +81 -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_france_2019.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 +83 -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 +79 -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.psv +85 -0
- data/lib/sapor/regional_data/iceland.rb +133 -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.rb +112 -0
- data/lib/sapor/regional_data/latvia_kpv.rb +112 -0
- data/lib/sapor/regional_data/latvia_kpv_p_par.rb +112 -0
- data/lib/sapor/regional_data/latvia_kpv_par.rb +112 -0
- data/lib/sapor/regional_data/luxembourg-20131020.psv +76 -0
- data/lib/sapor/regional_data/luxembourg.rb +82 -0
- data/lib/sapor/regional_data/netherlands.rb +108 -0
- data/lib/sapor/regional_data/norway.rb +85 -68
- 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 +57 -1038
- 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 +2 -2
- data/lib/sapor/regional_data/wallonia-2014.psv +101 -0
- data/lib/sapor/regional_data/wallonia.rb +97 -0
- data/lib/sapor/representatives_polychotomy.rb +338 -0
- data/lib/sapor/single_district_proportional.rb +75 -0
- data/lib/sapor.rb +112 -6
- data/sapor.gemspec +2 -2
- data/spec/integration/area_spec.rb +2 -2
- data/spec/integration/poll_spec.rb +6 -1
- data/spec/integration/sample.poll +2 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/unit/area_spec.rb +12 -12
- 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 +1 -1
- data/spec/unit/catalonia_spec.rb +21 -29
- data/spec/unit/combinations_distribution_spec.rb +1 -1
- 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 +8 -2
- data/spec/unit/dichotomies_spec.rb +1 -1
- data/spec/unit/dichotomy_spec.rb +1 -1
- 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_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_2019_spec.rb +73 -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 +6 -5
- 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/largest_remainder_spec.rb +79 -0
- data/spec/unit/latvia_kpv_p_par_spec.rb +38 -0
- data/spec/unit/latvia_kpv_par_spec.rb +38 -0
- data/spec/unit/latvia_kpv_spec.rb +38 -0
- data/spec/unit/latvia_spec.rb +60 -0
- data/spec/unit/luxembourg_spec.rb +54 -0
- data/spec/unit/{leveled_proportional_spec.rb → multi_district_leveled_proportional_spec.rb} +12 -14
- data/spec/unit/{proportional_spec.rb → multi_district_proportional_spec.rb} +11 -16
- data/spec/unit/netherlands_spec.rb +107 -0
- data/spec/unit/norway_spec.rb +23 -6
- data/spec/unit/norwegian_municipality_spec.rb +89 -0
- data/spec/unit/number_formatter_spec.rb +1 -1
- 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 +8 -3
- 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 +1 -1
- data/spec/unit/referendum_polychotomy_spec.rb +289 -0
- data/spec/unit/{polychotomy_spec.rb → representatives_polychotomy_spec.rb} +26 -26
- 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 +130 -0
- metadata +381 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2a1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Filip van Laenen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: SAPoR
|
14
14
|
email:
|
@@ -23,6 +23,11 @@ files:
|
|
23
23
|
- Area Class Diagram.png
|
24
24
|
- Class Diagram.dia
|
25
25
|
- Class Diagram.png
|
26
|
+
- Example-Catalonia.md
|
27
|
+
- Example-Flanders.md
|
28
|
+
- Example-Greece.md
|
29
|
+
- Example-Oslo.md
|
30
|
+
- Example-UnitedKingdom-Referendum.md
|
26
31
|
- Examples.md
|
27
32
|
- LICENSE
|
28
33
|
- README.md
|
@@ -32,47 +37,317 @@ files:
|
|
32
37
|
- bin/install.sh
|
33
38
|
- bin/sapor.rb
|
34
39
|
- bin/sapor.sh
|
40
|
+
- data/hu/hungary-2014.txt
|
41
|
+
- data/hu/hungary_2014_screen_scraper.rb
|
42
|
+
- data/hu/hungary_2014_to_psv.rb
|
43
|
+
- data/hu/index-2014.txt
|
44
|
+
- data/pl/2015-gl-lis-okr.csv
|
45
|
+
- data/pl/poland_2015_to_psv.rb
|
46
|
+
- data/pl/poland_2015_to_psv_with_ko_and_rsw.rb
|
47
|
+
- data/pl/poland_2015_to_psv_with_ko_konf_kp_l_and_zp.rb
|
48
|
+
- data/pl/poland_2015_to_psv_with_ko_sld_and_wi.rb
|
49
|
+
- data/pl/poland_2015_to_psv_with_sld.rb
|
50
|
+
- data/pl/poland_2015_to_psv_with_sld_and_wi.rb
|
51
|
+
- data/uk/inject_ukip_2015_as_brexit_2019_in_2017.rb
|
52
|
+
- data/uk/united_kingdom_2015.txt
|
53
|
+
- data/uk/united_kingdom_2015_to_psv.rb
|
54
|
+
- data/uk/united_kingdom_2017.txt
|
55
|
+
- data/uk/united_kingdom_2017_to_psv.rb
|
56
|
+
- data/uk/united_kingdom_2017_to_psv_with_brexit_and_chuk.rb
|
57
|
+
- data/uk/united_kingdom_2017_to_psv_with_tig.rb
|
35
58
|
- lib/sapor.rb
|
36
59
|
- lib/sapor/binomials_cache.rb
|
37
60
|
- lib/sapor/combinations_distribution.rb
|
61
|
+
- lib/sapor/denominators.rb
|
38
62
|
- lib/sapor/dichotomies.rb
|
39
63
|
- lib/sapor/dichotomy.rb
|
40
64
|
- lib/sapor/first_past_the_post.rb
|
41
|
-
- lib/sapor/
|
65
|
+
- lib/sapor/largest_remainder.rb
|
42
66
|
- lib/sapor/log4r_logger.rb
|
43
67
|
- lib/sapor/log_facade.rb
|
68
|
+
- lib/sapor/multi_district_leveled_proportional.rb
|
69
|
+
- lib/sapor/multi_district_proportional.rb
|
70
|
+
- lib/sapor/multi_district_variable_threshold_proportional.rb
|
44
71
|
- lib/sapor/number_formatter.rb
|
72
|
+
- lib/sapor/options.rb
|
45
73
|
- lib/sapor/poll.rb
|
46
74
|
- lib/sapor/polychotomy.rb
|
47
|
-
- lib/sapor/proportional.rb
|
48
75
|
- lib/sapor/pseudorandom_multirange_enumerator.rb
|
76
|
+
- lib/sapor/referendum_polychotomy.rb
|
49
77
|
- lib/sapor/regional_data/area.rb
|
78
|
+
- lib/sapor/regional_data/austria.rb
|
79
|
+
- lib/sapor/regional_data/belgium-brussels-2014.psv
|
80
|
+
- lib/sapor/regional_data/belgium-brussels-20190526.psv
|
81
|
+
- lib/sapor/regional_data/belgium-flanders-2014.psv
|
82
|
+
- lib/sapor/regional_data/belgium-flanders-20190526.psv
|
83
|
+
- lib/sapor/regional_data/belgium-wallonia-2014.psv
|
84
|
+
- lib/sapor/regional_data/belgium-wallonia-20190526.psv
|
85
|
+
- lib/sapor/regional_data/belgium.rb
|
86
|
+
- lib/sapor/regional_data/belgium_brussels.rb
|
87
|
+
- lib/sapor/regional_data/belgium_flanders.rb
|
88
|
+
- lib/sapor/regional_data/belgium_wallonia.rb
|
50
89
|
- lib/sapor/regional_data/catalonia-2012-2015.psv
|
51
90
|
- lib/sapor/regional_data/catalonia-2012.psv
|
91
|
+
- lib/sapor/regional_data/catalonia-2015-jxcat.psv
|
92
|
+
- lib/sapor/regional_data/catalonia-2015-no-jxsi.psv
|
93
|
+
- lib/sapor/regional_data/catalonia-2015.psv
|
94
|
+
- lib/sapor/regional_data/catalonia-jxcat.rb
|
95
|
+
- lib/sapor/regional_data/catalonia-no-jxsi.rb
|
52
96
|
- lib/sapor/regional_data/catalonia.rb
|
97
|
+
- lib/sapor/regional_data/denmark-20150618-with-e-and-p.psv
|
98
|
+
- lib/sapor/regional_data/denmark-20150618-with-e.psv
|
99
|
+
- lib/sapor/regional_data/denmark-20150618-with-p.psv
|
100
|
+
- lib/sapor/regional_data/denmark-20150618.psv
|
101
|
+
- lib/sapor/regional_data/denmark.rb
|
102
|
+
- lib/sapor/regional_data/denmark_with_e.rb
|
103
|
+
- lib/sapor/regional_data/denmark_with_e_and_p.rb
|
104
|
+
- lib/sapor/regional_data/denmark_with_p.rb
|
105
|
+
- lib/sapor/regional_data/estonia.rb
|
106
|
+
- lib/sapor/regional_data/european-union-great-britain-20140522-brexit-chuk.psv
|
107
|
+
- lib/sapor/regional_data/european-union-great-britain-20140522.psv
|
108
|
+
- lib/sapor/regional_data/european-union-great-britain-20190523.psv
|
109
|
+
- lib/sapor/regional_data/european-union-ireland-2014-ia-ri-sd.psv
|
110
|
+
- lib/sapor/regional_data/european-union-ireland-2014-ia-sd.psv
|
111
|
+
- lib/sapor/regional_data/european-union-ireland-2014-ia.psv
|
112
|
+
- lib/sapor/regional_data/european-union-ireland-2014-sd.psv
|
113
|
+
- lib/sapor/regional_data/european-union-ireland-2014.psv
|
114
|
+
- lib/sapor/regional_data/european-union-ireland-20190524-ia.psv
|
115
|
+
- lib/sapor/regional_data/european-union-ireland-20190524.psv
|
116
|
+
- lib/sapor/regional_data/european_union_27_austria.rb
|
117
|
+
- lib/sapor/regional_data/european_union_27_croatia.rb
|
118
|
+
- lib/sapor/regional_data/european_union_27_denmark.rb
|
119
|
+
- lib/sapor/regional_data/european_union_27_estonia.rb
|
120
|
+
- lib/sapor/regional_data/european_union_27_finland.rb
|
121
|
+
- lib/sapor/regional_data/european_union_27_ireland.rb
|
122
|
+
- lib/sapor/regional_data/european_union_27_ireland_with_ia.rb
|
123
|
+
- lib/sapor/regional_data/european_union_27_italy.rb
|
124
|
+
- lib/sapor/regional_data/european_union_27_netherlands.rb
|
125
|
+
- lib/sapor/regional_data/european_union_27_poland.rb
|
126
|
+
- lib/sapor/regional_data/european_union_27_romania.rb
|
127
|
+
- lib/sapor/regional_data/european_union_27_slovakia.rb
|
128
|
+
- lib/sapor/regional_data/european_union_27_spain.rb
|
129
|
+
- lib/sapor/regional_data/european_union_27_sweden.rb
|
130
|
+
- lib/sapor/regional_data/european_union_austria.rb
|
131
|
+
- lib/sapor/regional_data/european_union_bulgaria.rb
|
132
|
+
- lib/sapor/regional_data/european_union_croatia.rb
|
133
|
+
- lib/sapor/regional_data/european_union_cyprus.rb
|
134
|
+
- lib/sapor/regional_data/european_union_czech_republic.rb
|
135
|
+
- lib/sapor/regional_data/european_union_denmark.rb
|
136
|
+
- lib/sapor/regional_data/european_union_estonia.rb
|
137
|
+
- lib/sapor/regional_data/european_union_finland.rb
|
138
|
+
- lib/sapor/regional_data/european_union_flanders.rb
|
139
|
+
- lib/sapor/regional_data/european_union_france.rb
|
140
|
+
- lib/sapor/regional_data/european_union_france_2019.rb
|
141
|
+
- lib/sapor/regional_data/european_union_french_community_of_belgium.rb
|
142
|
+
- lib/sapor/regional_data/european_union_germany.rb
|
143
|
+
- lib/sapor/regional_data/european_union_great_britain.rb
|
144
|
+
- lib/sapor/regional_data/european_union_greece.rb
|
145
|
+
- lib/sapor/regional_data/european_union_hungary.rb
|
146
|
+
- lib/sapor/regional_data/european_union_ireland.rb
|
147
|
+
- lib/sapor/regional_data/european_union_ireland_with_ia.rb
|
148
|
+
- lib/sapor/regional_data/european_union_italy.rb
|
149
|
+
- lib/sapor/regional_data/european_union_latvia.rb
|
150
|
+
- lib/sapor/regional_data/european_union_lithuania.rb
|
151
|
+
- lib/sapor/regional_data/european_union_luxembourg.rb
|
152
|
+
- lib/sapor/regional_data/european_union_malta.rb
|
153
|
+
- lib/sapor/regional_data/european_union_netherlands.rb
|
154
|
+
- lib/sapor/regional_data/european_union_northern_ireland.rb
|
155
|
+
- lib/sapor/regional_data/european_union_poland.rb
|
156
|
+
- lib/sapor/regional_data/european_union_portugal.rb
|
157
|
+
- lib/sapor/regional_data/european_union_romania.rb
|
158
|
+
- lib/sapor/regional_data/european_union_slovakia.rb
|
159
|
+
- lib/sapor/regional_data/european_union_slovenia.rb
|
160
|
+
- lib/sapor/regional_data/european_union_spain.rb
|
161
|
+
- lib/sapor/regional_data/european_union_sweden.rb
|
162
|
+
- lib/sapor/regional_data/finland-20150419-with-sin.psv
|
163
|
+
- lib/sapor/regional_data/finland-20150419.psv
|
164
|
+
- lib/sapor/regional_data/finland.rb
|
165
|
+
- lib/sapor/regional_data/finland_with_sin.rb
|
166
|
+
- lib/sapor/regional_data/flanders-2014.psv
|
167
|
+
- lib/sapor/regional_data/flanders-20190526.psv
|
168
|
+
- lib/sapor/regional_data/flanders.rb
|
169
|
+
- lib/sapor/regional_data/france.rb
|
170
|
+
- lib/sapor/regional_data/greece.rb
|
171
|
+
- lib/sapor/regional_data/hungary-2014.psv
|
172
|
+
- lib/sapor/regional_data/hungary.rb
|
173
|
+
- lib/sapor/regional_data/iceland-20161029-midflokkurinn.psv
|
174
|
+
- lib/sapor/regional_data/iceland-20161029.psv
|
175
|
+
- lib/sapor/regional_data/iceland-20171028.psv
|
176
|
+
- lib/sapor/regional_data/iceland.rb
|
177
|
+
- lib/sapor/regional_data/latvia-20141004-kpv-p-par.psv
|
178
|
+
- lib/sapor/regional_data/latvia-20141004-kpv-par.psv
|
179
|
+
- lib/sapor/regional_data/latvia-20141004-kpv.psv
|
180
|
+
- lib/sapor/regional_data/latvia-20141004.psv
|
181
|
+
- lib/sapor/regional_data/latvia.rb
|
182
|
+
- lib/sapor/regional_data/latvia_kpv.rb
|
183
|
+
- lib/sapor/regional_data/latvia_kpv_p_par.rb
|
184
|
+
- lib/sapor/regional_data/latvia_kpv_par.rb
|
185
|
+
- lib/sapor/regional_data/luxembourg-20131020.psv
|
186
|
+
- lib/sapor/regional_data/luxembourg.rb
|
187
|
+
- lib/sapor/regional_data/netherlands.rb
|
53
188
|
- lib/sapor/regional_data/norway.rb
|
189
|
+
- lib/sapor/regional_data/norwegian_municipality.rb
|
190
|
+
- lib/sapor/regional_data/poland-20151025-with-ko-and-l-without-n-po-r-and-zl.psv
|
191
|
+
- lib/sapor/regional_data/poland-20151025-with-ko-konf-kp-l-and-zp-without-k-k15-n-pis-po-psl-r-and-zl.psv
|
192
|
+
- lib/sapor/regional_data/poland-20151025-with-ko-sld-and-wi-without-n-po-and-zl.psv
|
193
|
+
- lib/sapor/regional_data/poland-20151025-with-sld-and-wi-without-zl.psv
|
194
|
+
- lib/sapor/regional_data/poland-20151025-with-sld-without-zl.psv
|
195
|
+
- lib/sapor/regional_data/poland-20151025.psv
|
196
|
+
- lib/sapor/regional_data/poland.rb
|
197
|
+
- lib/sapor/regional_data/poland_with_ko_and_l_without_n_po_r_and_zl.rb
|
198
|
+
- lib/sapor/regional_data/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl.rb
|
199
|
+
- lib/sapor/regional_data/poland_with_ko_sld_and_wi_without_n_po_and_zl.rb
|
200
|
+
- lib/sapor/regional_data/poland_with_sld_and_wi_without_zl.rb
|
201
|
+
- lib/sapor/regional_data/poland_with_sld_without_zl.rb
|
202
|
+
- lib/sapor/regional_data/portugal-20151004-with-a-and-ch-without-paf.psv
|
203
|
+
- lib/sapor/regional_data/portugal-20151004-with-a-and-il-without-paf.psv
|
204
|
+
- lib/sapor/regional_data/portugal-20151004-with-a-ch-and-il-without-paf.psv
|
205
|
+
- lib/sapor/regional_data/portugal-20151004-with-a-without-paf.psv
|
206
|
+
- lib/sapor/regional_data/portugal-20151004-with-ch-and-il-without-paf.psv
|
207
|
+
- lib/sapor/regional_data/portugal-20151004-without-paf.psv
|
208
|
+
- lib/sapor/regional_data/portugal-20151004.psv
|
209
|
+
- lib/sapor/regional_data/portugal.rb
|
210
|
+
- lib/sapor/regional_data/portugal_with_a_and_ch_without_paf.rb
|
211
|
+
- lib/sapor/regional_data/portugal_with_a_and_il_without_paf.rb
|
212
|
+
- lib/sapor/regional_data/portugal_with_a_ch_and_il_without_paf.rb
|
213
|
+
- lib/sapor/regional_data/portugal_with_a_without_paf.rb
|
214
|
+
- lib/sapor/regional_data/portugal_with_ch_and_il_without_paf.rb
|
215
|
+
- lib/sapor/regional_data/portugal_without_paf.rb
|
216
|
+
- lib/sapor/regional_data/slovakia.rb
|
217
|
+
- lib/sapor/regional_data/slovenia.rb
|
218
|
+
- lib/sapor/regional_data/spain-20160626.psv
|
219
|
+
- lib/sapor/regional_data/spain.rb
|
220
|
+
- lib/sapor/regional_data/sweden.rb
|
221
|
+
- lib/sapor/regional_data/sweden_20140914.rb
|
222
|
+
- lib/sapor/regional_data/united_kingdom-2015.psv
|
223
|
+
- lib/sapor/regional_data/united_kingdom-20170608-brexit-chuk.psv
|
224
|
+
- lib/sapor/regional_data/united_kingdom-20170608-brexit.psv
|
225
|
+
- lib/sapor/regional_data/united_kingdom-20170608-tig.psv
|
226
|
+
- lib/sapor/regional_data/united_kingdom-20170608.psv
|
54
227
|
- lib/sapor/regional_data/united_kingdom.rb
|
228
|
+
- lib/sapor/regional_data/united_kingdom_with_brexit.rb
|
229
|
+
- lib/sapor/regional_data/united_kingdom_with_brexit_and_chuk.rb
|
230
|
+
- lib/sapor/regional_data/united_kingdom_with_tig.rb
|
55
231
|
- lib/sapor/regional_data/utopia.rb
|
232
|
+
- lib/sapor/regional_data/wallonia-2014.psv
|
233
|
+
- lib/sapor/regional_data/wallonia.rb
|
234
|
+
- lib/sapor/representatives_polychotomy.rb
|
235
|
+
- lib/sapor/single_district_proportional.rb
|
56
236
|
- sapor.gemspec
|
57
237
|
- spec/integration/area_spec.rb
|
58
238
|
- spec/integration/poll_spec.rb
|
59
239
|
- spec/integration/sample.poll
|
60
240
|
- spec/spec_helper.rb
|
61
241
|
- spec/unit/area_spec.rb
|
242
|
+
- spec/unit/austria_spec.rb
|
243
|
+
- spec/unit/belgium_brussels_spec.rb
|
244
|
+
- spec/unit/belgium_flanders_spec.rb
|
245
|
+
- spec/unit/belgium_spec.rb
|
246
|
+
- spec/unit/belgium_wallonia_spec.rb
|
62
247
|
- spec/unit/binomials_cache_spec.rb
|
63
248
|
- spec/unit/catalonia_spec.rb
|
64
249
|
- spec/unit/combinations_distribution_spec.rb
|
250
|
+
- spec/unit/denmark_spec.rb
|
251
|
+
- spec/unit/denmark_with_e_and_p_spec.rb
|
252
|
+
- spec/unit/denmark_with_e_spec.rb
|
253
|
+
- spec/unit/denmark_with_p_spec.rb
|
65
254
|
- spec/unit/denominators_spec.rb
|
66
255
|
- spec/unit/dichotomies_spec.rb
|
67
256
|
- spec/unit/dichotomy_spec.rb
|
257
|
+
- spec/unit/estonia_spec.rb
|
258
|
+
- spec/unit/european_union_27_austria_spec.rb
|
259
|
+
- spec/unit/european_union_27_croatia_spec.rb
|
260
|
+
- spec/unit/european_union_27_denmark_spec.rb
|
261
|
+
- spec/unit/european_union_27_estonia_spec.rb
|
262
|
+
- spec/unit/european_union_27_finland_spec.rb
|
263
|
+
- spec/unit/european_union_27_ireland_spec.rb
|
264
|
+
- spec/unit/european_union_27_ireland_with_ia_spec.rb
|
265
|
+
- spec/unit/european_union_27_italy_spec.rb
|
266
|
+
- spec/unit/european_union_27_netherlands_spec.rb
|
267
|
+
- spec/unit/european_union_27_poland_spec.rb
|
268
|
+
- spec/unit/european_union_27_romania_spec.rb
|
269
|
+
- spec/unit/european_union_27_slovakia_spec.rb
|
270
|
+
- spec/unit/european_union_27_spain_spec.rb
|
271
|
+
- spec/unit/european_union_27_sweden_spec.rb
|
272
|
+
- spec/unit/european_union_austria_spec.rb
|
273
|
+
- spec/unit/european_union_bulgaria_spec.rb
|
274
|
+
- spec/unit/european_union_croatia_spec.rb
|
275
|
+
- spec/unit/european_union_cyprus_spec.rb
|
276
|
+
- spec/unit/european_union_czech_republic_spec.rb
|
277
|
+
- spec/unit/european_union_denmark_spec.rb
|
278
|
+
- spec/unit/european_union_estonia_spec.rb
|
279
|
+
- spec/unit/european_union_finland_spec.rb
|
280
|
+
- spec/unit/european_union_flanders_spec.rb
|
281
|
+
- spec/unit/european_union_france_2019_spec.rb
|
282
|
+
- spec/unit/european_union_france_spec.rb
|
283
|
+
- spec/unit/european_union_french_community_of_belgium_spec.rb
|
284
|
+
- spec/unit/european_union_germany_spec.rb
|
285
|
+
- spec/unit/european_union_great_britain_spec.rb
|
286
|
+
- spec/unit/european_union_greece_spec.rb
|
287
|
+
- spec/unit/european_union_hungary_spec.rb
|
288
|
+
- spec/unit/european_union_ireland_spec.rb
|
289
|
+
- spec/unit/european_union_ireland_with_ia_spec.rb
|
290
|
+
- spec/unit/european_union_italy_spec.rb
|
291
|
+
- spec/unit/european_union_latvia_spec.rb
|
292
|
+
- spec/unit/european_union_lithuania_spec.rb
|
293
|
+
- spec/unit/european_union_luxembourg_spec.rb
|
294
|
+
- spec/unit/european_union_malta_spec.rb
|
295
|
+
- spec/unit/european_union_netherlands_spec.rb
|
296
|
+
- spec/unit/european_union_northern_ireland_spec.rb
|
297
|
+
- spec/unit/european_union_poland_spec.rb
|
298
|
+
- spec/unit/european_union_portugal_spec.rb
|
299
|
+
- spec/unit/european_union_romania_spec.rb
|
300
|
+
- spec/unit/european_union_slovakia_spec.rb
|
301
|
+
- spec/unit/european_union_slovenia_spec.rb
|
302
|
+
- spec/unit/european_union_spain_spec.rb
|
303
|
+
- spec/unit/european_union_sweden_spec.rb
|
304
|
+
- spec/unit/finland_spec.rb
|
305
|
+
- spec/unit/finland_with_sin_spec.rb
|
68
306
|
- spec/unit/first_past_the_post_spec.rb
|
69
|
-
- spec/unit/
|
307
|
+
- spec/unit/flanders_spec.rb
|
308
|
+
- spec/unit/france_spec.rb
|
309
|
+
- spec/unit/greece_spec.rb
|
310
|
+
- spec/unit/hungary_spec.rb
|
311
|
+
- spec/unit/iceland_spec.rb
|
312
|
+
- spec/unit/largest_remainder_spec.rb
|
313
|
+
- spec/unit/latvia_kpv_p_par_spec.rb
|
314
|
+
- spec/unit/latvia_kpv_par_spec.rb
|
315
|
+
- spec/unit/latvia_kpv_spec.rb
|
316
|
+
- spec/unit/latvia_spec.rb
|
317
|
+
- spec/unit/luxembourg_spec.rb
|
318
|
+
- spec/unit/multi_district_leveled_proportional_spec.rb
|
319
|
+
- spec/unit/multi_district_proportional_spec.rb
|
320
|
+
- spec/unit/netherlands_spec.rb
|
70
321
|
- spec/unit/norway_spec.rb
|
322
|
+
- spec/unit/norwegian_municipality_spec.rb
|
71
323
|
- spec/unit/number_formatter_spec.rb
|
324
|
+
- spec/unit/poland_spec.rb
|
325
|
+
- spec/unit/poland_with_ko_and_l_without_n_po_r_and_zl_spec.rb
|
326
|
+
- spec/unit/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl_spec.rb
|
327
|
+
- spec/unit/poland_with_ko_sld_and_wi_without_n_po_and_zl_spec.rb
|
328
|
+
- spec/unit/poland_with_sld_and_wi_without_zl_spec.rb
|
329
|
+
- spec/unit/poland_with_sld_without_zl_spec.rb
|
72
330
|
- spec/unit/poll_spec.rb
|
73
|
-
- spec/unit/
|
74
|
-
- spec/unit/
|
331
|
+
- spec/unit/portugal_spec.rb
|
332
|
+
- spec/unit/portugal_with_a_and_ch_without_paf_spec.rb
|
333
|
+
- spec/unit/portugal_with_a_and_il_without_paf_spec.rb
|
334
|
+
- spec/unit/portugal_with_a_ch_and_il_without_paf_spec.rb
|
335
|
+
- spec/unit/portugal_with_a_without_paf_spec.rb
|
336
|
+
- spec/unit/portugal_with_ch_and_il_without_paf_spec.rb
|
337
|
+
- spec/unit/portugal_without_paf_spec.rb
|
75
338
|
- spec/unit/pseudorandom_multirange_enumerator_spec.rb
|
339
|
+
- spec/unit/referendum_polychotomy_spec.rb
|
340
|
+
- spec/unit/representatives_polychotomy_spec.rb
|
341
|
+
- spec/unit/slovakia_spec.rb
|
342
|
+
- spec/unit/slovenia_spec.rb
|
343
|
+
- spec/unit/spain_spec.rb
|
344
|
+
- spec/unit/sweden_20140914_spec.rb
|
345
|
+
- spec/unit/sweden_spec.rb
|
346
|
+
- spec/unit/united_kingdom_spec.rb
|
347
|
+
- spec/unit/united_kingdom_with_brexit_and_chuk_spec.rb
|
348
|
+
- spec/unit/united_kingdom_with_brexit_spec.rb
|
349
|
+
- spec/unit/united_kingdom_with_tig_spec.rb
|
350
|
+
- spec/unit/wallonia_spec.rb
|
76
351
|
homepage: https://github.com/filipvanlaenen/sapor
|
77
352
|
licenses:
|
78
353
|
- GPL
|
@@ -93,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
368
|
version: 1.3.1
|
94
369
|
requirements: []
|
95
370
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
371
|
+
rubygems_version: 2.7.6.2
|
97
372
|
signing_key:
|
98
373
|
specification_version: 4
|
99
374
|
summary: Statistical Analysis of Polling Results
|
@@ -103,17 +378,112 @@ test_files:
|
|
103
378
|
- spec/integration/sample.poll
|
104
379
|
- spec/spec_helper.rb
|
105
380
|
- spec/unit/area_spec.rb
|
381
|
+
- spec/unit/austria_spec.rb
|
382
|
+
- spec/unit/belgium_brussels_spec.rb
|
383
|
+
- spec/unit/belgium_flanders_spec.rb
|
384
|
+
- spec/unit/belgium_spec.rb
|
385
|
+
- spec/unit/belgium_wallonia_spec.rb
|
106
386
|
- spec/unit/binomials_cache_spec.rb
|
107
387
|
- spec/unit/catalonia_spec.rb
|
108
388
|
- spec/unit/combinations_distribution_spec.rb
|
389
|
+
- spec/unit/denmark_spec.rb
|
390
|
+
- spec/unit/denmark_with_e_and_p_spec.rb
|
391
|
+
- spec/unit/denmark_with_e_spec.rb
|
392
|
+
- spec/unit/denmark_with_p_spec.rb
|
109
393
|
- spec/unit/denominators_spec.rb
|
110
394
|
- spec/unit/dichotomies_spec.rb
|
111
395
|
- spec/unit/dichotomy_spec.rb
|
396
|
+
- spec/unit/estonia_spec.rb
|
397
|
+
- spec/unit/european_union_27_austria_spec.rb
|
398
|
+
- spec/unit/european_union_27_croatia_spec.rb
|
399
|
+
- spec/unit/european_union_27_denmark_spec.rb
|
400
|
+
- spec/unit/european_union_27_estonia_spec.rb
|
401
|
+
- spec/unit/european_union_27_finland_spec.rb
|
402
|
+
- spec/unit/european_union_27_ireland_spec.rb
|
403
|
+
- spec/unit/european_union_27_ireland_with_ia_spec.rb
|
404
|
+
- spec/unit/european_union_27_italy_spec.rb
|
405
|
+
- spec/unit/european_union_27_netherlands_spec.rb
|
406
|
+
- spec/unit/european_union_27_poland_spec.rb
|
407
|
+
- spec/unit/european_union_27_romania_spec.rb
|
408
|
+
- spec/unit/european_union_27_slovakia_spec.rb
|
409
|
+
- spec/unit/european_union_27_spain_spec.rb
|
410
|
+
- spec/unit/european_union_27_sweden_spec.rb
|
411
|
+
- spec/unit/european_union_austria_spec.rb
|
412
|
+
- spec/unit/european_union_bulgaria_spec.rb
|
413
|
+
- spec/unit/european_union_croatia_spec.rb
|
414
|
+
- spec/unit/european_union_cyprus_spec.rb
|
415
|
+
- spec/unit/european_union_czech_republic_spec.rb
|
416
|
+
- spec/unit/european_union_denmark_spec.rb
|
417
|
+
- spec/unit/european_union_estonia_spec.rb
|
418
|
+
- spec/unit/european_union_finland_spec.rb
|
419
|
+
- spec/unit/european_union_flanders_spec.rb
|
420
|
+
- spec/unit/european_union_france_2019_spec.rb
|
421
|
+
- spec/unit/european_union_france_spec.rb
|
422
|
+
- spec/unit/european_union_french_community_of_belgium_spec.rb
|
423
|
+
- spec/unit/european_union_germany_spec.rb
|
424
|
+
- spec/unit/european_union_great_britain_spec.rb
|
425
|
+
- spec/unit/european_union_greece_spec.rb
|
426
|
+
- spec/unit/european_union_hungary_spec.rb
|
427
|
+
- spec/unit/european_union_ireland_spec.rb
|
428
|
+
- spec/unit/european_union_ireland_with_ia_spec.rb
|
429
|
+
- spec/unit/european_union_italy_spec.rb
|
430
|
+
- spec/unit/european_union_latvia_spec.rb
|
431
|
+
- spec/unit/european_union_lithuania_spec.rb
|
432
|
+
- spec/unit/european_union_luxembourg_spec.rb
|
433
|
+
- spec/unit/european_union_malta_spec.rb
|
434
|
+
- spec/unit/european_union_netherlands_spec.rb
|
435
|
+
- spec/unit/european_union_northern_ireland_spec.rb
|
436
|
+
- spec/unit/european_union_poland_spec.rb
|
437
|
+
- spec/unit/european_union_portugal_spec.rb
|
438
|
+
- spec/unit/european_union_romania_spec.rb
|
439
|
+
- spec/unit/european_union_slovakia_spec.rb
|
440
|
+
- spec/unit/european_union_slovenia_spec.rb
|
441
|
+
- spec/unit/european_union_spain_spec.rb
|
442
|
+
- spec/unit/european_union_sweden_spec.rb
|
443
|
+
- spec/unit/finland_spec.rb
|
444
|
+
- spec/unit/finland_with_sin_spec.rb
|
112
445
|
- spec/unit/first_past_the_post_spec.rb
|
113
|
-
- spec/unit/
|
446
|
+
- spec/unit/flanders_spec.rb
|
447
|
+
- spec/unit/france_spec.rb
|
448
|
+
- spec/unit/greece_spec.rb
|
449
|
+
- spec/unit/hungary_spec.rb
|
450
|
+
- spec/unit/iceland_spec.rb
|
451
|
+
- spec/unit/largest_remainder_spec.rb
|
452
|
+
- spec/unit/latvia_kpv_p_par_spec.rb
|
453
|
+
- spec/unit/latvia_kpv_par_spec.rb
|
454
|
+
- spec/unit/latvia_kpv_spec.rb
|
455
|
+
- spec/unit/latvia_spec.rb
|
456
|
+
- spec/unit/luxembourg_spec.rb
|
457
|
+
- spec/unit/multi_district_leveled_proportional_spec.rb
|
458
|
+
- spec/unit/multi_district_proportional_spec.rb
|
459
|
+
- spec/unit/netherlands_spec.rb
|
114
460
|
- spec/unit/norway_spec.rb
|
461
|
+
- spec/unit/norwegian_municipality_spec.rb
|
115
462
|
- spec/unit/number_formatter_spec.rb
|
463
|
+
- spec/unit/poland_spec.rb
|
464
|
+
- spec/unit/poland_with_ko_and_l_without_n_po_r_and_zl_spec.rb
|
465
|
+
- spec/unit/poland_with_ko_konf_kp_l_and_zp_without_k_k15_n_pis_po_psl_r_and_zl_spec.rb
|
466
|
+
- spec/unit/poland_with_ko_sld_and_wi_without_n_po_and_zl_spec.rb
|
467
|
+
- spec/unit/poland_with_sld_and_wi_without_zl_spec.rb
|
468
|
+
- spec/unit/poland_with_sld_without_zl_spec.rb
|
116
469
|
- spec/unit/poll_spec.rb
|
117
|
-
- spec/unit/
|
118
|
-
- spec/unit/
|
470
|
+
- spec/unit/portugal_spec.rb
|
471
|
+
- spec/unit/portugal_with_a_and_ch_without_paf_spec.rb
|
472
|
+
- spec/unit/portugal_with_a_and_il_without_paf_spec.rb
|
473
|
+
- spec/unit/portugal_with_a_ch_and_il_without_paf_spec.rb
|
474
|
+
- spec/unit/portugal_with_a_without_paf_spec.rb
|
475
|
+
- spec/unit/portugal_with_ch_and_il_without_paf_spec.rb
|
476
|
+
- spec/unit/portugal_without_paf_spec.rb
|
119
477
|
- spec/unit/pseudorandom_multirange_enumerator_spec.rb
|
478
|
+
- spec/unit/referendum_polychotomy_spec.rb
|
479
|
+
- spec/unit/representatives_polychotomy_spec.rb
|
480
|
+
- spec/unit/slovakia_spec.rb
|
481
|
+
- spec/unit/slovenia_spec.rb
|
482
|
+
- spec/unit/spain_spec.rb
|
483
|
+
- spec/unit/sweden_20140914_spec.rb
|
484
|
+
- spec/unit/sweden_spec.rb
|
485
|
+
- spec/unit/united_kingdom_spec.rb
|
486
|
+
- spec/unit/united_kingdom_with_brexit_and_chuk_spec.rb
|
487
|
+
- spec/unit/united_kingdom_with_brexit_spec.rb
|
488
|
+
- spec/unit/united_kingdom_with_tig_spec.rb
|
489
|
+
- spec/unit/wallonia_spec.rb
|