{"id":22509128,"url":"https://github.com/tomoima525/saku-mon","last_synced_at":"2025-08-03T13:31:18.049Z","repository":{"id":265939070,"uuid":"890588703","full_name":"tomoima525/saku-mon","owner":"tomoima525","description":"A tool for generating coding tests from github repositories. Saku-mon(作問:さくもん) is a Japanese word that means \"to make a question\".","archived":false,"fork":false,"pushed_at":"2024-12-01T16:23:47.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T17:32:01.427Z","etag":null,"topics":["ai","coding-interviews","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tomoima525.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}},"created_at":"2024-11-18T20:46:29.000Z","updated_at":"2024-12-01T16:23:51.000Z","dependencies_parsed_at":"2024-12-01T17:33:28.650Z","dependency_job_id":"f8e645f3-403b-49a3-a6d6-fb32fe8b5b33","html_url":"https://github.com/tomoima525/saku-mon","commit_stats":null,"previous_names":["tomoima525/saku-mon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoima525%2Fsaku-mon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoima525%2Fsaku-mon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoima525%2Fsaku-mon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoima525%2Fsaku-mon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomoima525","download_url":"https://codeload.github.com/tomoima525/saku-mon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228547832,"owners_count":17935139,"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":["ai","coding-interviews","python"],"created_at":"2024-12-07T01:27:36.362Z","updated_at":"2024-12-07T01:27:37.189Z","avatar_url":"https://github.com/tomoima525.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saku-mon (作問:さくもん)\n\nA tool for generating coding tests from github repositories.\nSaku-mon is a Japanese word that means \"to make a question\".\n\n# Setup\n\n- Install [poetry](https://python-poetry.org/docs/#installation) (Python package manager) for managing dependencies.\n- Run `poetry install` to install dependencies.\n- Run `poetry shell` to activate the virtual environment.\n- Setup `.env` file for Open AI key and GitHub API key (see `.env.example` for reference).\n  - GITHB_API_KEY is only required if you want to access private repositories. Make sure that the key has the necessary permissions. (see [Creating a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token))\n\n# Usage\n\n- Run `python main.py` to generate coding tests from a given github repository.\n  - `--force-clone` flag can be used to force clone the repository(Remove the local repository).\n\nExample output:\n\n```bash\n$ python main.py\nEnter the GitHub repo owner/repo_name: knot-inc/english-analysis-exps\nGitHub user: tomoima525\nCloning repository ...\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100 2411k    0 2411k    0     0  2815k      0 --:--:-- --:--:-- --:--:-- 2813k\nRepository cloned to /Users/tomoima525/workspace/python/saku-mon/repo/english-analysis-exps\nChecking project type for /Users/tomoima525/workspace/python/saku-mon/repo/english-analysis-exps\n as True\nProject type: python\nSelect a coding test idea:\n1. Implement a script to automate the process of setting up a NAT instance with Elastic IP in a VPC environment, ensuring the script handles subnet configurations and routing tables appropriately.\n2. Create a function that verifies the setup of a static IP for AWS Lambda using a NAT instance by checking the routing and security group settings, and ensures the Lambda function can access external services like a REST API.\n3. Develop an application that transitions an existing AWS VPC architecture from using a NAT Gateway to a NAT instance, including updating route tables and security policies, and validate the migration with test cases.\n4. Write a script to deploy an AWS Lambda function within a private subnet that can make outgoing requests via a NAT instance, then test the function's ability to access the internet using its assigned static IP.\nEnter the number of your choice: 2\nGenerating a coding test for the selected idea: Create a function that verifies the setup of a static IP for AWS Lambda using a NAT instance by checking the routing and security group settings, and ensures the Lambda function can access external services like a REST API.\nInstructions generated\nGenerating initial codebase\nInitial codebase generated\nGenerating example solution...\n```\n\n# How it works?\n\n- Saku-mon Agent retrieves the code from the given github repository. Then it will review the codebase and suggest coding questions.\n- Based on your choice, the tool will generate coding questions using the LLM model.\n- The generated questions will be saved in the `output` directory.\n\n# Future Works\n\n- Support for other LLM models like llama, claude, etc.\n- Support for private repositories using API key.\n- Support for various programming languages.\n- Support for adding extra constraints to the generated questions.\n\n# License\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomoima525%2Fsaku-mon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomoima525%2Fsaku-mon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomoima525%2Fsaku-mon/lists"}