glitchlings 0.10.2__cp312-cp312-macosx_11_0_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of glitchlings might be problematic. Click here for more details.

Files changed (83) hide show
  1. glitchlings/__init__.py +99 -0
  2. glitchlings/__main__.py +8 -0
  3. glitchlings/_zoo_rust/__init__.py +12 -0
  4. glitchlings/_zoo_rust.cpython-312-darwin.so +0 -0
  5. glitchlings/assets/__init__.py +180 -0
  6. glitchlings/assets/apostrofae_pairs.json +32 -0
  7. glitchlings/assets/ekkokin_homophones.json +2014 -0
  8. glitchlings/assets/hokey_assets.json +193 -0
  9. glitchlings/assets/lexemes/academic.json +1049 -0
  10. glitchlings/assets/lexemes/colors.json +1333 -0
  11. glitchlings/assets/lexemes/corporate.json +716 -0
  12. glitchlings/assets/lexemes/cyberpunk.json +22 -0
  13. glitchlings/assets/lexemes/lovecraftian.json +23 -0
  14. glitchlings/assets/lexemes/synonyms.json +3354 -0
  15. glitchlings/assets/mim1c_homoglyphs.json.gz.b64 +1064 -0
  16. glitchlings/assets/ocr_confusions.tsv +30 -0
  17. glitchlings/assets/pipeline_assets.json +29 -0
  18. glitchlings/attack/__init__.py +147 -0
  19. glitchlings/attack/analysis.py +1321 -0
  20. glitchlings/attack/core.py +493 -0
  21. glitchlings/attack/core_execution.py +367 -0
  22. glitchlings/attack/core_planning.py +612 -0
  23. glitchlings/attack/encode.py +114 -0
  24. glitchlings/attack/metrics.py +218 -0
  25. glitchlings/attack/metrics_dispatch.py +70 -0
  26. glitchlings/attack/tokenization.py +227 -0
  27. glitchlings/auggie.py +284 -0
  28. glitchlings/compat/__init__.py +9 -0
  29. glitchlings/compat/loaders.py +355 -0
  30. glitchlings/compat/types.py +41 -0
  31. glitchlings/conf/__init__.py +41 -0
  32. glitchlings/conf/loaders.py +331 -0
  33. glitchlings/conf/schema.py +156 -0
  34. glitchlings/conf/types.py +72 -0
  35. glitchlings/config.toml +2 -0
  36. glitchlings/constants.py +59 -0
  37. glitchlings/dev/__init__.py +3 -0
  38. glitchlings/dev/docs.py +45 -0
  39. glitchlings/dlc/__init__.py +19 -0
  40. glitchlings/dlc/_shared.py +296 -0
  41. glitchlings/dlc/gutenberg.py +400 -0
  42. glitchlings/dlc/huggingface.py +68 -0
  43. glitchlings/dlc/prime.py +215 -0
  44. glitchlings/dlc/pytorch.py +98 -0
  45. glitchlings/dlc/pytorch_lightning.py +173 -0
  46. glitchlings/internal/__init__.py +16 -0
  47. glitchlings/internal/rust.py +159 -0
  48. glitchlings/internal/rust_ffi.py +490 -0
  49. glitchlings/main.py +426 -0
  50. glitchlings/protocols.py +91 -0
  51. glitchlings/runtime_config.py +24 -0
  52. glitchlings/util/__init__.py +27 -0
  53. glitchlings/util/adapters.py +65 -0
  54. glitchlings/util/keyboards.py +356 -0
  55. glitchlings/util/transcripts.py +108 -0
  56. glitchlings/zoo/__init__.py +161 -0
  57. glitchlings/zoo/assets/__init__.py +29 -0
  58. glitchlings/zoo/core.py +678 -0
  59. glitchlings/zoo/core_execution.py +154 -0
  60. glitchlings/zoo/core_planning.py +451 -0
  61. glitchlings/zoo/corrupt_dispatch.py +295 -0
  62. glitchlings/zoo/hokey.py +139 -0
  63. glitchlings/zoo/jargoyle.py +243 -0
  64. glitchlings/zoo/mim1c.py +148 -0
  65. glitchlings/zoo/pedant/__init__.py +109 -0
  66. glitchlings/zoo/pedant/core.py +105 -0
  67. glitchlings/zoo/pedant/forms.py +74 -0
  68. glitchlings/zoo/pedant/stones.py +74 -0
  69. glitchlings/zoo/redactyl.py +97 -0
  70. glitchlings/zoo/rng.py +259 -0
  71. glitchlings/zoo/rushmore.py +416 -0
  72. glitchlings/zoo/scannequin.py +66 -0
  73. glitchlings/zoo/transforms.py +346 -0
  74. glitchlings/zoo/typogre.py +128 -0
  75. glitchlings/zoo/validation.py +477 -0
  76. glitchlings/zoo/wherewolf.py +120 -0
  77. glitchlings/zoo/zeedub.py +93 -0
  78. glitchlings-0.10.2.dist-info/METADATA +337 -0
  79. glitchlings-0.10.2.dist-info/RECORD +83 -0
  80. glitchlings-0.10.2.dist-info/WHEEL +5 -0
  81. glitchlings-0.10.2.dist-info/entry_points.txt +3 -0
  82. glitchlings-0.10.2.dist-info/licenses/LICENSE +201 -0
  83. glitchlings-0.10.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,337 @@
1
+ Metadata-Version: 2.4
2
+ Name: glitchlings
3
+ Version: 0.10.2
4
+ Summary: Monsters for your language games.
5
+ Author: osoleve
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/osoleve/glitchlings
8
+ Project-URL: Repository, https://github.com/osoleve/glitchlings.git
9
+ Project-URL: Issues, https://github.com/osoleve/glitchlings/issues
10
+ Project-URL: Changelog, https://github.com/osoleve/glitchlings/releases
11
+ Keywords: nlp,adversarial augmentation,text augmentation,data augmentation,domain randomization
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Rust
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: Software Development :: Testing
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: tomli>=2.0.1; python_version < "3.11"
27
+ Requires-Dist: importlib-resources>=5.0.0; python_version < "3.11"
28
+ Requires-Dist: packaging>=23.0
29
+ Requires-Dist: pyyaml>=6.0.0
30
+ Provides-Extra: all
31
+ Requires-Dist: hypothesis>=6.140.0; extra == "all"
32
+ Requires-Dist: interrogate>=1.5.0; extra == "all"
33
+ Requires-Dist: jellyfish==1.2.0; extra == "all"
34
+ Requires-Dist: isort>=5.13.0; extra == "all"
35
+ Requires-Dist: mkdocs>=1.6.0; extra == "all"
36
+ Requires-Dist: mkdocs-material>=9.5.0; extra == "all"
37
+ Requires-Dist: mkdocstrings[python]>=0.24.0; extra == "all"
38
+ Requires-Dist: mkdocstrings-python>=1.10.0; extra == "all"
39
+ Requires-Dist: mypy>=1.8.0; extra == "all"
40
+ Requires-Dist: numpy<3.0,>=1.24; extra == "all"
41
+ Requires-Dist: pre-commit>=3.8.0; extra == "all"
42
+ Requires-Dist: py-gutenberg==1.0.0; extra == "all"
43
+ Requires-Dist: pytest>=8.0.0; extra == "all"
44
+ Requires-Dist: pytest-cov>=4.1.0; extra == "all"
45
+ Requires-Dist: ruff>=0.6.0; extra == "all"
46
+ Requires-Dist: types-PyYAML>=6.0.0; extra == "all"
47
+ Requires-Dist: verifiers>=0.1.8; extra == "all"
48
+ Requires-Dist: tiktoken>=0.3.0; extra == "all"
49
+ Requires-Dist: tokenizers>=0.13.0; extra == "all"
50
+ Provides-Extra: tok
51
+ Requires-Dist: tiktoken>=0.3.0; extra == "tok"
52
+ Requires-Dist: tokenizers>=0.13.0; extra == "tok"
53
+ Provides-Extra: gutenberg
54
+ Requires-Dist: py-gutenberg==1.0.0; extra == "gutenberg"
55
+ Provides-Extra: hf
56
+ Requires-Dist: datasets>=4.0.0; extra == "hf"
57
+ Provides-Extra: lightning
58
+ Requires-Dist: pytorch_lightning>=2.0.0; extra == "lightning"
59
+ Provides-Extra: prime
60
+ Requires-Dist: verifiers>=0.1.8; extra == "prime"
61
+ Requires-Dist: jellyfish==1.2.0; extra == "prime"
62
+ Provides-Extra: torch
63
+ Requires-Dist: torch>=2.0.0; extra == "torch"
64
+ Provides-Extra: dev
65
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
66
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
67
+ Requires-Dist: hypothesis>=6.140.0; extra == "dev"
68
+ Requires-Dist: numpy<3.0,>=1.24; extra == "dev"
69
+ Requires-Dist: mkdocs>=1.6.0; extra == "dev"
70
+ Requires-Dist: mkdocstrings[python]>=0.24.0; extra == "dev"
71
+ Requires-Dist: mkdocs-material>=9.5.0; extra == "dev"
72
+ Requires-Dist: mkdocstrings-python>=1.10.0; extra == "dev"
73
+ Requires-Dist: interrogate>=1.5.0; extra == "dev"
74
+ Requires-Dist: isort>=5.13.0; extra == "dev"
75
+ Requires-Dist: ruff>=0.6.0; extra == "dev"
76
+ Requires-Dist: mypy>=1.8.0; extra == "dev"
77
+ Requires-Dist: pre-commit>=3.8.0; extra == "dev"
78
+ Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
79
+ Dynamic: license-file
80
+
81
+ #
82
+
83
+ ```plaintext
84
+ .─') _ .─') _
85
+ ( OO) ) ( OO ) )
86
+ ░██████ ░██ ░██ ░██ ░██ ░██ ░██
87
+ ░██ ░██ ░██ ░██ ░██ ░██
88
+ ░██ ░██ ░██░████████ ░███████ ░████████ ░██ ░██░████████ ░████████ ░███████
89
+ ░██ █████ ░██ ░██ ░██ ░██('─.░██ ░██ ░██ ░██ ░██░██ ░██ ░██.─')░██ ░██
90
+ ░██ ██ ░██ ░██ ░██ ░██( OO ) ╱░██ ░██ ░██ ░██░██ ░██ ░██(OO)░██ ░███████
91
+ ░██ ░███ ░██ ░██ ░██ ░██ ░██ ░██ ░██ ░██ ░██░██ ░██ ░██ o ░███ ░██
92
+ ░█████░█ ░██ ░██ ░████ ░███████ ░██ ░██ ░██ ░██░██ ░██ ░█████░██ ░███████
93
+ ░██
94
+ ░███████
95
+
96
+ Every language game breeds monsters.
97
+ ```
98
+
99
+ ![Python Versions](https://img.shields.io/pypi/pyversions/glitchlings.svg)
100
+ [![PyPI version](https://img.shields.io/pypi/v/glitchlings.svg)](https://pypi.org/project/glitchlings/)
101
+ ![Wheel](https://img.shields.io/pypi/wheel/glitchlings.svg)
102
+ ![Linting and Typing](https://github.com/osoleve/glitchlings/actions/workflows/ci.yml/badge.svg)
103
+ ![Entropy Budget](https://img.shields.io/badge/entropy-lifegiving-magenta.svg)
104
+ ![Chaos](https://img.shields.io/badge/chaos-friend--shaped-chartreuse.svg)
105
+ ![Charm](https://img.shields.io/badge/jouissance-indefatigable-cyan.svg)
106
+ ![Lore Compliance](https://img.shields.io/badge/ISO--474--▓▓-Z--Compliant-blue.svg)
107
+
108
+ `Glitchlings` are **utilities for corrupting the text inputs to your language models in deterministic, _linguistically principled_** ways.
109
+ Each embodies a different way that documents can be compromised in the wild.
110
+
111
+ If reinforcement learning environments are games, then `Glitchling`s are enemies to breathe new life into old challenges.
112
+
113
+ They do this by breaking surface patterns in the input while keeping the target output intact.
114
+
115
+ Some `Glitchling`s are petty nuisances. Some `Glitchling`s are eldritch horrors.
116
+ Together, they create truly nightmarish scenarios for your language models.
117
+
118
+ After all, what good is general intelligence if it can't handle a little chaos?
119
+
120
+ -_The Curator_
121
+
122
+ ## Motivation
123
+
124
+ If your model performs well on a particular task, but not when `Glitchling`s are present, it's a sign that it hasn't actually generalized to the problem.
125
+
126
+ Conversely, training a model to perform well in the presence of the types of perturbations introduced by `Glitchling`s should help it generalize better.
127
+
128
+ ## Quickstart
129
+
130
+ ```python
131
+ pip install -U glitchlings
132
+ ```
133
+
134
+ The fastest way to get started is to ask my assistant, `Auggie`, to prepare a custom mix of glitchlings for you:
135
+
136
+ ```python
137
+ from glitchlings import Auggie, SAMPLE_TEXT
138
+
139
+ auggie = (
140
+ Auggie(seed=404)
141
+ .typo(rate=0.015)
142
+ .confusable(rate=0.01)
143
+ .homophone(rate=0.02)
144
+ )
145
+
146
+ print(auggie(SAMPLE_TEXT))
147
+ ```
148
+
149
+ > One morning, when Gregor Samsa woke from troubld dreams, he found himself transformed in his bed into a horible vermin. He layed on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked.
150
+
151
+ **You're more than welcome to summon them directly, if you're feeling brave:**
152
+
153
+ ```python
154
+ from glitchlings import Gaggle, SAMPLE_TEXT, Typogre, Mim1c, Wherewolf
155
+
156
+ gaggle = Gaggle(
157
+ [
158
+ Typogre(rate=0.015),
159
+ Mim1c(rate=0.01),
160
+ Wherewolf(rate=0.02),
161
+ ],
162
+ seed=404
163
+ )
164
+ ```
165
+
166
+ Consult the [Glitchlings Usage Guide](docs/index.md)
167
+ for end-to-end instructions spanning the Python API, CLI, and third-party integrations.
168
+
169
+ ## Your First Battle
170
+
171
+ Summon your chosen `Glitchling` (_or a few, if ya nasty_) and call it on your text or slot it into `Dataset.map(...)`, supplying a seed if desired.
172
+ Glitchlings are standard Python classes:
173
+
174
+ ```python
175
+ from glitchlings import Gaggle, Typogre, Mim1c
176
+
177
+ custom_typogre = Typogre(rate=0.1)
178
+ selective_mimic = Mim1c(rate=0.05, classes=["LATIN", "GREEK"])
179
+
180
+ gaggle = Gaggle([custom_typogre, selective_mimic], seed=99)
181
+ corrupted = gaggle("We Await Silent Tristero's Empire.")
182
+ print(corrupted)
183
+ ```
184
+
185
+ Calling a `Glitchling` on a `str` transparently calls `.corrupt(str, ...) -> str`.
186
+ This means that as long as your glitchlings get along logically, they play nicely with one another.
187
+
188
+ When summoned as or gathered into a `Gaggle`, the `Glitchling`s will automatically order themselves into attack waves, based on the scope of the change they make:
189
+
190
+ 1. Document
191
+ 2. Paragraph
192
+ 3. Sentence
193
+ 4. Word
194
+ 5. Character
195
+
196
+ They're horrible little gremlins, but they're not _unreasonable_.
197
+
198
+ ## Command-Line Interface (CLI)
199
+
200
+ Keyboard warriors can challenge them directly via the `glitchlings` command (see the generated CLI reference in `docs/cli.md` for the full contract):
201
+
202
+ ```bash
203
+ # Discover which glitchlings are currently on the loose.
204
+ glitchlings --list
205
+
206
+ # Review the full CLI contract.
207
+ glitchlings --help
208
+
209
+ # Run Typogre against the contents of a file and inspect the diff.
210
+ glitchlings -g typogre --input-file documents/report.txt --diff
211
+
212
+ # Configure glitchlings inline by passing keyword arguments.
213
+ glitchlings -g "Typogre(rate=0.05)" "Ghouls just wanna have fun"
214
+
215
+ # Pipe text straight into the CLI for an on-the-fly corruption.
216
+ echo "Beware LLM-written flavor-text" | glitchlings -g mim1c
217
+
218
+ # Emit an Attack summary with metrics and counts.
219
+ glitchlings --attack --sample
220
+
221
+ # Emit a full Attack report with tokens, token IDs, and metrics.
222
+ glitchlings --report --sample
223
+ ```
224
+
225
+ ## Configuration Files
226
+
227
+ Configurations live in plain YAML files so you can version-control experiments without touching code:
228
+
229
+ ```bash
230
+ # Load a roster from a YAML attack configuration.
231
+ glitchlings --config experiments/chaos.yaml "Let slips the glitchlings of war"
232
+ ```
233
+
234
+ ```yaml
235
+ # experiments/chaos.yaml
236
+ seed: 31337
237
+ glitchlings:
238
+ - name: Typogre
239
+ rate: 0.04
240
+ - "Rushmore(rate=0.12, unweighted=True)"
241
+ - name: Zeedub
242
+ parameters:
243
+ rate: 0.02
244
+ characters: ["\u200b", "\u2060"]
245
+ ```
246
+
247
+ ## Attack on Token
248
+
249
+ Looking to compare before/after corruption with metrics and stable seeds? Reach for the [`Attack` helper](docs/attack.md), which bundles tokenization, metrics, and transcript batching into a single utility. It accepts plain `list[str]` batches, renders quick `summary()` reports, and can compare multiple tokenizers via `Attack.compare(...)` when you need a metrics matrix.
250
+
251
+ ## Development
252
+
253
+ Follow the [development setup guide](docs/development.md) for editable installs, automated tests, and tips on enabling the Rust pipeline while you hack on new glitchlings.
254
+
255
+ ## Starter 'lings
256
+
257
+ For maintainability reasons, all `Glitchling` have consented to be given nicknames once they're in your care. See the [Monster Manual](MONSTER_MANUAL.md) for a complete bestiary.
258
+
259
+ ### Typogre
260
+
261
+ _What a nice word, would be a shame if something happened to it._
262
+
263
+ > _**Fatfinger.**_ Typogre introduces character-level errors (duplicating, dropping, adding, or swapping) based on the layout of a keyboard (QWERTY by default, with Dvorak and Colemak variants built-in).
264
+
265
+ ### Mim1c
266
+
267
+ _Wait, was that...?_
268
+
269
+ > _**Confusion.**_ Mim1c replaces non-space characters with Unicode Confusables, characters that are distinct but would not usually confuse a human reader.
270
+
271
+ ### Hokey
272
+
273
+ _She's soooooo coooool!_
274
+
275
+ > _**Passionista.**_ Hokey gets a little excited and streeeeetches words for emphasis.
276
+ >
277
+ > _Apocryphal Glitchling contributed by Chloé Nunes_
278
+
279
+ ### Scannequin
280
+
281
+ _How can a computer need reading glasses?_
282
+
283
+ > _**OCArtifacts.**_ Scannequin mimics optical character recognition errors by swapping visually similar character sequences (like rn↔m, cl↔d, O↔0, l/I/1).
284
+
285
+ ### Zeedub
286
+
287
+ _Watch your step around here._
288
+
289
+ > _**Invisible Ink.**_ Zeedub slips zero-width codepoints between non-space character pairs, forcing models to reason about text whose visible form masks hidden glyphs.
290
+
291
+ ### Wherewolf
292
+
293
+ _Did you hear what I heard?_
294
+
295
+ > _**Echo Chamber.**_ Wherewolf swaps words with curated homophones so the text still sounds right while the spelling drifts. Groups are normalised to prevent duplicates and casing is preserved when substitutions fire.
296
+
297
+ ### Jargoyle
298
+
299
+ _Uh oh. The worst person you know just bought a thesaurus._
300
+
301
+ > _**Sesquipedalianism.**_ Jargoyle insufferably replaces words with synonyms at random, without regard for connotational or denotational differences.
302
+
303
+ ### Rushmore
304
+
305
+ _I accidentally an entire word._
306
+
307
+ > _**Tactical Scrambler.**_ Rushmore randomly drops, duplicates, or swaps words in the text to simulate hasty writing, editing mistakes, or transmission errors.
308
+
309
+ ### Redactyl
310
+
311
+ _Oops, that was my black highlighter._
312
+
313
+ > _**FOIA Reply.**_ Redactyl obscures random words in your document like an NSA analyst with a bad sense of humor.
314
+
315
+ ## Apocrypha
316
+
317
+ Cave paintings and oral tradition contain many depictions of strange, otherworldly `Glitchling`s.
318
+ These _Apocryphal `Glitchling`_ are said to possess unique abilities or behaviors.
319
+ If you encounter one of these elusive beings, please document your findings and share them with _The Curator_.
320
+
321
+ ### Ensuring Reproducible Corruption
322
+
323
+ Every `Glitchling` should own its own independent `random.Random` instance. That means:
324
+
325
+ - No `random.seed(...)` calls touch Python's global RNG.
326
+ - Supplying a `seed` when you construct a `Glitchling` (or when you `summon(...)`) makes its behavior reproducible.
327
+ - Re-running a `Gaggle` with the same master seed and the same input text (_and same external data!_) yields identical corruption output.
328
+ - Corruption functions are written to accept an `rng` parameter internally so that all randomness is centralized and testable.
329
+
330
+ #### At Wits' End?
331
+
332
+ If you're trying to add a new glitchling and can't seem to make it deterministic, here are some places to look for determinism-breaking code:
333
+
334
+ 1. Search for any direct calls to `random.choice`, `random.shuffle`, or `set(...)` ordering without going through the provided `rng`.
335
+ 2. Ensure you sort collections before shuffling or sampling.
336
+ 3. Make sure indices are chosen from a stable reference (e.g., original text) when applying length‑changing edits.
337
+ 4. Make sure there are enough sort keys to maintain stability.
@@ -0,0 +1,83 @@
1
+ glitchlings/__init__.py,sha256=i1ZjVNcqcMkZ4rxwQ-Yb8n1bUqKJjwVDn2irzKYa3-U,1803
2
+ glitchlings/__main__.py,sha256=f-P4jiVBd7ZpS6QxRpa_6SJgOG03UhZhcWasMDRWLs8,120
3
+ glitchlings/_zoo_rust.cpython-312-darwin.so,sha256=V6FAfrWALFNP1pXcQEQ9vtPsMFb5rVorvfyBwN2CGuk,3899408
4
+ glitchlings/auggie.py,sha256=UhKuNxNQGcQX0xIHnXLxkY12sNJl7KODklzG8KnAOaU,8818
5
+ glitchlings/config.toml,sha256=7K0LZCROr-Eu4zwSMKb82G9K5gOw-4f_GnukWiHVkV8,103
6
+ glitchlings/constants.py,sha256=KliR2Hg46N1CIE3akm-k_PyffDmXA0Ny3xPk_ZPrMj8,1623
7
+ glitchlings/main.py,sha256=WgDNI21wXUc-4-h257BsksNSWVl0-g81aP-zgy0_VmQ,13253
8
+ glitchlings/protocols.py,sha256=cgBIfP4NFNQfae9CnMqAK0PH6D5xP0awA3HpeMYQvo0,2808
9
+ glitchlings/runtime_config.py,sha256=OmKFFsODu9zXAqVUZsF1rviLmlWwPW02D6Hf2BsoRY0,426
10
+ glitchlings/_zoo_rust/__init__.py,sha256=9s6Lim5PL5lhHUDyRqvVD682ZQhmIrRsxaq0TRJ_XHc,273
11
+ glitchlings/assets/__init__.py,sha256=3QBihFXTp8jAKaqxj_qELlbCtr_KzGDi-5ZeD2urWyA,5804
12
+ glitchlings/assets/apostrofae_pairs.json,sha256=bfjSEaMTI_axGNJ93nI431KXU0IVp7ayO42gGcMgL6U,521
13
+ glitchlings/assets/ekkokin_homophones.json,sha256=gCuEetD21fOhu_ClrgFKn1A2_KynD7Xf0nUh1AW4Z5E,17244
14
+ glitchlings/assets/hokey_assets.json,sha256=9drpOv_PHHxs7jZOcgMr9G-Nswx_UuMzC4yQ0O8mIZ0,2890
15
+ glitchlings/assets/mim1c_homoglyphs.json.gz.b64,sha256=dX3_wRBSh0igYEfH2OOqPBxaMuWNhPtE1jgn2rgKDxA,81904
16
+ glitchlings/assets/ocr_confusions.tsv,sha256=KhtR7vJDTITpfTSGa-I7RHr6CK7LkGi2KjdhEWipI6o,183
17
+ glitchlings/assets/pipeline_assets.json,sha256=kTbDjrCIV-FodqGITqtg3QPZ0rkB-nk4fREE4ImRjGw,503
18
+ glitchlings/assets/lexemes/academic.json,sha256=bU0jIYdSV03d3X1yf36f-GT_yK1F3rVobiXACqTMj_s,15831
19
+ glitchlings/assets/lexemes/colors.json,sha256=CQ28auD9OKE6hOS5rSVFtyO3CSOq73oAu5494vwN3Ig,16654
20
+ glitchlings/assets/lexemes/corporate.json,sha256=8KxDUvVy-t9YpMKwXgR0awuyc_HUqL5Sb1Rdu81FOPA,11165
21
+ glitchlings/assets/lexemes/cyberpunk.json,sha256=N3n4GhkudHZ-sWwuj3Ttr81oRnV9cI_NhMRioeizUt0,1338
22
+ glitchlings/assets/lexemes/lovecraftian.json,sha256=ukMYxFV3CS4aDFgUatnXCUMxFFJYatj7mrWJDBReh5Y,1576
23
+ glitchlings/assets/lexemes/synonyms.json,sha256=eXEfLYpG9UDiPCODrQ8kPlqnR0YOlutAYzU35__qqo4,44525
24
+ glitchlings/attack/__init__.py,sha256=880zSvE7EjXsBzjy4qRZo9XcfwnrUwkybiDZoYhYGlc,3731
25
+ glitchlings/attack/analysis.py,sha256=M3h6Et4GMasahpZzkKP0m6bLwjZqJfLz5I-Ex8QiWEQ,46055
26
+ glitchlings/attack/core.py,sha256=5jt3CAGlGq20WFhjIJTD0vFClJm3esIR1HU5-CDTEtc,18040
27
+ glitchlings/attack/core_execution.py,sha256=SCJEw1J-7oFmCAMdmgog4xk3Uwwfvir_DCQUYqxxqBU,11432
28
+ glitchlings/attack/core_planning.py,sha256=t-TDgK3PkRN4GOoWVInmuGUAh716sGE0wMJkYut4fRo,18561
29
+ glitchlings/attack/encode.py,sha256=4g4CZhRMGwET-HpMsWmipUwLehdBVg1jnWVypdS6NpM,3238
30
+ glitchlings/attack/metrics.py,sha256=Ovl3-TkujJIDgmMzF4nlsnvBsfvrMUgDLL8AhOrDYxk,6611
31
+ glitchlings/attack/metrics_dispatch.py,sha256=JRVemhI9COY0Vs1mi0wXbGnyJFbUi_gfOEPfaNmy4j8,2067
32
+ glitchlings/attack/tokenization.py,sha256=T9oMwlJs85l_R3E28hTSH2aKjfQ0jXvfVXpUVN2Ng68,7823
33
+ glitchlings/compat/__init__.py,sha256=8qycQqni7Z_nauyzcZreH5wp6TFRfcq9GSzdr8TgsCo,308
34
+ glitchlings/compat/loaders.py,sha256=besXivncNd_5IUj_-vjS98OFNVVHHWoBW_0rMcnDncA,11764
35
+ glitchlings/compat/types.py,sha256=A92lC4hRzhxehYLCQG9ehbndVgBPNPLCW2II2cmubTI,934
36
+ glitchlings/conf/__init__.py,sha256=IKmQ6JiQftABb_I2KVTFb_dWInLKPrYMppCl5mmP33A,1011
37
+ glitchlings/conf/loaders.py,sha256=CL1vCB8AO7jU25IC0PWZhj7PZQzdplH93q2fEuWce0k,10473
38
+ glitchlings/conf/schema.py,sha256=Vowa0fRO1cqKb5Gu243ZTlb5LfB5hRS3YkooChfh5wA,5202
39
+ glitchlings/conf/types.py,sha256=8lPwEsPaZ_q18YiHOlv-3zjiUJW1ZRL41oLCLOKEbec,1833
40
+ glitchlings/dev/__init__.py,sha256=_UMGiBYggl-k4bNfqw26zkNYi5BvuUzb_rHjv63mX1Y,91
41
+ glitchlings/dev/docs.py,sha256=nkMva036QpFdY5VKqPQj4d1xn2Nz41QIASi_aLHZXsc,1083
42
+ glitchlings/dlc/__init__.py,sha256=ovMTqzokFeINCD-CFUj1ulVLIUJ3oGeJkoFYX8RqbPY,780
43
+ glitchlings/dlc/_shared.py,sha256=1Luz-E0K1ZHee-QQ4uNxpvOHWZoweXPhI07KtmPek-4,10261
44
+ glitchlings/dlc/gutenberg.py,sha256=qpv_L0s9yKfm0zHrta8CNjYO8n-8RGSJGNrQX6FUKBc,13576
45
+ glitchlings/dlc/huggingface.py,sha256=_b7xtbNmzmxX-8EMN2PHIza1z_4xts7nitEWRKuIsoI,2207
46
+ glitchlings/dlc/prime.py,sha256=3C_d45hWK_ZJjtE8Cll7B-OA5PlqcYScGZD8FNVtP08,7528
47
+ glitchlings/dlc/pytorch.py,sha256=dDtneNhTp8Qdaw3c0JlDNC0m33S1m8CZQsT6Jj896Vg,3435
48
+ glitchlings/dlc/pytorch_lightning.py,sha256=lvsKIi1ZkW53H1Tx7VxiRfoouE2FgeMw5Al9yHO_VKo,7130
49
+ glitchlings/internal/__init__.py,sha256=Pt9-SlTAKJerCndvngbCw1u_FfMdJehTuDvFrVLlgME,502
50
+ glitchlings/internal/rust.py,sha256=uZSi4FD9TfTC1rUCzr6_sL3XNtHMHxqQFI6QAOrmk7A,4779
51
+ glitchlings/internal/rust_ffi.py,sha256=Mg-8rdl56n2S32SpnOM6trzLRP2ZRdHJ6dqveP0qQ18,13785
52
+ glitchlings/util/__init__.py,sha256=3lI4v6H_VdurA2mi9iGn2Wv5w-5aBSc5ckQ9gtuJOpU,806
53
+ glitchlings/util/adapters.py,sha256=Dx_tYe4TEA6Vcu4WE7Ocyuhb12YwWLoarD8nEo_ibpg,2424
54
+ glitchlings/util/keyboards.py,sha256=T-_gaNhuh9Nu2CMqSRHkeJ0Dym_-KtrAOuckhtPlSd8,8017
55
+ glitchlings/util/transcripts.py,sha256=uKdOOkOte_cvzBnn2Q42hA5PySQ5rgFZQOSabQGLfJY,3387
56
+ glitchlings/zoo/__init__.py,sha256=rkPOnnTOaXa4nICoZQ4qYuZLMttVnuja3FFvZ4Hm19M,4784
57
+ glitchlings/zoo/core.py,sha256=kE649RgSeYyCzWDDuTl2TQ_C3YkyDzSVsaUXBZlNlJw,26715
58
+ glitchlings/zoo/core_execution.py,sha256=AC7rnG5JO5BowOsErXhuB1YzUsknLnbakLpZE0Uzt64,4705
59
+ glitchlings/zoo/core_planning.py,sha256=gJ_pll6SH54j1HJZ9PosNAlyiHY9WGatkM9XJ2YS4wg,14489
60
+ glitchlings/zoo/corrupt_dispatch.py,sha256=yzU0LNVIVdzuCnjuronlrpxkc8jriB6B7kM2BZGrQ-w,8967
61
+ glitchlings/zoo/hokey.py,sha256=EKGnY8dGaY1zr5IFvV43ucdT__r-_NkeDdeIWX49FaA,4309
62
+ glitchlings/zoo/jargoyle.py,sha256=RE4PYNoMlURZ2np0gS6uo0-kczLzMj7KnMKQ-pBtMYA,7694
63
+ glitchlings/zoo/mim1c.py,sha256=Xj6X9ZWoYvYjebwzjg9oFYpbPrHS59UwzSJvtnc6n_U,4656
64
+ glitchlings/zoo/redactyl.py,sha256=gm3RTpGlUhuDd3JCi9eR8iuD1v1Zi5mokYc63SW5iKg,3015
65
+ glitchlings/zoo/rng.py,sha256=0jLykfaup4kFQF2Y0q1A7swBRXzOQMsAG8Fv7kcYlu4,7871
66
+ glitchlings/zoo/rushmore.py,sha256=HMWUWv0HCImPgjoDKYQj5q2i8qmmdn6_3AQcrTzF1Os,12692
67
+ glitchlings/zoo/scannequin.py,sha256=bvbZCWkro8ZCQmb8pXlt1rSnGAF_pv7uz396KMixO8A,1838
68
+ glitchlings/zoo/transforms.py,sha256=KsXiW4iQglhIuZ21JkOV1Mab_wQQwQEP89c0Np0Hfzo,10030
69
+ glitchlings/zoo/typogre.py,sha256=fXP6PNXQZ-R4vEYNFnWWrNHbY_x1WxN3gApFu8ki1rg,4492
70
+ glitchlings/zoo/validation.py,sha256=bXgLgjITiep-KoTVlRmvc_bRKTPyD_B_RdH5a73fk9Y,14050
71
+ glitchlings/zoo/wherewolf.py,sha256=u8JBLDxC4zXwkJm-5K77yxx_sgLVHC_5hpB2ZUGlyc0,3384
72
+ glitchlings/zoo/zeedub.py,sha256=THnE6b6ECWrqYwfkaWZ0Li1udO1kQaN5wFkbVcqIMD4,2678
73
+ glitchlings/zoo/assets/__init__.py,sha256=BQ1xm6Ng0A8x9SQoUNI7myl-FTvvZwY6WqnyOF-M7hw,537
74
+ glitchlings/zoo/pedant/__init__.py,sha256=I1WV06BC5bgtqVKl9DgbW05xLW9MZd08hhQwoSPU5gY,2856
75
+ glitchlings/zoo/pedant/core.py,sha256=_18EBahC5-3zmwEJUOEH_ojphCvEFNLs82wb0NTE4ic,2984
76
+ glitchlings/zoo/pedant/forms.py,sha256=Kou0lAGxiSrGqLurt_RmLqOLcc0eIDPkDS76lNMuw9Q,1611
77
+ glitchlings/zoo/pedant/stones.py,sha256=wHNwODXaloZVTXQvHdVVtnt7AI6PpHZ6QMmv1fajZ00,2290
78
+ glitchlings-0.10.2.dist-info/licenses/LICENSE,sha256=YCvGip-LoaRyu6h0nPo71q6eHEkzUpsE11psDJOIRkw,11337
79
+ glitchlings-0.10.2.dist-info/METADATA,sha256=eO81D3YWiXAWwLymfE_EglCXPjzc5Sj2qHGuLdG1UAE,14758
80
+ glitchlings-0.10.2.dist-info/WHEEL,sha256=o0zAoJUNILGJZxEeFPjb7OMHp_94eqIkZBeZ0gvgOpo,114
81
+ glitchlings-0.10.2.dist-info/entry_points.txt,sha256=0pVGF4NIGjlDEt5Q0i0QUSUNigl5h9rhazn6DWEfyXg,107
82
+ glitchlings-0.10.2.dist-info/top_level.txt,sha256=VHFNBrLjtDwPCYXbGKi6o17Eueedi81eNbR3hBOoST0,12
83
+ glitchlings-0.10.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-macosx_11_0_universal2
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ glitchlings = glitchlings.main:main
3
+ glitchlings-refresh-docs = glitchlings.dev.docs:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 osoleve
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ glitchlings