Download patterns/coverage.json from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 3.69 kB
-
https://huggingface.co/datasets/tailot/codex-python/resolve/8947d8872cf75b6f0b12ceff7bb1ede5ae829d53/patterns/coverage.json
- Command line
-
hf download hf://datasets/tailot/codex-python@8947d8872cf75b6f0b12ceff7bb1ede5ae829d53/patterns/coverage.json
-
curl -L -o coverage.json https://huggingface.co/datasets/tailot/codex-python/resolve/8947d8872cf75b6f0b12ceff7bb1ede5ae829d53/patterns/coverage.json
3.69 kB
| { | |
| "denominator": "the counts below are over one fixture of this bundle, not over Python. They say how many of the functions this bundle planted are in a shape the catalog claims, so a reader can see that the catalog is a set of verified cards and not a claim about arbitrary code.", | |
| "fixture": "fixtures/pattern_lab", | |
| "module_level_functions": 21, | |
| "module_level_functions_by_file": { | |
| "src/baskets.py": 2, | |
| "src/guards.py": 2, | |
| "src/labels.py": 2, | |
| "src/notes.py": 2, | |
| "src/registry.py": 6, | |
| "src/retries.py": 2, | |
| "src/slugify.py": 2, | |
| "src/tokens.py": 3 | |
| }, | |
| "patterns": [ | |
| { | |
| "family": "typing", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "annotate-literal-defaults", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "ALREADY_ANNOTATED" | |
| ], | |
| "targets_in_shape": [ | |
| "src/slugify.py::join_parts", | |
| "src/tokens.py::count_words", | |
| "src/tokens.py::summarize" | |
| ], | |
| "targets_planted_in_shape": 3 | |
| }, | |
| { | |
| "family": "contracts", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "bare-assert-to-explicit-raise", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "NOT_THE_FIRST_STATEMENT" | |
| ], | |
| "targets_in_shape": [ | |
| "src/guards.py::open_ticket" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "contracts", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "bare-except-to-narrow-exception", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "NO_BARE_EXCEPT" | |
| ], | |
| "targets_in_shape": [ | |
| "src/retries.py::call_or_none" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "shape", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "chain-to-registry", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "BRANCH_SHAPE_MISMATCH" | |
| ], | |
| "targets_in_shape": [ | |
| "src/registry.py::render" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "shape", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "empty-len-to-truthiness", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "NO_EMPTY_LEN_CHECK" | |
| ], | |
| "targets_in_shape": [ | |
| "src/baskets.py::describe" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "mutation", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "mutable-default-to-none", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "NOT_A_MUTABLE_DEFAULT" | |
| ], | |
| "targets_in_shape": [ | |
| "src/slugify.py::add_tag" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "shape", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "none-comparison-to-identity", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "NO_NONE_COMPARISON" | |
| ], | |
| "targets_in_shape": [ | |
| "src/labels.py::label_for" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| }, | |
| { | |
| "family": "resources", | |
| "min_assurance": 3, | |
| "negative_rows": 1, | |
| "pattern_id": "open-to-context-manager", | |
| "positive_rows": 1, | |
| "refusals_recorded": [ | |
| "ALREADY_SCOPED" | |
| ], | |
| "targets_in_shape": [ | |
| "src/notes.py::read_note" | |
| ], | |
| "targets_planted_in_shape": 1 | |
| } | |
| ], | |
| "rows": 16, | |
| "schema": "lingologos-python-pattern-coverage-1", | |
| "source_files": [ | |
| "src/baskets.py", | |
| "src/guards.py", | |
| "src/labels.py", | |
| "src/notes.py", | |
| "src/registry.py", | |
| "src/retries.py", | |
| "src/slugify.py", | |
| "src/tokens.py" | |
| ] | |
| } | |