<commit_before>"use strict";
function EventEmitter() {
  this._events = {};
}

EventEmitter.prototype.addListener = function (event, callback) {
  if (callback) {
    this._events[event] = this._events[event] || [];
    this._events[event].push(callback);
  }
};


EventEmitter.prototype.emit = function (event, data) {
  var listeners = this._events[event] || [],
      self = this;
  listeners.forEach(function (listener) {
    listener.call(self, data);
  });
};

EventEmitter.prototype.once = function (event, callback) {
  var self = this,
      wrapper = function (data) {
        self.removeListener(event, wrapper);
        callback.call(self, data);
      };
  self.addListener(event, wrapper);
};

EventEmitter.prototype.removeListener = function(event, callback) {
  this._events[event] = _.without(this._events[event], callback)
};
<commit_msg>added isRandomPointInUnitCircle<commit_after>"use strict";
function EventEmitter() {
  this._events = {};
}

EventEmitter.prototype.addListener = function (event, callback) {
  if (callback) {
    this._events[event] = this._events[event] || [];
    this._events[event].push(callback);
  }
};


EventEmitter.prototype.emit = function (event, data) {
  var listeners = this._events[event] || [],
      self = this;
  listeners.forEach(function (listener) {
    listener.call(self, data);
  });
};

EventEmitter.prototype.once = function (event, callback) {
  var self = this,
      wrapper = function (data) {
        self.removeListener(event, wrapper);
        callback.call(self, data);
      };
  self.addListener(event, wrapper);
};

EventEmitter.prototype.removeListener = function (event, callback) {
  this._events[event] = _.without(this._events[event], callback)
};

function CalcPi() {
}

CalcPi.isRandomPointInUnitCircle = function () {
  var x = Math.random(),
      y = Math.random();
  return x*x + y*y <= 1;
};
{'fraction_non_alphanumeric': 0.1547049441786284, 'fraction_numerical': 0.000531632110579479, 'mean_word_length': 3.9010416666666665, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3778555', 'n_tokens_mistral': 577, 'n_tokens_neox': 585, 'n_words': 113}