{"id":19177382,"url":"https://github.com/mahadmuhammad/cplib","last_synced_at":"2026-06-17T03:31:42.805Z","repository":{"id":247831921,"uuid":"783196767","full_name":"MahadMuhammad/cplib","owner":"MahadMuhammad","description":"My custom library for C++ competitive programming","archived":false,"fork":false,"pushed_at":"2025-06-24T10:14:37.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T11:28:35.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MahadMuhammad.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-07T07:50:10.000Z","updated_at":"2025-06-24T10:14:41.000Z","dependencies_parsed_at":"2024-11-09T10:34:05.278Z","dependency_job_id":"40e1ef10-c4f1-4674-9bc3-24e066469a2f","html_url":"https://github.com/MahadMuhammad/cplib","commit_stats":null,"previous_names":["mahadmuhammad/cplib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MahadMuhammad/cplib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Fcplib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Fcplib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Fcplib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Fcplib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahadMuhammad","download_url":"https://codeload.github.com/MahadMuhammad/cplib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Fcplib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34433085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":"2024-11-09T10:33:18.385Z","updated_at":"2026-06-17T03:31:42.788Z","avatar_url":"https://github.com/MahadMuhammad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\nThis repository contains a custom tools/scripts for competitive programming. It includes various utilities and templates to streamline the process of setting up, running, and testing competitive programming problems.\n\n### Chrome Web Extension\n\nThis repository uses the [Competitive Companion](https://github.com/jmerle/competitive-companion) Chrome web extension for fetching problem data. This extension allows you to quickly and easily download problem statements and test cases from various competitive programming websites.\n\n## Usage\n\nTo clone this repository and set up your environment, follow these steps:\n```sh\ngit clone https://github.com/MahadMuhammad/cplib.git ~/cplib\ncd ~/cplib\n```\n\nAdd the following to your shell configuration file (e.g., `.bashrc`, `.zshrc`):\n\n```sh\nexport PATH=\"$HOME/cplib/utils/gen:$PATH\"\nalias gen='gen -o'\n```\n\nThen, source your shell configuration file to apply the changes:\n\n```sh\nsource ~/.bashrc  # or source ~/.zshrc\n```\n\n```sh\ngen [output_file_name] [-p]\n```\n\n#### Options\n\n- `-o, --output_file`: Path to the output file (default: `A.cpp`).\n- `--author`: Author name to include in the header (default: `mahad`).\n- Optional `-p, --python`: Generate a Python file with a Python header comment.\n\n### `utils/dbrun` Script\n\nThe dbrun script is used for building and testing competitive programming problems.\n\n#### Usage\n\n```sh\ndbrun [file_name]\n```\n\n\n### `utils/download_prob` Script\n\nThe download_prob script is used to download and set up problems from Competitive Companion.\n\n#### Usage\n\n```sh\ndownload_prob\n```\n\n#### Options\n\n- `--echo`: Just echo received responses and exit.\n- `--dryrun`: Don't actually create any problems.\n- `-n COUNT, --number COUNT`: Number of problems to download.\n- `-b COUNT, --batches COUNT`: Number of batches to download (default: 1 batch).\n- `-t TIME, --timeout TIME`: Timeout for listening to problems in seconds.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahadmuhammad%2Fcplib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahadmuhammad%2Fcplib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahadmuhammad%2Fcplib/lists"}