<commit_before>/* jslint nomen: true, plusplus: true, white: true, indent: 2, maxlen: 120 */

/**
 * Base namespace for JEZ.
 */
var JEZ = JEZ || {},
    JEZ_locale = [];

(function(win, undef) {
  'use strict';

  var doc = win.document,
      JEZ_locale = win.JEZ_locale;

  /**
   * JEZ
   *
   * @version 0.1.2
   */
  JEZ = {
    'keys': {
      'ENTER': 13,
      'ESCAPE': 27,
      'SPACE': 32,
      'END': 35,
      'HOME': 36,
      'LEFT': 37,
      'UP': 38,
      'RIGHT': 39,
      'DOWN': 40,
      'ZERO': 48,
      'NINE': 57
    },
    // Localization
    '__': function(locale) {
      var lang = JEZ_locale[locale] || {};

      return function(collocation) {
        return lang[collocation] || collocation;
      };
    },
    'inherits': function(Child, Parent) {
      var F = function() {
        return undef;
      };

      if (!win.Object.create) {
        F.prototype = Parent.prototype;
        Child.prototype = new F();
        Child.prototype.constructor = Child;
        Child.super_ = Parent.prototype;
      } else {
        Child.prototype = win.Object.create(Parent.prototype);
      }
    },
    'extend': function(obj, ext_obj) {
      var counter = arguments.length,
          prop,
          i;

      if (counter > 2) {
        for (i = 1; i < counter; i++) {
          this.extend(obj, arguments[i]);
        }
      } else {
        for (prop in ext_obj) {
          if (this.hop.call(ext_obj, prop)) {
            obj[prop] = ext_obj[prop];
          }
        }
      }

      return obj;
    },
    'nail': function() {
      return undef;
    },
    'dom': function(el, parent) {
      el = el || null;
      parent = parent || doc;

      var self = this,
          api = {
            'el': el,
            'parent': parent,
            // event
            'on': function(type, handler, selector) {
              selector = selector || false;

              var func = handler,
                  elem = this.el;

              if (selector !== false) {
                func = function (event) {
                  return handler(event, selector);
                };
              }

              if (elem !== null) {
                elem.addEventListener ?
                    elem.addEventListener(type, func, false) :
                    elem.attachEvent('on' + type, func); // IE
              }

              return this;
            },<commit_msg>rename nail to noop<commit_after>тфшд/* jslint nomen: true, plusplus: true, white: true, indent: 2, maxlen: 120 */

/**
 * Base namespace for JEZ.
 */
var JEZ = JEZ || {},
    JEZ_locale = [];

(function(win, undef) {
  'use strict';

  var doc = win.document,
      JEZ_locale = win.JEZ_locale;

  /**
   * JEZ
   *
   * @version 0.1.2
   */
  JEZ = {
    'keys': {
      'ENTER': 13,
      'ESCAPE': 27,
      'SPACE': 32,
      'END': 35,
      'HOME': 36,
      'LEFT': 37,
      'UP': 38,
      'RIGHT': 39,
      'DOWN': 40,
      'ZERO': 48,
      'NINE': 57
    },
    // Localization
    '__': function(locale) {
      var lang = JEZ_locale[locale] || {};

      return function(collocation) {
        return lang[collocation] || collocation;
      };
    },
    'inherits': function(Child, Parent) {
      var F = function() {
        return undef;
      };

      if (!win.Object.create) {
        F.prototype = Parent.prototype;
        Child.prototype = new F();
        Child.prototype.constructor = Child;
        Child.super_ = Parent.prototype;
      } else {
        Child.prototype = win.Object.create(Parent.prototype);
      }
    },
    'extend': function(obj, ext_obj) {
      var counter = arguments.length,
          prop,
          i;

      if (counter > 2) {
        for (i = 1; i < counter; i++) {
          this.extend(obj, arguments[i]);
        }
      } else {
        for (prop in ext_obj) {
          if (this.hop.call(ext_obj, prop)) {
            obj[prop] = ext_obj[prop];
          }
        }
      }

      return obj;
    },
    'noop': function() {
      return undef;
    },
    'dom': function(el, parent) {
      el = el || null;
      parent = parent || doc;

      var self = this,
          api = {
            'el': el,
            'parent': parent,
            // event
            'on': function(type, handler, selector) {
              selector = selector || false;

              var func = handler,
                  elem = this.el;

              if (selector !== false) {
                func = function (event) {
                  return handler(event, selector);
                };
              }

              if (elem !== null) {
                elem.addEventListener ?
                    elem.addEventListener(type, func, false) :
                    elem.attachEvent('on' + type, func); // IE
              }

              return this;
            },
{'fraction_non_alphanumeric': 0.14303482587064675, 'fraction_numerical': 0.01285240464344942, 'mean_word_length': 1.3909811694747274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5027700', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1447, 'n_words': 353}