{"id":19462838,"url":"https://github.com/online-judge-tools/verification-helper","last_synced_at":"2025-04-09T06:06:50.859Z","repository":{"id":38008672,"uuid":"223638555","full_name":"online-judge-tools/verification-helper","owner":"online-judge-tools","description":"a testing framework for snippet libraries used in competitive programming","archived":false,"fork":false,"pushed_at":"2024-10-09T08:12:33.000Z","size":1445,"stargazers_count":242,"open_issues_count":42,"forks_count":58,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T04:48:08.960Z","etag":null,"topics":["aizu-online-jadge","competitive-programming","continuous-integration","documentation","hackerrank","programming-contests","testing","yosupo"],"latest_commit_sha":null,"homepage":"","language":"Python","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/online-judge-tools.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2019-11-23T18:59:33.000Z","updated_at":"2025-03-30T12:33:45.000Z","dependencies_parsed_at":"2023-12-26T06:32:58.853Z","dependency_job_id":"87b26328-745f-4d31-bbda-307969f638e4","html_url":"https://github.com/online-judge-tools/verification-helper","commit_stats":{"total_commits":892,"total_committers":26,"mean_commits":34.30769230769231,"dds":"0.47085201793721976","last_synced_commit":"adbff121b1f96de5f34e9f1483eb47d661c54075"},"previous_names":["kmyk/online-judge-verify-helper"],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/online-judge-tools%2Fverification-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/online-judge-tools%2Fverification-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/online-judge-tools%2Fverification-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/online-judge-tools%2Fverification-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/online-judge-tools","download_url":"https://codeload.github.com/online-judge-tools/verification-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987184,"owners_count":21028891,"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":["aizu-online-jadge","competitive-programming","continuous-integration","documentation","hackerrank","programming-contests","testing","yosupo"],"created_at":"2024-11-10T18:06:04.136Z","updated_at":"2025-04-09T06:06:50.833Z","avatar_url":"https://github.com/online-judge-tools.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# online-judge-tools/verification-helper\n\n[![Actions Status](https://github.com/online-judge-tools/verification-helper/actions/workflows/verify.yml/badge.svg?branch=master)](https://github.com/online-judge-tools/verification-helper/actions/workflows/verify.yml?query=branch%3Amaster)\n[![GitHub Pages](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=+\u0026color=brightgreen\u0026logo=github)](https://online-judge-tools.github.io/verification-helper/)\n[![PyPI](https://img.shields.io/pypi/v/online-judge-verify-helper)](https://pypi.org/project/online-judge-verify-helper/)\n[![LICENSE](https://img.shields.io/pypi/l/online-judge-verify-helper.svg)](https://github.com/online-judge-tools/verification-helper/blob/master/LICENSE)\n\n[README in English](README.md)\n\n## なにこれ\n\n競プロライブラリの verify をお手軽に自動化するためのツールです。\n\n## 使い方\n\n### 競プロライブラリのリポジトリに設定する\n\nこれ読んで: \u003chttps://online-judge-tools.github.io/verification-helper/installer.ja.html\u003e\n\n### 手元で実行する\n\n#### インストール\n\n``` console\n$ pip3 install online-judge-verify-helper\n```\n\nPython のバージョンは 3.8 以上が必要です。\n\n#### verify 自動実行\n\n拡張子の前に `.test` をつけたファイルに、特定の方法で verify 用問題の URL を書いておきます。 (たとえば `C++` であれば、`example.test.cpp` のようなファイルに `#define PROBLEM \"https://judge.yosupo.jp/problem/unionfind\"` のような形で書きます。他の言語については[リファレンス](https://online-judge-tools.github.io/verification-helper/document.ja.html)を参照してください。)\nこのとき、次のコマンドで verify できているかを確認してくれます。\n\n``` console\n$ oj-verify run\n```\n\n利用できる問題は主に [Library Checker](https://judge.yosupo.jp/) の問題と [Aizu Online Judge](https://onlinejudge.u-aizu.ac.jp/home) の問題です。\n他にもいくつかのサービスの問題が利用可能です。\nより詳しい説明は[リファレンス](https://online-judge-tools.github.io/verification-helper/document.ja.html)にあります。\n\n#### `#include` の自動展開\n\n与えられたファイル中の `#include \"foo.hpp\"` の形の include 文を展開して出力します。\nJavaScript で言うところの [webpack](https://webpack.js.org/) のような機能であり、ファイル分割をしても実際のオンラインジャッジへの提出が困難にならないようにするために存在しています。\n以下のように実行します。\n\n``` console\n$ oj-bundle main.cpp\n```\n\n競プロライブラリのディレクトリの外側にいる状態で実行する場合は `-I path/to/your/library` のように指定してください。`alias oj-bundle='\\oj-bundle -I path/to/your/library'` のようなシェルのエイリアスを貼っておくのがおすすめです。\n\n`#pragma once` などの [include guard](https://ja.wikibooks.org/wiki/More_C%2B%2B_Idioms/%E3%82%A4%E3%83%B3%E3%82%AF%E3%83%AB%E3%83%BC%E3%83%89%E3%82%AC%E3%83%BC%E3%83%89%E3%83%9E%E3%82%AF%E3%83%AD%28Include_Guard_Macro%29) に部分的に対応しています。複数回の include の対象になっているが出力には一度のみ含まれてほしいようなファイルがあれば、その 1 行目に `#pragma once` と書いておいてください。\n\n#### ドキュメント生成\n\n以下のコマンドを実行すると `.verify-helper/markdown/` にドキュメントが生成されます。例: [https://online-judge-tools.github.io/verification-helper/ ![GitHub Pages](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=+\u0026color=brightgreen\u0026logo=github)](https://online-judge-tools.github.io/verification-helper/)\n\n``` console\n$ oj-verify docs\n```\n\nドキュメント生成時に [Doxygen](http://www.doxygen.jp/) 風のコメントが見つかれば、それらは自動で利用されます。\nまた、TeX 記法の数式 (例: `$O(N \\sum_i A_i)$`) の [MathJax](https://www.mathjax.org/) による表示にも対応しています。\nより詳しい説明は[リファレンス](https://online-judge-tools.github.io/verification-helper/document.ja.html)にあります。\n\n## Tips\n\n-   ライブラリを verify するための問題が見つからないときは他の人のライブラリを参考にするとよいでしょう。`online-judge-verify-helper` のユーザの一覧は \u003chttps://github.com/search?q=online-judge-verify-helper+path%3A.github\u003e から見ることができます\n-   ライブラリを verify するための問題がそれでも見つからないときは [Library Checker](https://judge.yosupo.jp/) に問題を追加してください。[Hello World](http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A) などをダミーの問題として指定して、自前で書いたストレステストを実行することもできます。\n-   GitHub Actions から online-judge-verify-helper を呼び出すといった通常想定される利用法においては MIT License に関する著作権表示は要求されません ([詳細](https://github.com/online-judge-tools/verification-helper/issues/34))\n-   これはライブラリを効率良く verify するためのツールであり、コードの検査や整形をするためのツールではありません。必要なら [clang-format](https://clang.llvm.org/docs/ClangFormat.html) などの formatter や [cppcheck](http://cppcheck.sourceforge.net/) などの linter を利用してください\n\n## Authors\n\n-   committer: [@kmyk](https://github.com/kmyk) (AtCoder: [kimiyuki](https://atcoder.jp/users/kimiyuki)): pip での配布や [online-judge-tools](https://github.com/kmyk/online-judge-tools) などその他の諸々の担当\n-   committer: [@beet-aizu](https://github.com/beet-aizu) (AtCoder: [beet](https://atcoder.jp/users/beet)): verify 機能担当\n-   committer: [@tsutaj](https://github.com/tsutaj) (AtCoder: [tsutaj](https://atcoder.jp/users/tsutaj)): documents 生成担当\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonline-judge-tools%2Fverification-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonline-judge-tools%2Fverification-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonline-judge-tools%2Fverification-helper/lists"}