<commit_before>var util = require("util");
var inherits = require('inherits2');
var reverse = require( 'compute-reverse' );
var _ = require('lodash');
// var extend = require("extend");


module.exports = global.Class = function() { 
	function dump(obj){   
			console.log('--------------------------\n');  
	    var names="";       
	    for(var name in obj){       
	       names+=name+": "+obj[name]+", ";  
	    }  
	    console.log(names);  
	}  

	function cp(des, src) {
	    if (!des) {
	        des = {};
	    }
	    if (src) {
	        for (var i in src) {
	            des[i] = src[i];
	        }
	    }
	    return des;
	}

	function extend(obj, prop){    
		var o = this;
		// 对象集成	
		if(typeof obj == 'function'){
				obj.call(this);
				o = cp(this,obj.prototype)
		}
		return cp(o, prop);	
	}  

	function mo(arr){
		var before = function(){};
		for( var key in arr ){	
			var c = arr[key]
			before = extend(before ,c);
		}
		return before;
	}
		
	var o = [];
	for( var key in arguments ){	
		var c = arguments[key]
				//
		// console.log(key + ' - ' + c);
		o.push(c)
	}
	
	o.shift();
	
	var obj = mo(o);
	
	var src = arguments[arguments.length - 1];
	
	// console.log(obj);
	src.constructor.prototype = obj; 
	global[arguments[0]] = obj.constructor; 
	
}; <commit_msg>基本完成test and testinherit0-3 测试<commit_after>var util = require("util");
var inherits = require('inherits2');
var reverse = require( 'compute-reverse' );
var _ = require('lodash');
// var extend = require("extend");


module.exports = global.Class = function() { 
	function dump(obj){   
			console.log('--------------------------\n');  
	    var names="";       
	    for(var name in obj){       
	       names+=name+": "+obj[name]+", ";  
	    }  
	    console.log(names);  
	}  

	function cp(des, src) {
	    if (!des) {
	        des = {};
	    }
	    if (src) {
	        for (var i in src) {
	            des[i] = src[i];
	        }
	    }
	    return des;
	}

	function extend(obj, prop){    
		var o = this;
		// 对象集成	
		if(typeof obj == 'function'){
				obj.call(this);
				o = cp(this,obj.prototype)
		}
		return cp(o, prop);	
	}  

	function mo(arr){
		var before = function(){};
		for( var key in arr ){	
			var c = arr[key]
			before = extend(before ,c);
		}
		return before;
	}
		
	var o = [];
	for( var key in arguments ){	
		var c = arguments[key]
		o.push(c)
	}
	o.shift();
	
	var obj = mo(o);
	var src = arguments[arguments.length - 1];

	// console.log(obj);
	src.constructor.prototype = obj; 
	global[arguments[0]] = obj.constructor; 
	
}; 
{'fraction_non_alphanumeric': 0.19010212097407697, 'fraction_numerical': 0.003142183817753339, 'mean_word_length': 2.0357568533969013, 'pattern_counts': {'":': 2, '<': 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': '1473292', 'n_tokens_mistral': 1010, 'n_tokens_neox': 898, 'n_words': 215}