<commit_before># 🔥 Thrash

Randomly write to many, many files. Inspired by desperation.

```ruby

thrasher = Thrash.new

1_000_000.times do |x|
  thrasher["thrash-#{(0..10000).to_a.sample}"].write ">:|\n"
end

thrasher.finalize
```

## Copyright

Copyright (c) 2012 <NAME>. See LICENSE.txt for
further details.<commit_msg>how thrashing really works<commit_after># 🔥 Thrash

Randomly write to many, many files. Inspired by desperation.

```ruby

thrasher = Thrash.new

1_000_000.times do |x|
  thrasher.add "thrash-#{(0..10000).to_a.sample}",  ">:|\n"
end

thrasher.finalize
```

## Copyright

Copyright (c) 2012 <NAME>. See LICENSE.txt for
further details.
{'fraction_non_alphanumeric': 0.15091463414634146, 'fraction_numerical': 0.051829268292682924, 'mean_word_length': 4.385245901639344, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2159949', 'n_tokens_mistral': 283, 'n_tokens_neox': 246, 'n_words': 67}