k4black/codebleu

Pip compatible CodeBLEU metric implementation available for linux/macos/win

65
/ 100
Established

Combines syntactic AST matching and semantic data-flow analysis with n-gram scoring to evaluate code generation quality across 10 programming languages. Built on tree-sitter for language-agnostic parsing, it decomposes scores into four components (n-gram match, weighted n-gram match, syntax match, dataflow match) that can be individually weighted. Integrates with HuggingFace's evaluate library for streamlined evaluation workflows.

130 stars and 5,089 monthly downloads. Used by 1 other package. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 0 / 25
Adoption 20 / 25
Maturity 25 / 25
Community 20 / 25

How are scores calculated?

Stars

130

Forks

28

Language

Python

License

MIT

Last pushed

Mar 31, 2025

Monthly downloads

5,089

Commits (30d)

0

Dependencies

2

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/k4black/codebleu"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.