{"id":27000554,"url":"https://github.com/goodluckh/ai-redistricting","last_synced_at":"2025-04-04T03:27:21.188Z","repository":{"id":232324741,"uuid":"783064841","full_name":"GoodluckH/ai-redistricting","owner":"GoodluckH","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-13T01:20:05.000Z","size":19465,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-14T01:23:31.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/GoodluckH.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T20:59:36.000Z","updated_at":"2024-05-13T01:20:08.000Z","dependencies_parsed_at":"2024-04-28T01:58:19.056Z","dependency_job_id":"4bc368c0-581c-4820-af69-c15582e1b6ec","html_url":"https://github.com/GoodluckH/ai-redistricting","commit_stats":null,"previous_names":["goodluckh/ai-redistricting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodluckH%2Fai-redistricting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodluckH%2Fai-redistricting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodluckH%2Fai-redistricting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodluckH%2Fai-redistricting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodluckH","download_url":"https://codeload.github.com/GoodluckH/ai-redistricting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247116416,"owners_count":20886317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-04-04T03:27:20.643Z","updated_at":"2025-04-04T03:27:21.174Z","avatar_url":"https://github.com/GoodluckH.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"400\" src=\"https://raw.githubusercontent.com/GoodluckH/ai-redistricting/668ee05c483495fefd754643eb7f96d2914f1754/assets/logo.svg\"\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ci\u003ePolitical geometry analysis of Ohio\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"/LICENSE\"\u003e\u003cimg alt=\"MIT\" src=\"https://img.shields.io/github/license/goodluckh/ai-redistricting?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href='http://makeapullrequest.com'\u003e\u003cimg alt='PRs Welcome' src='https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square'/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/goodluckh/ai-redistricting/graphs/commit-activity\"\u003e\u003cimg alt=\"GitHub commit activity\" src=\"https://img.shields.io/github/commit-activity/m/goodluckh/ai-redistricting?style=flat-square\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/goodluckh/ai-redistricting/issues\"\u003e\u003cimg alt=\"GitHub closed issues\" src=\"https://img.shields.io/github/issues-closed/goodluckh/ai-redistricting?style=flat-square\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 👻 About\n\nThe Ohio redistricting project is a comprehensive analysis of the\npolitical geometry of Ohio. The project aims to provide a detailed\nanalysis of the political landscape of Ohio, including the current\ncongressional districts, the demographic distribution, and the political\nleanings of the state. The project will also explore the impact of\ngerrymandering on the political landscape of Ohio and propose\nalternative redistricting plans that are fair and representative of the\nstate's population.\n\n## 📚 Guide\n\n### 🗂️ Organization\n\nThe repository is organized as follows:\n\n```bash\nai-redistricting/\n├── assets/                 # Misc. assets\n├── data/                   # Data files - shapefiles and short burst files\n├── output/                 # Output images\n├── src/                    # Source code\n│   ├── main.py             # Main script for running the analysis\n│   ├── Ohio_MAUP.ipynb     # Notebook used to produce shapefiles\n│   ├── Ohio_SB.ipynb       # Notebook used to analyze short bursts\n│   ├── sb.py               # Script for producing short bursts data\n│   └── gingleator.py       # Gingleator helper for SB analysis\n└──...\n```\n\n### 🚀 Quick Start\n\nTo reproduce the shapefiles, make sure you obtain the raw data from the\n[Redistricting Data Hub](https://redistrictingdatahub.org/):\n\n- [Census Data](https://redistrictingdatahub.org/dataset/ohio-block-pl-94171-2020-by-table/)\n- [Congressional Districts](https://redistrictingdatahub.org/dataset/2022-ohio-congressional-districts-approved-plan/)\n- [Election\n  Data](https://redistrictingdatahub.org/dataset/vest-2016-ohio-precinct-and-election-results/)\n\nOnce you have them, change the import paths in the `Ohio_MAUP.ipynb`\nfile to point to the correct location of the data files.\n\n### 📈 Analysis\n\nMake sure you have the required libraries installed, then run the\nfollowing command:\n\n```bash\ncd src\npython3 main.py\n```\n\nOutput images will be saved in the `output/` directory.\n\nTo run the short burst analysis:\n\n```bash\ncd src\npython3 sb.py\n```\n\nOutput data files will be saved in the `data/` directory.\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the\n[LICENSE](/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodluckh%2Fai-redistricting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodluckh%2Fai-redistricting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodluckh%2Fai-redistricting/lists"}