{"id":18360365,"url":"https://github.com/phuang1024/code_judge","last_synced_at":"2025-04-10T03:33:33.239Z","repository":{"id":54735769,"uuid":"330485243","full_name":"phuang1024/code_judge","owner":"phuang1024","description":"Command line code grading system.","archived":false,"fork":false,"pushed_at":"2021-02-01T20:50:36.000Z","size":59164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T18:52:10.453Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phuang1024.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}},"created_at":"2021-01-17T20:57:42.000Z","updated_at":"2021-02-01T20:50:37.000Z","dependencies_parsed_at":"2022-08-14T01:10:49.753Z","dependency_job_id":null,"html_url":"https://github.com/phuang1024/code_judge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuang1024%2Fcode_judge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuang1024%2Fcode_judge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuang1024%2Fcode_judge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuang1024%2Fcode_judge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuang1024","download_url":"https://codeload.github.com/phuang1024/code_judge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151676,"owners_count":21056149,"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":"2024-11-05T22:28:02.470Z","updated_at":"2025-04-10T03:33:33.215Z","avatar_url":"https://github.com/phuang1024.png","language":"Python","readme":"# Code Judge\nCommand line code grading system\n\n\u003cbr\u003e\n\n\n# How To Use\n**Before using, please read the warning in `server.py`**\n\nRequired Python modules:\n* `colorama`\n* `tkinter`\n\n## Setting up the server\n1. Take the server file `src/server.py` and place it in an empty directory.\n2. Run the server. You will be asked for an IP via stdin. Enter your local IP address.\n3. You may optionally put a file named `settings.json` in the same directory as the server with an `ip` key specifying the local IP of the server.\n4. The server is set up. It will print messages when events occur, such as a client connecting.\n\n## Using a client\n1. Run `src/client.py`. You may use `settings.json` in the same way as the server, stated above.\n2. You will be asked whether you would like to quit or submit a solution.\n3. If you chose to submit, you will be asked for a language. `Python 3.8.0`, `Python 2.7.17`, and `C++ (g++ 7.5.0)` are the default ones. Adjust as needed to fit your system (this was developed on Ubuntu). You may also need to adjust the  subprocess commands found in `server.Grader.grader`.\n4. Next, select a problem ID. The client will contact the server to get avaliable problems and their IDs.\n5. Last, choose a file and you will see the server grade your submission.\n\n\u003cbr\u003e\n\n\n# Making Your Own Problems\nThey **must** be made with Python, due to the built in pickle module.\n\n* Each problem is a Python dictionary pickled into a binary file. JSON support may be added in the future.\n* The structure of each problem goes like this:\n```\n{\n    \"name\": \"My Problem\",\n    \"pid\": 1,\n    \"difficulty\": 5,\n    \"cases\": [\n        [\"in data\\n for case one\", \"out data\\n for case one\"],\n        [\"indata for case2\", \"out data for c2\"]\n    ]\n}\n```\n* `name` is the name of your problem.\n* `pid` is the problem's unique ID. If a PID comes up a second time, it will be skipped.\n* `difficulty` is a number to tell the contestants roughly how difficult the problem is. The difficulty value is not used by the server, and you can use any scale you like.\n* `cases` is a list of (input, output) strings, communicated via stdin/stdout. Each entry in the list is one case.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuang1024%2Fcode_judge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuang1024%2Fcode_judge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuang1024%2Fcode_judge/lists"}