{"id":37079844,"url":"https://github.com/nealmcb/rlacalc","last_synced_at":"2026-01-14T09:39:38.908Z","repository":{"id":38359065,"uuid":"463931333","full_name":"nealmcb/rlacalc","owner":"nealmcb","description":"rlacalc crunches the numbers for risk-limiting post-election audits.","archived":false,"fork":false,"pushed_at":"2023-02-27T12:02:52.000Z","size":44,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T18:52:12.009Z","etag":null,"topics":["audit","civic-tech","election","pytnon","security-audit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nealmcb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-26T18:15:22.000Z","updated_at":"2023-01-31T19:35:50.000Z","dependencies_parsed_at":"2024-01-16T00:20:12.300Z","dependency_job_id":"8718b4ac-98b5-4dc7-9107-2626a8d96fef","html_url":"https://github.com/nealmcb/rlacalc","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"e6df3d24ed5baa70fbab0e0ec806dfb820084328"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nealmcb/rlacalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealmcb%2Frlacalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealmcb%2Frlacalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealmcb%2Frlacalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealmcb%2Frlacalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nealmcb","download_url":"https://codeload.github.com/nealmcb/rlacalc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealmcb%2Frlacalc/sbom","scorecard":{"id":677969,"data":{"date":"2025-08-11","repo":{"name":"github.com/nealmcb/rlacalc","commit":"e6df3d24ed5baa70fbab0e0ec806dfb820084328"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/scorecards.yml:20","Info: jobLevel 'contents' permission set to 'read': .github/workflows/scorecards.yml:21","Info: topLevel permissions set to 'read-all': .github/workflows/scorecards.yml:11","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   3 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":8,"reason":"1 out of the last 1 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: rlacalc-0.4.0.zip.sig: https://github.com/nealmcb/rlacalc/releases/tag/v0.4.0","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/nealmcb/rlacalc/releases/70822212"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T22:09:14.096Z","repository_id":38359065,"created_at":"2025-08-21T22:09:14.096Z","updated_at":"2025-08-21T22:09:14.096Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","civic-tech","election","pytnon","security-audit"],"created_at":"2026-01-14T09:39:38.425Z","updated_at":"2026-01-14T09:39:38.901Z","avatar_url":"https://github.com/nealmcb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**rlacalc** crunches the numbers for risk-limiting post-election audits.\nIt can calculate sample sizes, as well as calculate risk levels based on observed ballots.\nIt can handle many of the commonly used RLA tests, including ballot-level comparison via Kaplan-Markov and\nballot polling via BRAVO.\n\n# Goals\nIt is important to emphasize that the output of an audit should be\na report providing evidence related to election outcome, details about and explanations of any discrepancies found,\nand conclusions based on that evidence.  See the paper\n[Evidence-Based Elections Stark and Wagner](http://www.stat.berkeley.edu/~stark/Preprints/evidenceVote12.pdf)\nand the report [Risk-Limiting Post-Election Audits: Why and How](http://www.stat.berkeley.edu/~stark/Preprints/RLAwhitepaper12.pdf).\n\nrlacalc helps observers to explore the best way to do an audit beforehand, and to check the numbers in reports published after an audit, e.g. as described for a [Public RLA Oversight Protocol](http://bcn.boulder.co.us/~neal/elections/PublicRLAOversightProtocol.pdf).\n\nrlacalc can be used to perform calculations from the command line or used as a library in Python. In addition, if the hug package\nis available, it can be accessed over the web.\n\n# Installation\n\nrlacalc works with Python 2.7 and Python 3.x.\nThere are no other mandatory dependencies beyond the standard library.\n\nIf hug is installed, rlacalc can be deployed via a web server.\n\n# Usage\n\n```\n$ rlacalc --help\n...\n\n$ rlacalc --test\n...\n\n$ rlacalc -m 1 -n\nSample size = 479 for margin 1%, risk 10%, gamma 1.03905, o1 0, o2 0, u1 0, u2 0\n\n$ rlacalc -m 1 -n --o1 1\nSample size = 615 for margin 1%, risk 10%, gamma 1.03905, o1 1, o2 0, u1 0, u2 0\n\n$ rlacalc -m 3 -r 5\nKM_exp_rnd  = 226 for margin 3%, risk 5%, gamma 1.03905, or1 0.001, or2 0.0001, ur1 0.001, ur2 0.0001, roundUp1 1, roundUp2 0\n```\n\n# Background\nFor tools implemented in javascript, with plots, see\n\n* [Tools for Comparison Risk\\-Limiting Election Audits](https://www.stat.berkeley.edu/~stark/Vote/auditTools.htm)\n* [Tools for Ballot\\-Polling Risk\\-Limiting Election Audits](https://www.stat.berkeley.edu/~stark/Vote/ballotPollTools.htm)\n\n# History\nrlacalc was included as part of [audit_cvrs](https://github.com/nealmcb/audit_cvrs) in 2015 to help run some early pilot audits in Colorado as part of the [The Colorado Risk-Limiting Audit Project (CORLA)](http://bcn.boulder.co.us/~neal/elections/corla/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealmcb%2Frlacalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealmcb%2Frlacalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealmcb%2Frlacalc/lists"}