<commit_before>
;(function(){
  var binder = window.addEventListener ? 'addEventListener' : 'attachEvent'
    , unbinder = window.removeEventListener ? 'removeEventListener' : 'detachEvent'
    , prefix = binder !== 'addEventListener' ? 'on' : '';

  function bind(el, type, fn, capture) {
    el[binder](prefix + type, fn, capture || false);
    return fn;
  }

  function unbind(el, type, fn, capture) {
    el[unbinder](prefix + type, fn, capture || false);
    return fn;
  }

  function EventManager(el, obj) {
    if (!(this instanceof EventManager)) return new EventManager(el, obj);
    if (!el) throw new Error('Element missing');
    // TODO make this optional (for regular event binding)
    if (!obj) throw new Error('Object missing');
    this.el = el;
    this.obj = obj;
  }

  EventManager.prototype.bind = function(evt, fn) {
    var obj = this.obj
      , el = this.el;
      // , args = [].slice.call(arguments, 2);

    function cb(e) {
      // var listOfArgs = [e].concat(args);
      // fn.apply(obj, listOfArgs);
      fn.call(obj, e);
    }

    bind(el, evt, cb);
    return cb;
  };

  EventManager.prototype.unbind = function(evt, fn) {
    var obj = this.obj
      , el = this.el;

    function cb(e) {
      // var listOfArgs = [e].concat(args);
      // fn.apply(obj, listOfArgs);
      fn.call(obj, e);
    }

    unbind(el, evt, cb);
    return cb;
  };

  window.EventManager = EventManager;
})();
<commit_msg>remove commented code<commit_after>
;(function(){
  var binder = window.addEventListener ? 'addEventListener' : 'attachEvent'
    , unbinder = window.removeEventListener ? 'removeEventListener' : 'detachEvent'
    , prefix = binder !== 'addEventListener' ? 'on' : '';

  function bind(el, type, fn, capture) {
    el[binder](prefix + type, fn, capture || false);
    return fn;
  }

  function unbind(el, type, fn, capture) {
    el[unbinder](prefix + type, fn, capture || false);
    return fn;
  }

  function EventManager(el, obj) {
    if (!(this instanceof EventManager)) return new EventManager(el, obj);
    if (!el) throw new Error('Element missing');
    // TODO make this optional (for regular event binding)
    if (!obj) throw new Error('Object missing');
    this.el = el;
    this.obj = obj;
  }

  EventManager.prototype.bind = function(evt, fn) {
    var obj = this.obj
      , el = this.el;

    function cb(e) {
      fn.call(obj, e);
    }

    bind(el, evt, cb);
    return cb;
  };

  EventManager.prototype.unbind = function(evt, fn) {
    var obj = this.obj
      , el = this.el;

    function cb(e) {
      fn.call(obj, e);
    }

    unbind(el, evt, cb);
    return cb;
  };

  window.EventManager = EventManager;
})();

{'fraction_non_alphanumeric': 0.1524730383042023, 'fraction_numerical': 0.0003718854592785422, 'mean_word_length': 2.8156028368794326, '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': '2527403', 'n_tokens_mistral': 890, 'n_tokens_neox': 872, 'n_words': 235}