{"id":34075005,"url":"https://github.com/muazhari/autocode","last_synced_at":"2025-12-30T15:11:46.244Z","repository":{"id":251795539,"uuid":"826791300","full_name":"muazhari/autocode","owner":"muazhari","description":"Auto Code Improvements by Metrics Optimization.","archived":false,"fork":false,"pushed_at":"2025-06-19T11:38:46.000Z","size":7483,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T21:14:15.327Z","etag":null,"topics":["large-language-model","optimization","software-engineering"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/autocode-py","language":"Jupyter Notebook","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/muazhari.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":"2024-07-10T11:39:05.000Z","updated_at":"2025-06-19T11:38:49.000Z","dependencies_parsed_at":"2024-08-05T20:59:04.234Z","dependency_job_id":"85ff4634-ee96-4ede-9ef1-404df40f5b32","html_url":"https://github.com/muazhari/autocode","commit_stats":null,"previous_names":["muazhari/autocode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muazhari/autocode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muazhari%2Fautocode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muazhari%2Fautocode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muazhari%2Fautocode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muazhari%2Fautocode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muazhari","download_url":"https://codeload.github.com/muazhari/autocode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muazhari%2Fautocode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27724115,"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-12-14T02:00:11.348Z","response_time":56,"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":["large-language-model","optimization","software-engineering"],"created_at":"2025-12-14T09:01:52.477Z","updated_at":"2025-12-14T09:01:53.019Z","avatar_url":"https://github.com/muazhari.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13225516.svg)](https://doi.org/10.5281/zenodo.13225516)\n\n# autocode\n\nAuto Code Improvements by Metrics Optimization.\n\n## Description\n\nAutocode selects the best values for optimized metrics. The variable value types could be bool, int, float, and choice (including\nbut not limited to code). This project utilizes a large language model and Mixed-Variable Many-Objective Optimization.\nBased on our literature review, this project can hypothetically contribute to the economic performance of\ncompanies.  \n\n## Features\n\n- Many-software Value-level Mixed-variable Many-objective Optimization.\n- Variable types are bool, int, float, and choice (including but not limited to code).\n- Mean of normalized IGD+ performance metric with 3-minute benchmarks for each of the 36 problems is 68%.\n- Code scoring using LLM.\n- Support cross-language softwares.\n- Easy software deployment using docker-compose.\n- Scalable to infinite cores to quicken the parallel processing.\n\n## How to Use\n\n1. Install the requirements\n- pypi (old)\n  ```bash\n  pip install -U autocode-py\n  ```\n- github (new)\n  ```bash\n  pip install -U git+https://github.com/muazhari/autocode.git@main\n  ```\n\n2. Prepare software to be processed as in the [`./example/client`](https://github.com/muazhari/autocode/tree/main/example/client) folder.\n3. Prepare deployment as in the [`./example/client/docker-compose.yml`](https://github.com/muazhari/autocode/blob/main/example/client/docker-compose.yml) file.\n4. Prepare the controller as in the [`./example/controller.ipynb`](https://github.com/muazhari/autocode/blob/main/example/controller.ipynb) file.\n5. Instantiate `optimization` then execute `optimization.deploy()` in the controller.\n6. Open the dashboard in `http://localhost:{dashboard_port}/` to see the process in real time.\n7. Wait until all clients are ready (need to wait a long time because the libraries need to be re-downloaded for each client).\n8. Execute `optimization.run()` in the controller.\n9. Wait until the run is finished.\n10. Analyze and decide the best values.\n11. Execute `optimization.reset(keys=[\"clients\"])` then `optimization.deploy()` to apply different client states.\n12. Try to execute `optimization.reset()` to totally reset the tool if needed (i.e., data inconsistency).\n\n## Demo\n\n- [Controller](https://github.com/muazhari/autocode/blob/main/example/controller.ipynb)\n- [Client](https://github.com/muazhari/autocode/tree/main/example/client)\n- Dashboard\n  ![demo-1.png](https://github.com/muazhari/autocode/blob/main/demo-1.png?raw=true)\n\n## Compatibility\n\n- Python 3.10, 3.11, 3.12\n- Linux\n- Docker\n- [autocode-go](https://github.com/muazhari/autocode-go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuazhari%2Fautocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuazhari%2Fautocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuazhari%2Fautocode/lists"}