├── .github ├── dependabot.yml └── workflows │ ├── publish.yml │ ├── reusable-build.yml │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── CodeBLEU.jpg ├── LICENSE ├── MANIFEST.in ├── README.md ├── VERSION ├── codebleu ├── __init__.py ├── __main__.py ├── bleu.py ├── codebleu.py ├── dataflow_match.py ├── keywords │ ├── c.txt │ ├── c_sharp.txt │ ├── cpp.txt │ ├── go.txt │ ├── java.txt │ ├── javascript.txt │ ├── php.txt │ ├── python.txt │ ├── ruby.txt │ └── rust.txt ├── parser │ ├── DFG.py │ ├── __init__.py │ └── utils.py ├── py.typed ├── syntax_match.py ├── utils.py └── weighted_ngram_match.py ├── evaluate_app ├── .gitattributes ├── README.md ├── app.py ├── codebleu.py ├── requirements.txt └── tests.py ├── pyproject.toml └── tests └── test_codebleu.py /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/reusable-build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/.github/workflows/reusable-build.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CodeBLEU.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/CodeBLEU.jpg -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/README.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.7.1 -------------------------------------------------------------------------------- /codebleu/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/__init__.py -------------------------------------------------------------------------------- /codebleu/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/__main__.py -------------------------------------------------------------------------------- /codebleu/bleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/bleu.py -------------------------------------------------------------------------------- /codebleu/codebleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/codebleu.py -------------------------------------------------------------------------------- /codebleu/dataflow_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/dataflow_match.py -------------------------------------------------------------------------------- /codebleu/keywords/c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/c.txt -------------------------------------------------------------------------------- /codebleu/keywords/c_sharp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/c_sharp.txt -------------------------------------------------------------------------------- /codebleu/keywords/cpp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/cpp.txt -------------------------------------------------------------------------------- /codebleu/keywords/go.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/go.txt -------------------------------------------------------------------------------- /codebleu/keywords/java.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/java.txt -------------------------------------------------------------------------------- /codebleu/keywords/javascript.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/javascript.txt -------------------------------------------------------------------------------- /codebleu/keywords/php.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/php.txt -------------------------------------------------------------------------------- /codebleu/keywords/python.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/python.txt -------------------------------------------------------------------------------- /codebleu/keywords/ruby.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/ruby.txt -------------------------------------------------------------------------------- /codebleu/keywords/rust.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/keywords/rust.txt -------------------------------------------------------------------------------- /codebleu/parser/DFG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/parser/DFG.py -------------------------------------------------------------------------------- /codebleu/parser/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/parser/__init__.py -------------------------------------------------------------------------------- /codebleu/parser/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/parser/utils.py -------------------------------------------------------------------------------- /codebleu/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codebleu/syntax_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/syntax_match.py -------------------------------------------------------------------------------- /codebleu/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/utils.py -------------------------------------------------------------------------------- /codebleu/weighted_ngram_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/codebleu/weighted_ngram_match.py -------------------------------------------------------------------------------- /evaluate_app/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/evaluate_app/.gitattributes -------------------------------------------------------------------------------- /evaluate_app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/evaluate_app/README.md -------------------------------------------------------------------------------- /evaluate_app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/evaluate_app/app.py -------------------------------------------------------------------------------- /evaluate_app/codebleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/evaluate_app/codebleu.py -------------------------------------------------------------------------------- /evaluate_app/requirements.txt: -------------------------------------------------------------------------------- 1 | git+https://github.com/huggingface/evaluate@main 2 | codebleu>=0.5.0,<1.0.0 3 | -------------------------------------------------------------------------------- /evaluate_app/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/evaluate_app/tests.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/test_codebleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4black/codebleu/HEAD/tests/test_codebleu.py --------------------------------------------------------------------------------