<commit_before>Paperboy
===========

A simple event emitter and mixin.

## Basic Usage

```javascript

var myObject = {'foo':'bar'};

var trigger = paperboy.mixin( myObject );

myObject.on('myevent', function() {
	console.log( this ); // myObject
})

```

## Methods

* `paperboy.mixin( target, [eventNames] )`
 * Adds `on`, `one`, and `off` to `target`.
 * Returns the trigger function.
 * If an array of event names is passed it will be used as a whitelist of event names. An error will be thrown for anything different.
* `paperboy.emitter( /*[eventNames]*/ )`
** Returns a new object with `on`, `one`, `off`, and `trigger` functions.

## Why Paperboy?

* Event listeners are always kept private.
* Passing in a whitelist of event names can prevent bugs.
* The `trigger` function is private by default, making it easier to write safe code. If you want it to be public simply add it to the target.<commit_msg>formatting<commit_after>Paperboy
===========

A simple event emitter and mixin.

## Basic Usage

```javascript

var myObject = {'foo':'bar'};

var trigger = paperboy.mixin( myObject );

myObject.on('myevent', function() {
	console.log( this ); // myObject
})

```

## Methods

* `paperboy.mixin( target /*, [eventNames]*/ )`
 * Adds `on`, `one`, and `off` to `target`.
 * Returns the trigger function.
 * If an array of event names is passed it will be used as a whitelist of event names. An error will be thrown for anything different.
* `paperboy.emitter( /*[eventNames]*/ )`
 * Returns a new object with `on`, `one`, `off`, and `trigger` functions.

## Why Paperboy?

* Event listeners are always kept private.
* Passing in a whitelist of event names can prevent bugs.
* The `trigger` function is private by default, making it easier to write safe code. If you want it to be public simply add it to the target.
{'fraction_non_alphanumeric': 0.13322368421052633, 'fraction_numerical': 0.0, 'mean_word_length': 4.0835654596100275, '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': '7069135', 'n_tokens_mistral': 561, 'n_tokens_neox': 538, 'n_words': 241}