<commit_before>// class.js@v0.0.4, MIT licensed. https://github.com/adriancmiranda/class.js
!function(t,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?n(t,!0):function(t){if(!t.document)throw new Error("Class requires a window with a document");return n(t)}:n(t)}("undefined"!=typeof window?window:this,function(t,n){"use strict";function r(){}function e(t){var n=++J+"";return t?t+n:n}function i(t,n){for(var r in n)t[r]=n[r];return t}function o(t){var n,r,e;if(!c(t))return t;for(e=1,length=arguments.length;e<length;e++){n=arguments[e];for(var r in n)T.call(n,r)&&(t[r]=n[r])}return t}function u(t,n){if(t===!1)return"Boolean";if(""===t)return"String";if(0===t)return"Number";if(t&&t.constructor){var r=(t.constructor.toString()||R.apply(t)).replace(/^.*function([^\s]*|[^\(]*)\([^\x00]+$/,"$1").replace(/^(\[object\s)|]$/g,"").replace(/\s+/,"")||"Object";return n===!0||/^(Boolean|RegExp|Number|String|Array|Date)$/.test(r)?r:"Object"}return t}function a(n,r){var e=typeof n;return n===!1?"boolean":""===n?"string":(n&&"object"===e&&(e=u(n,r),e=String(e).toLowerCase()),"number"===e&&!t.isNaN(n)&&t.isFinite(n)?r===!0&&t.parseFloat(n)===t.parseInt(n,10)?0>n?"int":"uint":"number":n?e:n)}function c(t){return"object"===a(t)}function s(t){for(var n in t)if(T.call(t,n))return!1;return!0}function f(t){return"string"===a(t)}function l(t){return"number"===a(t)}function p(t){return"uint"===a(t,!0)}function g(t){return"int"===a(t,!0)}function h(t){return"date"===a(t)}function y(t){return"array"===a(t)}function m(t){if(!a(t)||j(t))return!1;var n=t.length;return 1===t.nodeType&&n?!0:f(t)||y(t)||0===n||p(n)&&n>0&&n-1 in t}function b(t){return"function"===a(t)}function d(t){return"regexp"===a(t)}function v(t){return"boolean"===a(t)}function w(t){return!(!t||!(t.nodeName||b(t.on)&&b(t.find)&&b(t.eq)&&b(t.css)))}function O(t){return"file"===a(t,!0)}function j(t){return t&&t.document&&t.location&&t.alert&&t.setInterval&&t.setTimeout}function S(n,r){if(n=t.parseFloat(n),n=t.isNaN(n)||!t.isFinite(n)?0:n,r)try{n=t.parseFloat(n.toFixed(r))}catch(e){r=Math.pow(10,r),n=t.parseInt(n*r,10)/r}return n}function E(n){return 0|t.parseInt(n,10)}function N(t){return t=E(t),0>t?0:t}function A(t){var n,r;if(!a(t))return[];if("toArray"in Object(t))return t.toArray();for(n=t.length||0,r=new Array(n);n--;)r[n]=t[n];return r}function F(t){var n,r,e=[];if(!c(t))return e;for(r in t)T.call(t,r)&&e.push(r);if(C)for(n=0;n<B.length;n++)T.call(t,B[n])&&e.push(B[n]);return e}function x(t,n,r){var e,i,o;if(a(t))if(W&&t.forEach===W)t.forEach(n,r);else if(t.length===+t.length){for(e=0,o=t.length;o>e;e++)if(n.call(r,t[e],e,t)===D)return}else for(i=(G||i)(t),e=0,o=i.length;o>e;e++)if(n.call(r,t[i[e]],i[e],t)===D)return}function I(t,n){var r,e;for(r=t.length,e=n.length;e--;)t[r+e]=n[e];return t}function $(t,n){var e,i;if(H&&t.bind===H)return H.apply(t,U.call(arguments,1));if(!b(t))throw new TypeError;return e=U.call(arguments,2),i=function(){var o,u;return this instanceof i?(r.prototype=t.prototype,o=new r,r.prototype=null,u=t.apply(o,e.concat(U.call(arguments))),Object(u)===u?u:o):t.apply(n,e.concat(U.call(arguments)))}}function k(t){var n=U.call(arguments,1);if(0===n.length)throw new Error("bindAll must be passed function names");return x(n,function(n){t[n]=$(t[n],t)}),t}function z(){return{extend:o,isEmpty:s,keys:G||F}}function q(){var t={};return H||(t.bind=function(t){return $(this,t,U.call(arguments,1))}),t.argumentNames=function(){var t=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return 1!==t.length||t[0]?t:[]},t.wrap=function(t){var n=this;return function(){var r=I([n.bind(this)],arguments);return t.apply(this,r)}},t}var B,C,D,L,M,P,T,R,U,W,G,H,J,K="undefined";B=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=function(){for(var t in{toString:1})if("toString"===t)return!1;return!0},C=C(),J=0,D={},L=Array.prototype,P=Function.prototype,M=Object.prototype,T=M.hasOwnProperty,R=M.toString,U=L.slice,W=L.forEach,G=Object.keys,H=P.bind,i(Object,z()),i(P,q());var Q=function(){function t(){}function n(){function n(){"function"===a(this.initialize)&&this.initialize.apply(this,arguments)}var e,o,u;for(u=-1,e=null,o=A(arguments),"function"===a(o[0])&&(e=o.shift()),i(n,Q.Methods),n.superclass=e,n.subclasses=[],e&&(t.prototype=e.prototype,n.prototype=new t,e.subclasses.push(n));++u<o.length;)n.implement(o[u]);return a(n.prototype.initialize)||(n.prototype.initialize=r),n.prototype.constructor=n,n}function e(t){var n,r,e,i,o,u;for(n=this.superclass&&this.superclass.prototype,r=Object.keys(t),e=-1,C&&(t.toString!=Object.prototype.toString&&r.push("toString"),t.valueOf!=Object.prototype.valueOf&&r.push("valueOf"));++e<r.length;)i=r[e],o=t[i],n&&"function"===a(o)&&/\$super/g.test(o.argumentNames()[0])&&(u=o,o=function(t){return function(){return n[t].apply(this,arguments)}}(i).wrap(u),o.valueOf=function(t){return function(){return t.valueOf.call(t)}}(u),o.toString=function(t){return function(){return t.toString.call(t)}}(u)),this.prototype[i]=o;return this}return{create:n,Methods:{extend:i,implement:e}}}();return Q.getDefinitionName=u,Q.typeOf=a,Q.uniqueId=e,Q.bind=$,Q.bindAll=k,Q.isObject=c,Q.isString=f,Q.isNumber=l,Q.isUint=p,Q.isInt=g,Q.isDate=h,Q.isArray=y,Q.isArrayLike=m,Q.isFunction=b,Q.isRegExp=d,Q.isBoolean=v,Q.isElement=w,Q.isFile=O,Q.isWindow=j,Q.toFloat=S,Q.toUint=N,Q.toArray=A,Q.toInt=E,typeof n===K&&(t.Class=Q),Q});<commit_msg>Update class.min.js<commit_after>// class.js@v0.0.4, MIT licensed. https://github.com/adriancmiranda/class.js
(function(global,factory){'use strict';if(typeof module==='object'&&typeof module.exports==='object'){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error('Class requires a window with a document')}return factory(w)}}else{factory(global)}}(typeof window!=='undefined'?window:this,function(window,noGlobal){'use strict';var strundefined=typeof undefined;var DONT_ENUMS,IS_DONTENUM_BUGGY,breaker,ArrayProto,ObjProto,FuncProto,hasOwnProperty,toString,slice,nativeForEach,nativeKeys,nativeBind,uidCounter;DONT_ENUMS=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'];IS_DONTENUM_BUGGY=function(){for(var property in{toString:1}){if(property==='toString'){return false}}return true};IS_DONTENUM_BUGGY=IS_DONTENUM_BUGGY();uidCounter=0;breaker={};ArrayProto=Array.prototype;FuncProto=Function.prototype;ObjProto=Object.prototype;hasOwnProperty=ObjProto.hasOwnProperty;toString=ObjProto.toString;slice=ArrayProto.slice;nativeForEach=ArrayProto.forEach;nativeKeys=Object.keys;nativeBind=FuncProto.bind;function Ctor(){}function uniqueId(prefix){var id=++uidCounter+'';return prefix?prefix+id:id}function apply(object,source){for(var property in source){object[property]=source[property]}return object}function toArray(iterable){var length,results;if(!typeOf(iterable)){return[]}if('toArray'in Object(iterable)){return iterable.toArray()}length=iterable.length||0;results=new Array(length);while(length--){results[length]=iterable[length]}return results}function extend(object){var source,property,id,params=toArray(arguments);if(!isObject(object)){return object}for(id=1;id<params.length;id++){source=params[id];for(var property in source){if(hasOwnProperty.call(source,property)){object[property]=source[property]}}}return object}function getDefinitionName(value,strict){if(value===false){return'Boolean'}if(value===''){return'String'}if(value===0){return'Number'}if(value&&value.constructor){var name=(value.constructor.toString()||toString.apply(value)).replace(/^.*function([^\s]*|[^\(]*)\([^\x00]+$/,'$1').replace(/^(\[object\s)|\]$/g,'').replace(/\s+/,'')||'Object';if(strict!==true){if(!(/^(Boolean|RegExp|Number|String|Array|Date)$/.test(name))){return'Object'}}return name}return value}function typeOf(value,strict){var type=typeof value;if(value===false){return'boolean'}if(value===''){return'string'}if(value&&type==='object'){type=getDefinitionName(value,strict);type=String(type).toLowerCase()}if(type==='number'&&!window.isNaN(value)&&window.isFinite(value)){if(strict===true&&window.parseFloat(value)===window.parseInt(value,10)){return value<0?'int':'uint'}return'number'}return value?type:value}function isObject(value){return typeOf(value)==='object'}function isEmptyObject(value){for(var property in value){if(hasOwnProperty.call(value,property)){return false}}return true}function isString(value){return typeOf(value)==='string'}function isNumber(value){return typeOf(value)==='number'}function isUint(value){return typeOf(value,true)==='uint'}function isInt(value){return typeOf(value,true)==='int'}function isDate(value){return typeOf(value)==='date'}function isArray(value){return typeOf(value)==='array'}function isArrayLike(value){if(!typeOf(value)||isWindow(value)){return false}var length=value.length;if(value.nodeType===1&&length){return true}return isString(value)||isArray(value)||length===0||isUint(length)&&length>0&&length-1 in value}function isFunction(value){return typeOf(value)==='function'}function isRegExp(value){return typeOf(value)==='regexp'}function isBoolean(value){return typeOf(value)==='boolean'}function isElement(value){return!!(value&&(value.nodeName||isFunction(value.on)&&isFunction(value.find)&&isFunction(value.eq)&&isFunction(value.css)))}function isFile(value){return typeOf(value,true)==='file'}function isWindow(value){return value&&value.document&&value.location&&value.alert&&value.setInterval&&value.setTimeout}function toFloat(value,ceiling){value=window.parseFloat(value);value=window.isNaN(value)||!window.isFinite(value)?0:value;if(ceiling){try{value=window.parseFloat(value.toFixed(ceiling))}catch(error){ceiling=Math.pow(10,ceiling);value=window.parseInt(value*ceiling,10)/ceiling}}return value}function toInt(value){return 0|window.parseInt(value,10)}function toUint(value){value=toInt(value);return value<0?0:value}function keys(object){var id,property,results=[];if(!isObject(object)){return results}for(property in object){if(hasOwnProperty.call(object,property)){results.push(property)}}if(IS_DONTENUM_BUGGY){for(id=0;id<DONT_ENUMS.length;id++){if(hasOwnProperty.call(object,DONT_ENUMS[id])){results.push(DONT_ENUMS[id])}}}return results}function each(obj,iterator,context){var id,keys,length;if(!typeOf(obj)){return}if(nativeForEach&&obj.forEach===nativeForEach){obj.forEach(iterator,context)}else if(obj.length===+obj.length){for(id=0,length=obj.length;id<length;id++){if(iterator.call(context,obj[id],id,obj)===breaker){return}}}else{keys=(nativeKeys||keys)(obj);for(id=0,length=keys.length;id<length;id++){if(iterator.call(context,obj[keys[id]],keys[id],obj)===breaker){return}}}}function update(list,args){var arrayLength,length;arrayLength=list.length;length=args.length;while(length--){list[arrayLength+length]=args[length]}return list}function bindFn(fn,context){var args,bound;if(nativeBind&&fn.bind===nativeBind){return nativeBind.apply(fn,slice.call(arguments,1))}if(!isFunction(fn)){throw new TypeError()}args=slice.call(arguments,2);bound=function(){var self,result;if(!(this instanceof bound)){return fn.apply(context,args.concat(slice.call(arguments)))}Ctor.prototype=fn.prototype;self=new Ctor();Ctor.prototype=null;result=fn.apply(self,args.concat(slice.call(arguments)));if(Object(result)===result){return result}return self};return bound}function bindAll(context){var methods=slice.call(arguments,1);if(methods.length===0){throw new Error('bindAll must be passed function names')}each(methods,function(method){context[method]=bindFn(context[method],context)});return context}function objectHelper(){return{extend:extend,isEmpty:isEmptyObject,keys:nativeKeys||keys}}apply(Object,objectHelper());function functionHelper(){var extensions={};if(!nativeBind){extensions.bind=function(context){return bindFn(this,context,slice.call(arguments,1))}}extensions.argumentNames=function(){var names=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,'').replace(/\s+/g,'').split(',');return names.length===1&&!names[0]?[]:names};extensions.wrap=function(wrapper){var methodCaller=this;return function(){var args=update([methodCaller.bind(this)],arguments);return wrapper.apply(this,args)}};return extensions}apply(FuncProto,functionHelper());var Class=(function(){function Subclass(){}function create(){var parent,properties,id;id=-1;parent=null;properties=toArray(arguments);if(typeOf(properties[0])==='function'){parent=properties.shift()}function Caste(){if(typeOf(this.initialize)==='function'){this.initialize.apply(this,arguments)}}apply(Caste,Class.Methods);Caste.superclass=parent;Caste.subclasses=[];if(parent){Subclass.prototype=parent.prototype;Caste.prototype=new Subclass();parent.subclasses.push(Caste)}while(++id<properties.length){Caste.implement(properties[id])}if(!typeOf(Caste.prototype.initialize)){Caste.prototype.initialize=Ctor}Caste.prototype.constructor=Caste;return Caste}function implement(source){var ancestor,properties,id,property,value,method;ancestor=this.superclass&&this.superclass.prototype;properties=Object.keys(source);id=-1;if(IS_DONTENUM_BUGGY){if(source.toString!=Object.prototype.toString){properties.push('toString')}if(source.valueOf!=Object.prototype.valueOf){properties.push('valueOf')}}while(++id<properties.length){property=properties[id];value=source[property];if(ancestor&&typeOf(value)==='function'&&(/\$super/g.test(value.argumentNames()[0]))){method=value;value=function(fn){return function(){return ancestor[fn].apply(this,arguments)}}(property).wrap(method);value.valueOf=function(method){return function(){return method.valueOf.call(method)}}(method);value.toString=function(method){return function(){return method.toString.call(method)}}(method)}this.prototype[property]=value}return this}return{create:create,Methods:{extend:apply,implement:implement}}}());Class.getDefinitionName=getDefinitionName;Class.typeOf=typeOf;Class.uniqueId=uniqueId;Class.bind=bindFn;Class.bindAll=bindAll;Class.isObject=isObject;Class.isString=isString;Class.isNumber=isNumber;Class.isUint=isUint;Class.isInt=isInt;Class.isDate=isDate;Class.isArray=isArray;Class.isArrayLike=isArrayLike;Class.isFunction=isFunction;Class.isRegExp=isRegExp;Class.isBoolean=isBoolean;Class.isElement=isElement;Class.isFile=isFile;Class.isWindow=isWindow;Class.toFloat=toFloat;Class.toUint=toUint;Class.toArray=toArray;Class.toInt=toInt;if(typeof noGlobal===strundefined){window.Class=Class}return Class}));
{'fraction_non_alphanumeric': 0.23870703205084398, 'fraction_numerical': 0.006833868653044488, 'mean_word_length': 18.079530638852674, 'pattern_counts': {'":': 5, '<': 15, '<?xml version=': 0, '>': 9, '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': '5728048', 'n_tokens_mistral': 5239, 'n_tokens_neox': 5238, 'n_words': 310}