<commit_before># EventSpitter

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'event_spitter'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install event_spitter

## 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>Update README with instructions.<commit_after># EventSpitter

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'event_spitter'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install event_spitter

## Usage

    # include EventSpitter in your class.
    class Something
      include EventSpitter
    end

    something = Something.new

    # Then add a listener
    listener = ->(msg) { puts('msg') }
    something.on('greeting', listener)

    # Trigger the event
    something.emit('greeting', 'hello world')
    # => "hello world"

    # Add a listener that will fire one time only
    one_timer = ->(msg) { puts(msg + ' once') }
    something.once('greeting', one_timer)

    something.emit('greeting', 'hello world')
    # => "hello world"
    # => "hello world once"

    something.emit('greeting', 'hello world')
    # => "hello world"

    # Remove a listener
    # something.off('greeting', listener)

## 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.1038374717832957, 'fraction_numerical': 0.0056433408577878106, 'mean_word_length': 3.3033980582524274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5572015', 'n_tokens_mistral': 546, 'n_tokens_neox': 525, 'n_words': 204}