functionVerified releasev1
normalize_code_text
Turn raw source code text into printable-ASCII practice lines (stdlib only).
Interface
Verified contract
Inputs
| Name | Type |
|---|---|
| text | str |
| max_length | int |
| min_length | int |
Outputs
| Name | Type |
|---|---|
| default | list |
Exact release
Pinned local call
from spl import SPLClient
result = SPLClient.embedded().call(
"splime://@splime.project/typing-trainer/normalize_code_text@1",
kwargs={'max_length': 0, 'min_length': 0, 'text': 'replace-with-value'},
trust=True,
)Review before running. Public bundles contain executable code. Verify the publisher and exact content hash; a virtual environment isolates dependencies, not the operating system.
Evidence
Evidence-backed concepts
- Normalize code text
- Stdlib only
- Printable ascii practice lines
- Max length
- Min length
- Turn raw source
- Integer values
- Ordered collection
History
Public versions
- v10 downloads
Discover
Similar Objects
- collect_code_linesCollect practice lines from source files under a local directory (stdlib only).
- train_typing_modelTrain your own typing model on your code: collect_code_lines -> build_char_vocab -> train_char_model (requires torch).
- build_char_vocabBuild a character vocabulary {char: index} with SOS=0 and EOS=1 (stdlib only).
- typing_weak_spotsTyping report from a keystroke log: accuracy, mistyped transitions, double presses and slowest bigrams (stdlib only).
- generate_practice_lineGenerate one practice line from a trained typing-check model, optionally biased by keystroke_bias (requires torch).