<commit_before>// Copyright (C) 2011-2012
// <NAME>, Z Vector Inc.
//
// [`LICENSE`](https://github.com/nickfargo/omicron/blob/master/LICENSE) MIT.
//
// Omicron (**“O”**) is a small JavaScript library of functions and tools that
// assist with:
//
// * Object manipulation and differential operations
// * Prototypal inheritance
// * Selected general tasks: safe typing, functional iteration, etc.
//
// [omicronjs.org](http://omicronjs.org/)
// 
// <a class="icon-large icon-octocat"
//    href="http://github.com/nickfargo/omicron/"></a>

;( function ( undefined ) {

var global = this;

var O = {
    VERSION: '0.1.9',
    env: {
        server: typeof module !== 'undefined' &&
                typeof require !== 'undefined' &&
                !!module.exports,
        client: typeof window !== 'undefined' && window === global,
        debug:  false
    }
};


// #### [NIL](#nil)
//
// Unique object reference. Used by [`edit`](#edit) and the related
// differential operation functions, where an object with a property whose
// value is set to `NIL` indicates the absence or deletion of the
// corresponding property on an associated operand.
var NIL = O.NIL = ( function () { function NIL () {} return new NIL; }() );

// #### [toString](#to-string)
//
var toString = O.toString =
    Object.prototype.toString;
    
// #### [hasOwn](#has-own)
//
var hasOwn = O.hasOwn =
    Object.prototype.hasOwnProperty;
    
// #### [trim](#trim)
//
var trim = O.trim =
    String.prototype.trim ?
        function ( text ) {
            return text == null ? '' : String.prototype.trim.call( text );
        } :
        function ( text ) {
            return text == null ?
                '' :
                text.toString()
                    .replace( /^\s+/, '' )
                    .replace( /\s+$/, '' );
        };
    
// #### [slice](#slice)
//
var slice = O.slice =
    Array.prototype.slice;


// #### [noConflict](#no-conflict)
//
O.noConflict = ( function () {
    var original = global.O;
    return function () {
        global.O = original;
        return this;
    };
}() );

// #### [noop](#noop)
//
// General-purpose empty function.
function noop () {}
O.noop = noop;

// #### [getThis](#get-this)
//
// Like [`noop`](#noop), except suited for substitution on methods that would
// normally return their context object.
function getThis () { return this; }
O.getThis = getThis;

// Calls the specified native function if it exists and returns its result; if
// no such function exists on `obj` as registered in `__native.fn`, the unique
// [`NIL`](#nil) is returned (as opposed to `null` or `undefined`, either of
// which may be a valid result from the native function itself).
function __native ( item, obj /* , ... */ ) {
    var n = __native.fn[ item ];
    return n && obj[ item ] === n ?
        n.apply( obj, slice.call( arguments, 2 ) ) :
        NIL;
}
__native.fn = {
    forEach: Array.prototype.forEach,
    indexOf: Array.prototype.indexOf
};

// #### [type](#type)
//
// A browser-safe universal alternative to `typeof` that checks against
// `Object.prototype.toString`.

var type = ( function () {
    var map = {};
    var types = 'Arguments Array Boolean Date Error Function Number Object \
                 RegExp String';
    forEach( types.split(/\s+/), function ( name ) {
        map[ "[object " + name + "]" ] = name.toLowerCase();
    });
    function type ( obj ) {
        if ( obj == null ) return String( obj );
        return map[ toString.call( obj ) ] || 'object';
    }
    return type;
}() );
O.type = type;

// #### [isBoolean](#is-boolean)
function isBoolean ( obj ) { return typeof obj === 'boolean'; }
O.isBoolean = isBoolean;

// #### [isString](#is-string)
function isString ( obj ) { return typeof obj === 'string'; }
O.isString = isString;

// #### [isNumber](#is-number)
function isNumber ( n ) { return !isNaN( parseFloat( n ) ) && isFinite( n ); }
O.isNumber = isNumber;

// #### [isArray](#is-array)
function isArray ( obj ) {
    return toString.call( obj ) === '[object Array]';
}
O.isArray = isArray;

// #### [isFunction](#is-function)
function isFunction ( obj ) { return typeof obj === 'function'; }
O.isFunction = isFunction;

// #### [isError](#is-error)
function isError ( e ) {
    return typeof e === 'object' && toString.call( e ) === '[object Error]';
}
O.isError = isError;

// #### [isPlainObject](#is-plain-object)
//<commit_msg>add requires<commit_after>// Copyright (C) 2011-2012
// <NAME>, Z Vector Inc.
//
// [`LICENSE`](https://github.com/nickfargo/omicron/blob/master/LICENSE) MIT.
//
// Omicron (**“O”**) is a small JavaScript library of functions and tools that
// assist with:
//
// * Object manipulation and differential operations
// * Prototypal inheritance
// * Selected general tasks: safe typing, functional iteration, etc.
//
// [omicronjs.org](http://omicronjs.org/)
// 
// <a class="icon-large icon-octocat"
//    href="http://github.com/nickfargo/omicron/"></a>

;( function ( undefined ) {

var global = this;

var O = {
    VERSION: '0.1.9',
    env: {
        server: typeof module !== 'undefined' &&
                typeof require !== 'undefined' &&
                !!module.exports,
        client: typeof window !== 'undefined' && window === global,
        debug:  false
    }
};


// #### [NIL](#nil)
//
// Unique object reference. Used by [`edit`](#edit) and the related
// differential operation functions, where an object with a property whose
// value is set to `NIL` indicates the absence or deletion of the
// corresponding property on an associated operand.
var NIL = O.NIL = ( function () { function NIL () {} return new NIL; }() );

// #### [toString](#to-string)
//
var toString = O.toString =
    Object.prototype.toString;
    
// #### [hasOwn](#has-own)
//
var hasOwn = O.hasOwn =
    Object.prototype.hasOwnProperty;
    
// #### [trim](#trim)
//
var trim = O.trim =
    String.prototype.trim ?
        function ( text ) {
            return text == null ? '' : String.prototype.trim.call( text );
        } :
        function ( text ) {
            return text == null ?
                '' :
                text.toString()
                    .replace( /^\s+/, '' )
                    .replace( /\s+$/, '' );
        };
    
// #### [slice](#slice)
//
var slice = O.slice =
    Array.prototype.slice;


// #### [noConflict](#no-conflict)
//
O.noConflict = ( function () {
    var original = global.O;
    return function () {
        global.O = original;
        return this;
    };
}() );

// #### [noop](#noop)
//
// General-purpose empty function.
function noop () {}
O.noop = noop;

// #### [getThis](#get-this)
//
// Like [`noop`](#noop), except suited for substitution on methods that would
// normally return their context object.
function getThis () { return this; }
O.getThis = getThis;

// Calls the specified native function if it exists and returns its result; if
// no such function exists on `obj` as registered in `__native.fn`, the unique
// [`NIL`](#nil) is returned (as opposed to `null` or `undefined`, either of
// which may be a valid result from the native function itself).
function __native ( item, obj /* , ... */ ) {
    var n = __native.fn[ item ];
    return n && obj[ item ] === n ?
        n.apply( obj, slice.call( arguments, 2 ) ) :
        NIL;
}
__native.fn = {
    forEach: Array.prototype.forEach,
    indexOf: Array.prototype.indexOf
};

// #### [type](#type)
//
// A browser-safe universal alternative to `typeof` that checks against
// `Object.prototype.toString`.

var type = ( function () {
    var map = {};
    var types = 'Arguments Array Boolean Date Error Function Number Object \
                 RegExp String';
    forEach( types.split(/\s+/), function ( name ) {
        map[ "[object " + name + "]" ] = name.toLowerCase();
    });
    function type ( obj ) {
        if ( obj == null ) return String( obj );
        return map[ toString.call( obj ) ] || 'object';
    }
    return type;
}() );
O.type = type;

// #### [isBoolean](#is-boolean)
function isBoolean ( obj ) { return typeof obj === 'boolean'; }
O.isBoolean = isBoolean;

// #### [isString](#is-string)
function isString ( obj ) { return typeof obj === 'string'; }
O.isString = isString;

// #### [isNumber](#is-number)
function isNumber ( n ) { return !isNaN( parseFloat( n ) ) && isFinite( n ); }
O.isNumber = isNumber;

// #### [isArray](#is-array)
function isArray ( obj ) {
    return toString.call( obj ) === '[object Array]';
}
O.isArray = isArray;

// #### [isFunction](#is-function)
function isFunction ( obj ) { return typeof obj === 'function'; }
O.isFunction = isFunction;

// #### [isError](#is-error)
//
// > Requires: `toString`

function isError ( e ) {
    return typeof e === 'object' && toString.call( e ) === '[object Error]';
}
O.isError = isError;

// #### [isPlainObject](#is-plain-object)
//
{'fraction_non_alphanumeric': 0.18091473743647657, 'fraction_numerical': 0.0027103331451157537, 'mean_word_length': 2.5509222133119485, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '163689', 'n_tokens_mistral': 2758, 'n_tokens_neox': 2693, 'n_words': 781}