<commit_before>const util = require('util');
const Event = require('../src/event').Event;

module.exports.JoinEvent = (function(superclass) {
  util.inherits(JoinEvent, superclass);
  function JoinEvent(channel, username) {
    var e = superclass.constructor.apply(this, {channel: channel, username: username});
    e.prototype.eventType = "twitch-chanel-join";
    return e;
  }
  return JoinEvent;
})(Event);

module.exports.PartEvent = (function(superclass) {
  util.inherits(PartEvent, superclass);
  function PartEvent(channel, username) {
    var e = superclass.constructor.apply(this, {channel: channel, username: username});
    e.prototype.eventType = "twitch-channel-part";
    return e;
  }
  return PartEvent;
})(Event);

module.exports.ChatEvent = (function(superclass) {
  util.inherits(ChatEvent, superclass);
  function ChatEvent(channel, username, message) {
    var e = superclass.constructor.apply(this, {channel: channel, username: username, message:message});
    e.prototype.eventType = "twitch-channel-chat";
    return e;
  }
  return ChatEvent;
})(Event);

module.exports.ActionEvent = (function(superclass) {
  util.inherits(ActionEvent, superclass);
  function ActionEvent(channel, username, message) {
    var e = superclass.constructor.apply(this, {channel: channel, username: username, message:message});
    e.prototype.eventType = "twitch-channel-action";
    return e;
  }
  return ActionEvent;
})(Event);

module.exports.HostEvent = (function(superclass) {
  util.inherits(HostEvent, superclass);
  function HostEvent(channel, username, count) {
    var e = superclass.constructor.apply(this, {channel: channel, username: username, viewers:count});
    e.prototype.eventType = "twitch-channel-host";
    return e;
  }
  return HostEvent;
})(Event);
<commit_msg>more event cleanup<commit_after>var Entity = require('../src/entity').Entity;
const util = require('util');

Event = (function(superclass) {
  util.inherits(Event, superclass);
  function Event(type, opts) {
    superclass.constructor.apply(this, uuid.v4(), opts);
  }
  Event.prototype.toObject = function() {
    return superclass.toObject();
  }
  return Event;
})(Entity);

module.exports.JoinEvent = (function(superclass) {
  util.inherits(JoinEvent, superclass);
  function JoinEvent(channel, username) {
    return superclass.constructor.apply(this, "twitch-chanel-join", {channel: channel, username: username});
  }
  return JoinEvent;
})(Event);

module.exports.PartEvent = (function(superclass) {
  util.inherits(PartEvent, superclass);
  function PartEvent(channel, username) {
    return superclass.constructor.apply(this, "twitch-chanel-part", {channel: channel, username: username});
  }
  return PartEvent;
})(Event);

module.exports.ChatEvent = (function(superclass) {
  util.inherits(ChatEvent, superclass);
  function ChatEvent(channel, username, message) {
    return superclass.constructor.apply(this, "twitch-channel-chat", {channel: channel, username: username, message:message});
  }
  return ChatEvent;
})(Event);

module.exports.ActionEvent = (function(superclass) {
  util.inherits(ActionEvent, superclass);
  function ActionEvent(channel, username, message) {
    return superclass.constructor.apply(this, "twitch-channel-action", {channel: channel, username: username, message:message});
  }
  return ActionEvent;
})(Event);

module.exports.HostEvent = (function(superclass) {
  util.inherits(HostEvent, superclass);
  function HostEvent(channel, username, count) {
    return superclass.constructor.apply(this, "twitch-channel-host", {channel: channel, username: username, viewers:count});
  }
  return HostEvent;
})(Event);

{'fraction_non_alphanumeric': 0.14113455741298986, 'fraction_numerical': 0.0002740476842970677, 'mean_word_length': 5.260720411663808, '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': '7627002', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1087, 'n_words': 233}