<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>

  <script src="../dist/core.js"></script>
  <script>
    Core.register('test', function(sandbox) {

    });

    Core.start('test')
    Core.stop('test')

    Core.register('tweet-list', function(sandbox) {
      return {
        init: function() {
          sandbox.listen('new-tweet', this.handleTweet, this);
        },

        handleTweet: function(data) {
          console.log(this);
          console.log(data);
        },

        destroy: function() {
          console.log('destroy tweet');
        }
      };
    });

    Core.register('tweet', function(sandbox) {
      return {
        init: function() {
          setInterval(function() {
            sandbox.notify({
              type: 'new-tweet',
              data: {
                author: '<NAME>',
                text: 'Hey, this is core.js, and is really cool'
              }
            });
          }, 15000);
        },

        destroy: function() {
          console.log('destroy search');
        }
      };
    });

    Core.start('tweet-list');

    Core.startAll();
  </script>
</body>
</html><commit_msg>update example<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>

  <script src="../dist/core.js"></script>
  <script>
    Core.register('tweet-list', function(sandbox) {
      return {
        init: function() {
          sandbox.listen('new-tweet', this.handleTweet, this);
        },

        handleTweet: function(data) {
          console.log(this);
          console.log(data);
        },

        destroy: function() {
          console.log('destroy tweet');
        }
      };
    });

    Core.register('tweet', function(sandbox) {
      return {
        init: function() {
          setInterval(function() {
            sandbox.notify({
              type: 'new-tweet',
              data: {
                author: '<NAME>',
                text: 'Hey, this is core.js, and is really cool'
              }
            });
          }, 500);
        },

        destroy: function() {
          console.log('destroy search');
        }
      };
    });

    Core.start('tweet-list');

    Core.startAll();

    setTimeout(function() {
      Core.stop('tweet-list');
    }, 5000);
  </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.169237182159233, 'fraction_numerical': 0.005835764902042517, 'mean_word_length': 1.6726057906458798, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '1411721', 'n_tokens_mistral': 756, 'n_tokens_neox': 712, 'n_words': 127}