{"id":22284854,"url":"https://github.com/getty104/judge_system","last_synced_at":"2025-03-25T20:19:57.050Z","repository":{"id":56879672,"uuid":"85588152","full_name":"getty104/judge_system","owner":"getty104","description":"online judge gem","archived":false,"fork":false,"pushed_at":"2018-11-18T15:19:38.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T09:17:12.585Z","etag":null,"topics":["gem","oj","online-judge","sandbox"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getty104.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-20T14:40:33.000Z","updated_at":"2018-11-18T15:17:10.000Z","dependencies_parsed_at":"2022-08-20T23:40:14.360Z","dependency_job_id":null,"html_url":"https://github.com/getty104/judge_system","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getty104%2Fjudge_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getty104%2Fjudge_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getty104%2Fjudge_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getty104%2Fjudge_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getty104","download_url":"https://codeload.github.com/getty104/judge_system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245535513,"owners_count":20631298,"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":["gem","oj","online-judge","sandbox"],"created_at":"2024-12-03T16:49:56.554Z","updated_at":"2025-03-25T20:19:56.970Z","avatar_url":"https://github.com/getty104.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![wercker status](https://app.wercker.com/status/0964573b38729ce98909559e3779cca5/m/master \"wercker status\")](https://app.wercker.com/project/byKey/0964573b38729ce98909559e3779cca5)\n# JudgeSystem\n\nJudge_system is a compile and judge system for online judge.\nThis system work on [melpon/wandbox](https://github.com/melpon/wandbox).\nThat means you don't have to concern about dangerous codes if you use judge_system.\nJudge_system returns four results ('AC', 'WA', 'RE', 'TLE').\nNow, it can compile c, c++, ruby, go, python3, swift.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'judge_system'\n```\n\nAnd then execute:\n\n$ bundle\n\nOr install it yourself as:\n\n$ gem install judge_system\n\n## Usage\n\n```ruby\nrequire 'judge_system'\n\nJudgeSystem.judge_result lang: (string text), code: (string text), answer: (string text), stdin: (string text), time: (num sec)\n\n#Lang is the extension of languages (example: c is 'c', c++ is 'cpp', ruby is 'rb', go is 'go', python3 is 'py').\n#You can't use more than 6M byte code and input.\n\n```\n\nexample\n\n```ruby\nrequire 'judge_system'\n\np JudgeSystem.judge_result lang: 'rb', code: \"n = gets.to_i\\nputs n\", answer: \"1\\n\", stdin: \"1\\n\", time: 5 #=\u003e 'AC'\np JudgeSystem.judge_result lang: 'rb', code: \"n = gets.to_i\\nputs n\", answer: \"1\\n\", stdin: \"2\\n\", time: 5 #=\u003e 'WA'\np JudgeSystem.judge_result lang: 'rb', code: \"n = gets.to_i\\nputs n\", answer: \"1\\n\", stdin: \"\\n\", time: 0.001 #=\u003e 'TLE'\np JudgeSystem.judge_result lang: 'c',  code: \"n = gets.to_i\\nputs n\", answer: \"1\\n\", stdin: \"1\\n\", time: 5 #=\u003e 'RE'\n```\n\n\n\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/getty104/judge_system. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetty104%2Fjudge_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetty104%2Fjudge_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetty104%2Fjudge_system/lists"}