<commit_before># Core Extensions

This is a collection of core extensions to Ruby and Rails components.


## Compatibility

Tested with:

* Ruby: MRI 1.9.3
* Ruby: MRI 2.0.0
* Ruby: MRI 2.1.2


## Installation

Add this line to your application's Gemfile:

```ruby
gem "core_extensions", github: "pdobb/core_extensions"
```

And then execute:

```ruby
bundle
```


## Configuration

Create an initializer to set custom configuration options, if needed.

```ruby
# config/initializers/conversions.rb

Conversions.configure do |config|
  config.extensions = ["Exception", "Range", "Hash"]
end
```

Currently the only configuration option is `extensions`, which is an Array of Core Object names to be extended during gem initialization (by default this is set to `["Exception", "Range", "Hash"]`). The Available Core Extensions section below lists the available Core Extensions.

<commit_msg>Fix README: configuration example was incorrect<commit_after># Core Extensions

This is a collection of core extensions to Ruby and Rails components.


## Compatibility

Tested with:

* Ruby: MRI 1.9.3
* Ruby: MRI 2.0.0
* Ruby: MRI 2.1.2


## Installation

Add this line to your application's Gemfile:

```ruby
gem "core_extensions", github: "pdobb/core_extensions"
```

And then execute:

```ruby
bundle
```


## Configuration

Create an initializer to set custom configuration options, if needed.

```ruby
# config/initializers/core_extensions.rb

CoreExtensions.configure do |config|
  config.extensions = ["Exception", "Range", "Hash"]
end
```

Currently the only configuration option is `extensions`, which is an Array of Core Object names to be extended during gem initialization (by default this is set to `["Exception", "Range", "Hash"]`). The Available Core Extensions section below lists the available Core Extensions.


{'fraction_non_alphanumeric': 0.1017042330951072, 'fraction_numerical': 0.009895547003848268, 'mean_word_length': 4.796178343949045, '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': '5021479', 'n_tokens_mistral': 547, 'n_tokens_neox': 501, 'n_words': 219}