<commit_before># HashSymbolizer

Extends ActiveSupport's symbolize_keys to recursively symbolize all keys in a gem. By default, it is fully backwards compatible with ActiveSupport's symbolize_keys method. If the recursive flag is set to true however and it recursively symbolizes any values which are hashes.

## Installation

Add this line to your application's Gemfile:

    gem 'hash_symbolizer'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hash_symbolizer

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Added usage instructions to README<commit_after># HashSymbolizer

Extends ActiveSupport's symbolize_keys to recursively symbolize all keys in a gem. By default, it is fully backwards compatible with ActiveSupport's symbolize_keys method. If the recursive flag is set to true however and it recursively symbolizes any values which are hashes.

## Installation

Add this line to your application's Gemfile:

    gem 'hash_symbolizer'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hash_symbolizer

## Usage

gem install hash_symbolizer 
or
include it in your Gemfile and then run bundle install.

Examples:

{"a" => {"b" => 1}}.symbolize_keys = {:a => {"b" => 1}}
{"a" => {"b" => 1}}.symbolize_keys(true) = {:a => {:b => 1}}
{"a" => {"b" => 1}}.symbolize_keys! = {:a => {"b" => 1}}
{"a" => {"b" => 1}}.symbolize_keys!(true) = {:a => {:b => 1}}

Works on Ruby 1.9.2-p290, 1.9.3-p125, ActiveSupport version 3.2.2 as of now.


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.10865191146881288, 'fraction_numerical': 0.01659959758551308, 'mean_word_length': 4.1395348837209305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '4343274', 'n_tokens_mistral': 642, 'n_tokens_neox': 589, 'n_words': 262}