{"id":29100626,"url":"https://github.com/condef5/fix-mmr-calculations","last_synced_at":"2025-11-17T14:36:04.505Z","repository":{"id":295128091,"uuid":"989175025","full_name":"condef5/fix-mmr-calculations","owner":"condef5","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-23T18:54:47.000Z","size":1379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-28T18:52:26.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/condef5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-23T17:16:28.000Z","updated_at":"2025-05-23T18:54:50.000Z","dependencies_parsed_at":"2025-05-23T19:43:09.781Z","dependency_job_id":null,"html_url":"https://github.com/condef5/fix-mmr-calculations","commit_stats":null,"previous_names":["condef5/fix-mmr-calculations"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/condef5/fix-mmr-calculations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condef5%2Ffix-mmr-calculations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condef5%2Ffix-mmr-calculations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condef5%2Ffix-mmr-calculations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condef5%2Ffix-mmr-calculations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/condef5","download_url":"https://codeload.github.com/condef5/fix-mmr-calculations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condef5%2Ffix-mmr-calculations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284900194,"owners_count":27081649,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-06-28T18:37:28.319Z","updated_at":"2025-11-17T14:36:04.489Z","avatar_url":"https://github.com/condef5.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculation Project\n\nThis project processes match results and user data, converting CSV files to JSON and calculating leaderboard information.\n\n## Prerequisites\n\n- [Bun](https://bun.sh/) (for running JavaScript/TypeScript)\n- Install dependencies as described below\n\n## Project Structure\n\n- `process.ts` — Processes match results and calculates leaderboard data from JSON files.\n- `convert.js` — Converts `MatchResult.csv` to `matchResult.json` using PapaParse.\n- `data/` — Contains input and output data files:\n  - `MatchResult.csv` — Raw match results (CSV)\n  - `matchResult.json` — Match results (JSON, generated)\n  - `users.json` — User data\n\n## Setup\n\n1. **Install dependencies**\n\n   ```sh\n   bun install\n   ```\n\n2. **Convert CSV to JSON**\n\n   This step reads `data/MatchResult.csv` and generates `data/matchResult.json`.\n\n   ```sh\n   bun run convert.js\n   ```\n\n3. **Process the data**\n\n   Run the main calculation script:\n\n   ```sh\n   bun run process.ts\n   ```\n\n## Notes\n\n- Make sure your `data/MatchResult.csv` and `data/users.json` files are present in the `data/` directory before running the scripts.\n- The output will be calculated leaderboard and processed data (edit `process.ts` to customize output).\n\n## Dependencies\n\n- [papaparse](https://www.papaparse.com/) — For CSV parsing\n- [bun](https://bun.sh/) — JavaScript runtime\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondef5%2Ffix-mmr-calculations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcondef5%2Ffix-mmr-calculations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondef5%2Ffix-mmr-calculations/lists"}