{"id":18238163,"url":"https://github.com/smimram/regrade","last_synced_at":"2026-02-12T17:02:33.999Z","repository":{"id":261031445,"uuid":"882288620","full_name":"smimram/regrade","owner":"smimram","description":"Simple grading system using regular expressions.","archived":false,"fork":false,"pushed_at":"2025-10-22T13:05:33.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T13:28:29.770Z","etag":null,"topics":["assignment","grade","homework","ocaml","regular-expression"],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/smimram.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null}},"created_at":"2024-11-02T12:20:55.000Z","updated_at":"2025-10-22T13:03:22.000Z","dependencies_parsed_at":"2025-04-11T12:11:03.955Z","dependency_job_id":"fe05d4ad-63f8-4f16-99af-aa3b9f780778","html_url":"https://github.com/smimram/regrade","commit_stats":null,"previous_names":["smimram/regrade"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smimram/regrade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smimram%2Fregrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smimram%2Fregrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smimram%2Fregrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smimram%2Fregrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smimram","download_url":"https://codeload.github.com/smimram/regrade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smimram%2Fregrade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29373837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["assignment","grade","homework","ocaml","regular-expression"],"created_at":"2024-11-05T03:04:12.129Z","updated_at":"2026-02-12T17:02:33.994Z","avatar_url":"https://github.com/smimram.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REGrade: a simple grading system based on regular expressions\n\nThis is a simple program to automatically grade homework. Each question is validated by looking a whether the file matches a regular expression. It can be useful as a first approximation of the correction, or in cases where tests are sufficient to ensure the validity of the answers.\n\n## Usage\n\nThe correction is specified by a csv file of the form\n\n```csv\nname,Test\nmaximum,10\nquestion,Q1,Q2,Q3\nregexp,module,bla,(if|and)\npoints,,2,3\n```\n\nwhere the signification of the lines is the following\n\n- `name`: name of the exam,\n- `maximum`: maximum grade (20 if not specified),\n- `question`: name of each question,\n- `regexp`: regexp for correcting each question (in [PCRE format](https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions)),\n- `file`: give points when there is a file whose name matches the regular expression,\n- `points`: number of points for each question (1 if not specified).\n\nYou can then run a command of the form\n\n```shell\nregrade exam.csv file1 file file3\n```\n\nand it will grade the various files, outputting the results in `grades.csv`. If a folder is given instead of a file, all the files it contains are considered as one homework.\n\nUseful commandline options include\n\n- `--exclude`: exclude files whose name match the given regexp\n- `--extension`: only consider file with given extension\n- `--formulas`: generate a csv containing Excel formulas (so that the coefficients can easily be modified)\n- `--sed`: apply a substitution (of the form `s/bla/bli/`) on filenames displayed in the generated csv, which can be useful to normalize those\n\n## Installation\n\nIn order to install, simply type\n\n```bash\nopam install regrade\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmimram%2Fregrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmimram%2Fregrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmimram%2Fregrade/lists"}