<commit_before>package abv.sys.cpp;

import abv.lib.Timer;

using abv.CR;

@:dce
class AM {
	
	public static var verbose:LogLevel 	= DEBUG;
	public static var exitTime 			= .0;
	public static var silent 			= false;
	public static var colors 			= true;
	public static var logFile			= "";
	
	static var _args:Array<String>;
	static var _env:Map<String,String>;

    var updateTime:Float 	= 0;
	var last = Timer.stamp();
	public static var err = 0;
	var cfg:Map<String,String>;<commit_msg>fix AM.colors<commit_after>package abv.sys.cpp;

import abv.lib.Timer;

using abv.CR;

@:dce
class AM {
	
	public static var verbose:LogLevel 	= DEBUG;
	public static var exitTime 			= .0;
	public static var silent 			= false;
	public static var logFile			= "";

	public static var colors(get,set):Null<Bool>; 
	static var _colors:Null<Bool> = null;
	static inline function get_colors()	return _colors;
	static inline function set_colors(b:Bool)
	{
		var ok = Sys.getEnv("TERM") == "xterm" || Sys.getEnv("ANSICON") != null;
		_colors = b && ok?true:false;
		return _colors;
	}// set_colors()
	
	
	static var _args:Array<String>;
	static var _env:Map<String,String>;

    var updateTime:Float 	= 0;
	var last = Timer.stamp();
	public static var err = 0;
	var cfg:Map<String,String>;
{'fraction_non_alphanumeric': 0.12154696132596685, 'fraction_numerical': 0.004735595895816891, 'mean_word_length': 3.9147286821705425, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6297024', 'n_tokens_mistral': 490, 'n_tokens_neox': 455, 'n_words': 129}