<commit_before>//浏览器信息
var Browser = function(userAgent){
	var u = userAgent||navigator.userAgent;
	var _this = this;
	var match = {
		//内核
		Trident: u.indexOf('Trident')>0||u.indexOf('NET CLR')>0,
		Presto: u.indexOf('Presto')>0,
        WebKit: u.indexOf('AppleWebKit')>0,
        Gecko: u.indexOf('Gecko/')>0,
		//浏览器
		UC: u.indexOf('UC')>0||u.indexOf(' UBrowser')>0,
		QQBrowser: u.indexOf('QQBrowser')>0,
		QQ: u.indexOf('QQ/')>0,
		BaiDu: u.indexOf('Baidu')>0||u.indexOf('BIDUBrowser')>0,
		Maxthon: u.indexOf('Maxthon')>0,
		LBBROWSER: u.indexOf('LBBROWSER')>0,
		SouGou: u.indexOf('MetaSr')>0||u.indexOf('Sogou')>0,
		IE: u.indexOf('MSIE')>0||u.indexOf('Trident')>0,
		Firefox: u.indexOf('Firefox')>0,
		Opera: u.indexOf('Opera')>0||u.indexOf('OPR')>0,
		Safari: u.indexOf('Safari')>0,
		Chrome:u.indexOf('Chrome')>0||u.indexOf('CriOS')>0,
		Wechat:u.indexOf('MicroMessenger')>0,
		//系统或平台
		Windows:u.indexOf('Windows')>0,
		Linux:u.indexOf('Linux')>0,
		Mac:u.indexOf('Macintosh')>0,
		Android:u.indexOf('Android')>0||u.indexOf('Adr')>0,
		WP:u.indexOf('IEMobile')>0,
		BlackBerry:u.indexOf('BlackBerry')>0||u.indexOf('RIM')>0||u.indexOf('BB')>0,
		MeeGo:u.indexOf('MeeGo')>0,
		Symbian:u.indexOf('Symbian')>0,
		iOS:u.indexOf('like Mac OS X')>0,
		iPhone: u.indexOf('iPh')>0,
		iPad:u.indexOf('iPad')>0,
		//设备
		Mobile:u.indexOf('Mobi')>0||u.indexOf('iPh')>0||u.indexOf('480')>0,
		Tablet:u.indexOf('Tablet')>0||u.indexOf('iPad')>0||u.indexOf('Nexus 7')>0
	};
	//修正
	if(match.Chrome){
		match.Chrome = !(match.Opera + match.BaiDu + match.Maxthon + match.SouGou + match.UC + match.QQ + match.LBBROWSER);
	}
	if(match.Safari){
		match.Safari = !(match.Chrome + match.Opera + match.BaiDu + match.Maxthon + match.SouGou + match.UC + match.QQ + match.LBBROWSER);
	}
	if(match.Mobile){
		match.Mobile = !match.iPad;
	}
	//基本信息
	var hash = {
		engine:['WebKit','Trident','Gecko','Presto'],
		browser:['Chrome','IE','Firefox','Opera','Safari','UC','QQ','BaiDu','Maxthon','SouGou','LBBROWSER','Wechat'],
		os:['Windows','Linux','Mac','Android','iOS','iPhone','iPad','WP','BlackBerry','MeeGo','Symbian'],
		device:['Mobile','Tablet']
	};
	_this.device = 'PC';
	_this.language = (function(){
		var g = (navigator.browserLanguage || navigator.language).toLowerCase();
		return g=="c"?"zh-cn":g;
	})();
	for(var s in hash){
		for(var i=0;i< hash[s].length;i++){
			var value = hash[s][i];<commit_msg>updated 类型添加<commit_after>//浏览器信息
var Browser = function(userAgent){
	var u = userAgent||navigator.userAgent;
	var _this = this;
	var match = {
		//内核
		Trident: u.indexOf('Trident')>0||u.indexOf('NET CLR')>0,
		Presto: u.indexOf('Presto')>0,
        WebKit: u.indexOf('AppleWebKit')>0,
        Gecko: u.indexOf('Gecko/')>0,
		//浏览器
		UC: u.indexOf('UC')>0||u.indexOf(' UBrowser')>0,
		QQBrowser: u.indexOf('QQBrowser')>0,
		QQ: u.indexOf('QQ/')>0,
		BaiDu: u.indexOf('Baidu')>0||u.indexOf('BIDUBrowser')>0,
		Maxthon: u.indexOf('Maxthon')>0,
		LBBROWSER: u.indexOf('LBBROWSER')>0,
		SouGou: u.indexOf('MetaSr')>0||u.indexOf('Sogou')>0,
		IE: u.indexOf('MSIE')>0||u.indexOf('Trident')>0,
		Firefox: u.indexOf('Firefox')>0,
		Opera: u.indexOf('Opera')>0||u.indexOf('OPR')>0,
		Safari: u.indexOf('Safari')>0,
		Chrome:u.indexOf('Chrome')>0||u.indexOf('CriOS')>0,
		Wechat:u.indexOf('MicroMessenger')>0,
		//系统或平台
		Windows:u.indexOf('Windows')>0,
		Linux:u.indexOf('Linux')>0,
		Mac:u.indexOf('Macintosh')>0,
		Android:u.indexOf('Android')>0||u.indexOf('Adr')>0,
		WP:u.indexOf('IEMobile')>0,
		BlackBerry:u.indexOf('BlackBerry')>0||u.indexOf('RIM')>0||u.indexOf('BB')>0,
		MeeGo:u.indexOf('MeeGo')>0,
		Symbian:u.indexOf('Symbian')>0,
		iOS:u.indexOf('like Mac OS X')>0,
		iPhone: u.indexOf('iPh')>0,
		iPad:u.indexOf('iPad')>0,
		//设备
		Mobile:u.indexOf('Mobi')>0||u.indexOf('iPh')>0||u.indexOf('480')>0,
		Tablet:u.indexOf('Tablet')>0||u.indexOf('iPad')>0||u.indexOf('Nexus 7')>0
	};
	//修正
	if(match.Chrome){
		match.Chrome = !(match.Opera + match.BaiDu + match.Maxthon + match.SouGou + match.UC + match.QQ + match.LBBROWSER);
	}
	if(match.Safari){
		match.Safari = !(match.Chrome + match.Opera + match.BaiDu + match.Maxthon + match.SouGou + match.UC + match.QQ + match.LBBROWSER);
	}
	if(match.Mobile){
		match.Mobile = !match.iPad;
	}
	//基本信息
	var hash = {
		engine:['WebKit','Trident','Gecko','Presto'],
		browser:['Chrome','IE','Firefox','Opera','Safari','UC','QQBrowser','QQ','BaiDu','Maxthon','SouGou','LBBROWSER','Wechat'],
		os:['Windows','Linux','Mac','Android','iOS','iPhone','iPad','WP','BlackBerry','MeeGo','Symbian'],
		device:['Mobile','Tablet']
	};
	_this.device = 'PC';
	_this.language = (function(){
		var g = (navigator.browserLanguage || navigator.language).toLowerCase();
		return g=="c"?"zh-cn":g;
	})();
	for(var s in hash){
		for(var i=0;i< hash[s].length;i++){
			var value = hash[s][i];
{'fraction_non_alphanumeric': 0.25202576355703304, 'fraction_numerical': 0.020361520880947434, 'mean_word_length': 5.630853994490358, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 91, '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': '5473955', 'n_tokens_mistral': 2256, 'n_tokens_neox': 2131, 'n_words': 236}