<commit_before><commit_msg>Added initial example of event bus.<commit_after><!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <title>Chassis Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="description" content="Chassis Demo."/>
    <script src="https://cdn.rawgit.com/ngnjs/chassis-lib/master/dist/chassis.min.js"></script>

  </head>

  <body class="chassis demo">

    Open the devtools.<hr/>

    <script type="text/javascript">

    var x = BUS.subscribe('test', function(){
      console.log('test handled');
    });

    var x2 = BUS.on('test', function(){
      console.log('test2 handled');
    });

    var y = BUS.on('another test', function(){
      console.log('another test handled');
    });

    var z = BUS.subscribeOnce('z', function(){
      console.log('z handled');
    });

    var zzz = BUS.subscribe('*test', function(){
      console.log('Generic tas handled');
    });
    var zzz2 = BUS.once('*test', function(){
      console.log('ONE TIME WILDCARD');
    });

    var yzzz = BUS.subscribe('test*', function(){
      console.log('Generic handled');
    });

    BUS.publish('another test');
    BUS.emit('z');
    BUS.publish('test');
    console.log('----');
    BUS.publish('another test');
    BUS.publish('z');
    BUS.emit('test');
    console.log('----');

    </script>
  </body>

</html>
{'fraction_non_alphanumeric': 0.20383036935704515, 'fraction_numerical': 0.004103967168262654, 'mean_word_length': 3.063888888888889, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 1, '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': '63542', 'n_tokens_mistral': 507, 'n_tokens_neox': 467, 'n_words': 95}