Repository navigation
fix: correct class name in SyntheticDataKit.chunk_data guard message - #6901
Conversation
chunk_data raised RuntimeError("Please use SynthetidDataKit.from_pretrained(...)
first!") when max_seq_length was unset. The class is SyntheticDataKit, so a user
copying the instruction verbatim hit NameError: name 'SynthetidDataKit' is not
defined. Fix the misspelling (Synthetid -> Synthetic) so the guidance is
actionable. User-facing text only; no behavior change.
Add a regression test asserting the message names SyntheticDataKit.from_pretrained
and does not contain the old misspelling.
There was a problem hiding this comment.
Code Review
This pull request fixes a typo in the RuntimeError message raised by chunk_data when max_seq_length is uninitialized, correcting 'SynthetidDataKit' to 'SyntheticDataKit'. It also adds a corresponding unit test to verify that the error message correctly names the class. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
left a comment
There was a problem hiding this comment.
Confirmed the guard message misspelled the class name and that the added regression test fails without the fix and passes with it. Thanks.
What
SyntheticDataKit.chunk_dataraises a guard error when it is called before thekit is initialized (
max_seq_lengthunset), telling the user which method tocall first. The class name in that message is misspelled:
The class is
SyntheticDataKit(defined in the same file, exported in__all__, constructed via thefrom_pretrainedclassmethod). A user who copiesthe instruction verbatim hits a second, confusing error:
Fix
Correct the single misspelled token in the message
(
Synthetid->Synthetic) so the guidance is actionable. This isuser-facing error text only; there is no behavior change.
Test
Adds one regression test to
tests/test_synthetic_chunk_data.pythat builds akit without
max_seq_length, callschunk_data, and asserts the raised messagenames
SyntheticDataKit.from_pretrainedand does not contain the oldmisspelling.
Notes
ruff checkon both files passes.dataprep.