apartejs/aparte-secrets
Token Classification • Updated
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
id: string
lang: string
mode: string
text: string
secrets: list<item: struct<start: int64, end: int64, text: string, subtype: string>>
child 0, item: struct<start: int64, end: int64, text: string, subtype: string>
child 0, start: int64
child 1, end: int64
child 2, text: string
child 3, subtype: string
configs: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
http: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
chat_phrases: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
json: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
templates: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
negatives: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
to
{'templates': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'configs': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'chat_phrases': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'http': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'json': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'negatives': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
lang: string
mode: string
text: string
secrets: list<item: struct<start: int64, end: int64, text: string, subtype: string>>
child 0, item: struct<start: int64, end: int64, text: string, subtype: string>
child 0, start: int64
child 1, end: int64
child 2, text: string
child 3, subtype: string
configs: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
http: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
chat_phrases: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
json: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
templates: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
negatives: struct<texts: int64, secrets: int64, texts_without_secret: int64>
child 0, texts: int64
child 1, secrets: int64
child 2, texts_without_secret: int64
to
{'templates': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'configs': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'chat_phrases': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'http': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'json': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}, 'negatives': {'texts': Value('int64'), 'secrets': Value('int64'), 'texts_without_secret': Value('int64')}}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
The training data of aparte-secrets that can be redistributed. The model was also trained on CredData (Samsung, Apache 2.0) and, from version 1.1, on documentation and source files of third-party npm packages used as negatives; neither is copied here (their files come from third-party repositories under their own licenses).
| file | what |
|---|---|
templates.jsonl |
chat messages and technical snippets written by an LLM (gemma-4-E2B) with typed placeholders, filled by code with real-format fake secrets |
configs.jsonl |
framework config files generated by code (WordPress, Laravel, Django, Rails, Spring, docker-compose…), 20 % with placeholders only |
chat_phrases.jsonl |
sentences that name a service after "password" with or without a value, inserted into real WildChat messages |
http.jsonl |
HTTP requests, responses, access logs and HAR-like entries, mostly without secret |
json.jsonl |
chat and template texts serialized as JSON (escaped newlines and quotes), with and without secret |
negatives.jsonl |
punctuation-dense code that is not secret (byte arrays, URL-encoded strings, base64 images, hashes, minified JS) |
Each line: id, lang, mode, text, secrets (start, end, text, subtype) and, for filled templates, template. All secrets are fake but follow real formats, so secret scanners will flag this repository.
ODC-BY 1.0 (host messages from WildChat, ODC-BY).