<commit_before>var logr = log4javascript.getLogger('rootLogger');
var logAppender = new log4javascript.PopUpAppender();
var popUpLayout = new log4javascript.PatternLayout("%d{HH:mm:ss} %-5p %c - %m%n");
logAppender.setLayout(popUpLayout);
logr.addAppender(logAppender);

var uiLog = new UILogger();

function Logger(name, level){
	var self = this;
	var logger = log4javascript.getLogger(name);
	logger.setLevel(level);
	logger.addAppender(logAppender);
	<commit_msg>Only display javascript ERROR level and above in the log4javascript popup.<commit_after>var logr = log4javascript.getLogger('rootLogger');
var logAppender = new log4javascript.PopUpAppender();
var popUpLayout = new log4javascript.PatternLayout("%d{HH:mm:ss} %-5p %c - %m%n");
logAppender.setLayout(popUpLayout);
logAppender.setThreshold(log4javascript.Level.ERROR); // only display errors
logr.addAppender(logAppender);

var uiLog = new UILogger();

function Logger(name, level){
	var self = this;
	var logger = log4javascript.getLogger(name);
	logger.setLevel(level);
	logger.addAppender(logAppender);
	
{'fraction_non_alphanumeric': 0.1280373831775701, 'fraction_numerical': 0.011214953271028037, 'mean_word_length': 7.113636363636363, 'pattern_counts': {'":': 0, '<': 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': '1785890', 'n_tokens_mistral': 358, 'n_tokens_neox': 353, 'n_words': 76}