<commit_before># AccessibleHash

Adds ability to access hash elements with custom method calls.

## Installation

Add this line to your application's Gemfile:

    gem 'accessible_hash'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install accessible_hash

## Usage

Call the make_accessible method either on the Hash class:

  Hash.make_accessible

or on a hash object

  a = {}
  a.make_accessible

to gain access to data members by methods who's names correspond to the keys.
For example:

  a.foo = "bar"

is equivalent to

  a[:foo] = "bar"

Similarly,

  a.foo

is equivalent to

  a[:foo]

Using the class level method adds this functionality to all Hashes, whereas using the instance method adds the functionality only to the hash it is called on.

## Contributing

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

Adds ability to access hash elements with custom method calls.

## Installation

Add this line to your application's Gemfile:

    gem 'accessible_hash'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install accessible_hash

## Usage

###### Ruby 1.9.3

Call the make_accessible method either on the Hash class:

    Hash.make_accessible

or on a hash object

    a = {}
    a.make_accessible

to gain access to data members by methods who's names correspond to the keys.
For example:

    a.foo = "bar"

is equivalent to

    a[:foo] = "bar"

Similarly,

    a.foo

is equivalent to

    a[:foo]

Using the class level method adds this functionality to all Hashes, whereas using the instance method adds the functionality only to the hash it is called on.

###### Ruby 2.0

If you are using Ruby 2, simply call

    using AccessibleHash
    
This will give you the same getter/setter functionality as above for all code following the using call until the end of that file.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.06786941580756013, 'fraction_numerical': 0.006872852233676976, 'mean_word_length': 3.496138996138996, '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': '1929668', 'n_tokens_mistral': 702, 'n_tokens_neox': 653, 'n_words': 330}