<commit_before>var Limbo = (function(slice, prototype, undefined) {
  function isObject(o) { return o && typeof o === 'object'; }
  function isFunction(f) { return f && typeof f === 'function'; }
  function Limbo(_superclass, definition) {
    function Noop() {}

    if (definition === undefined) {
      definition = _superclass;
      _superclass = Object;
    }
    else if (isObject(_superclass[prototype])) {
      Noop[prototype] = new _superclass;
    }

    var proto = Noop[prototype]
      , _super = _superclass[prototype]
      , extensions = {}
    ;

    proto.constructor = Noop;

    if (isFunction(definition)) {
      extensions = definition.call(Noop, proto, _super, Noop, _superclass);
    }
    else if (isObject(definition)) {
      extensions = definition;
    }

    if (isObject(extensions)) {
      for (var ext in extensions) {
        if (extensions.hasOwnProperty(ext)) {
          proto[ext] = extensions[ext];
        }
      }
    }

    return Noop;
  }

  Limbo.create = function create(klass /*, args... */) {
    var args = slice.call(arguments, 1)
      , obj = new klass
    ;

    if (isFunction(obj.init)) obj.init.apply(obj, args);

    return obj;
  };

  return Limbo;
})([].slice, 'prototype');
<commit_msg>hasOwnProperty safety<commit_after>var Limbo = (function(slice, prototype, hasOwnProperty, undefined) {
  function isObject(o) { return o && typeof o === 'object'; }
  function isFunction(f) { return f && typeof f === 'function'; }
  function Limbo(_superclass, definition) {
    function Noop() {}

    if (definition === undefined) {
      definition = _superclass;
      _superclass = Object;
    }
    else if (isObject(_superclass[prototype])) {
      Noop[prototype] = new _superclass;
    }

    var proto = Noop[prototype]
      , _super = _superclass[prototype]
      , extensions = {}
    ;

    proto.constructor = Noop;

    if (isFunction(definition)) {
      extensions = definition.call(Noop, proto, _super, Noop, _superclass);
    }
    else if (isObject(definition)) {
      extensions = definition;
    }

    if (isObject(extensions)) {
      for (var ext in extensions) {
        if (hasOwnProperty.call(extensions, ext)) {
          proto[ext] = extensions[ext];
        }
      }
    }

    return Noop;
  }

  Limbo.create = function create(klass /*, args... */) {
    var args = slice.call(arguments, 1)
      , obj = new klass
    ;

    if (isFunction(obj.init)) obj.init.apply(obj, args);

    return obj;
  };

  return Limbo;
})([].slice, 'prototype', ({}).hasOwnProperty);

{'fraction_non_alphanumeric': 0.1401174168297456, 'fraction_numerical': 0.0007827788649706458, 'mean_word_length': 2.69364161849711, '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': '7167689', 'n_tokens_mistral': 796, 'n_tokens_neox': 782, 'n_words': 188}