<commit_before>'use strict';

import { EventEmitter } from 'events';

/**
 * Plugin Interface
 * @class Plugin
 */
export default class {

  /**
   * Construct the plugin.
   */
  constructor() {
    // Will be injected by core
    this.app = null;

    this.plugins = null;
    this.server = null;
    this.players = null;
    this.maps = null;

    // Make our own plugin main interface an event emitter.
    // This can be used to communicate and subscribe to others plugins events.
    EventEmitter.call(this);
  }

  /**
   * Inject Core App interface into the plugin.
   *
   * @param {App} app
   */
  inject(app) {
    this.app = app;

    // Expand app into separate parts.
    // TODO: Fill in plugins, server, players, maps.
  }
}
<commit_msg>Adding injection of server client.<commit_after>'use strict';

// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';

/**
 * Plugin Interface
 * @class Plugin
 */
export default class extends EventEmitter {

  /**
   * Construct the plugin.
   */
  constructor() {
    super();

    // Will be injected by core
    this.app = null;

    this.plugins = null;
    this.server = null;
    this.players = null;
    this.maps = null;
  }

  /**
   * Inject Core App interface into the plugin.
   *
   * @param {App} app
   */
  inject(app) {
    this.app = app;

    this.server = app.server;

    // Expand app into separate parts.
    // TODO: Fill in plugins, server, players, maps.
  }
}

{'fraction_non_alphanumeric': 0.11560693641618497, 'fraction_numerical': 0.0, 'mean_word_length': 2.365010799136069, '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': '160528', 'n_tokens_mistral': 485, 'n_tokens_neox': 464, 'n_words': 166}