<commit_before>================================================================================
Fat Controller
================================================================================

Fat Controller is a JS implementation of a publish-subscribe service.
Using a pub-sub service loosens coupling between system modules.

 - `Basic Usage`_
 - `Subscribe`_
 - `Publish`_
 - `Unsubscribe`_
 - `Registry`_

--------------------------------------------------------------------------------
Basic Usage
--------------------------------------------------------------------------------

Fat Controller's two most import functionalities are publishing messages
(```fc.publish```) and subscribing to messages (```fc.subscribe```).

```javascript
fc.subscribe('delicious_pie_has_been_baked', function() {
	console.log('Yum, delicious pie!')
});

fc.publish('delicious_pie_has_been_baked');
```

In the above example, ```fc.subscribe``` is used to subscribe to messages about
baking pies and associates them with our callback.
```fc.publish``` then notifies Fat Controller that the pie is baked, which
causes the callback to be executed and our message is logged.

--------------------------------------------------------------------------------
Subscribe
--------------------------------------------------------------------------------
// 	fc.publish(message[, data])
// 		Publish :message to all subscribers.

--------------------------------------------------------------------------------
Publish
--------------------------------------------------------------------------------
// 	fc.subscribe(message, callback[, thisArg])
// 		Listen for :message, calling :callback when the signal is received.

--------------------------------------------------------------------------------
Unsubscribe
--------------------------------------------------------------------------------
// 	fc.unsubscribe(message)
// 		Remove any subscriber listening for :message.

--------------------------------------------------------------------------------
Registry
--------------------------------------------------------------------------------
// 	fc.registry()<commit_msg>Improving the README.<commit_after>================================================================================
Fat Controller
================================================================================

Fat Controller is a JS implementation of a publish-subscribe service.
Using a pub-sub service loosens coupling between system modules.

 - `Basic Usage`_
 - `Subscribe`_
 - `Publish`_
 - `Unsubscribe`_
 - `Registry`_

--------------------------------------------------------------------------------
Basic Usage
--------------------------------------------------------------------------------

Fat Controller's two most import functionalities are publishing messages
(``fc.publish``) and subscribing to messages (``fc.subscribe``).

::
  fc.subscribe('delicious_pie_has_been_baked', function() {
	console.log('Yum, delicious pie!')
  });

  fc.publish('delicious_pie_has_been_baked');

In the above example, ``fc.subscribe`` is used to subscribe to messages about
baking pies and associates them with our callback.
``fc.publish`` then notifies Fat Controller that the pie is baked, which
causes the callback to be executed and our message is logged.

--------------------------------------------------------------------------------
Subscribe
--------------------------------------------------------------------------------
// 	fc.publish(message[, data])
// 		Publish :message to all subscribers.

--------------------------------------------------------------------------------
Publish
--------------------------------------------------------------------------------
// 	fc.subscribe(message, callback[, thisArg])
// 		Listen for :message, calling :callback when the signal is received.

--------------------------------------------------------------------------------
Unsubscribe
--------------------------------------------------------------------------------
// 	fc.unsubscribe(message)
// 		Remove any subscriber listening for :message.

--------------------------------------------------------------------------------
Registry
--------------------------------------------------------------------------------
// 	fc.registry()
{'fraction_non_alphanumeric': 0.5054714784633294, 'fraction_numerical': 0.0, 'mean_word_length': 1.1007334963325184, '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': '1908299', 'n_tokens_mistral': 787, 'n_tokens_neox': 726, 'n_words': 252}