<commit_before>var Event = require('../event')
var expect = require('chai').expect

describe('type', function () {
  it('should expose the event constructor', function () {
    expect(Event).to.be.a('function')
  })

  it('should expose the VERSION property', function () {
    expect(Event.VERSION).to.be.a('string')
  })

  describe('event listener', function () {
    var bus = null, count = 0

    function increment() { count += 1 }

    before(function () {
      bus = new Event
    })

    it('should add a event listener', function () {
      bus.on('test', increment)<commit_msg>chore(test): update test<commit_after>var Event = require('../event')
var expect = require('chai').expect

describe('event', function () {
  it('should expose the event constructor', function () {
    expect(Event).to.be.a('function')
  })

  it('should expose the VERSION property', function () {
    expect(Event.VERSION).to.be.a('string')
  })

  describe('listeners', function () {
    var bus = null, count = 0

    function increment() { count += 1 }

    before(function () {
      bus = new Event
    })

    it('should add a event listener', function () {
      bus.on('test', increment)
{'fraction_non_alphanumeric': 0.16624472573839663, 'fraction_numerical': 0.0033755274261603376, 'mean_word_length': 3.3284671532846715, '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': '2702771', 'n_tokens_mistral': 357, 'n_tokens_neox': 341, 'n_words': 92}