<commit_before>Crush
=====

Crush is a generic interface, like Tilt, for the various compression engines in Ruby.
It is useful for asset libraries that support multiple javascript and stylesheet compression engines.

Basic Usage
-----------

```ruby
require "uglifier"
require "crush"
Crush.new("application.js").compress
```

This would automatically compress the data found in the `application.js` file using Uglifier.
Crush favors engines whose libraries have already been loaded.

If you have multiple compression libraries loaded, and you want to control which one to use,
you can initialize the engine directly.

```ruby
require "uglifier"
require "jsmin"
Crush::Uglifier.new("application.js").compress

# or

Crush.prefer(Crush::Uglifier)
Crush.new("application.js").compress
```

Copyright
---------
<commit_msg>Adding a little bit more info to the README for now<commit_after>Crush
=====

Crush is a generic interface, like Tilt, for the various compression engines in Ruby.
It is useful for asset libraries that support multiple javascript and stylesheet compression engines.

Basic Usage
-----------

```ruby
require "uglifier"
require "crush"
Crush.new("application.js").compress
```

This would automatically compress the data found in the `application.js` file using Uglifier.
Crush favors engines whose libraries have already been loaded.

If you have multiple compression libraries loaded, and you want to control which one to use,
you can initialize the engine directly.

```ruby
require "uglifier"
require "jsmin"
require "crush"
Crush::Uglifier.new("application.js").compress
```

Or you could use `Crush.prefer` to tell Crush which engine you'd like to use.

```ruby
require "uglifier"
require "jsmin"
require "crush"
Crush.prefer(Crush::Uglifier)
Crush.new("application.js").compress
```

Copyright
---------

{'fraction_non_alphanumeric': 0.10710382513661203, 'fraction_numerical': 0.0, 'mean_word_length': 4.739811912225705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1235365', 'n_tokens_mistral': 526, 'n_tokens_neox': 498, 'n_words': 214}