<commit_before>package net.microscraper;

import java.util.Vector;

import net.microscraper.interfaces.log.Logger;


public class Log {
	private final Vector loggers = new Vector();
	public void register(Logger logger) {
		loggers.addElement(logger);
	}
	public void e(Throwable e) {
		//e.printStackTrace();
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).e(e);
		}
	}
	// No stacktrace for warnings.
	public void w(Throwable w) {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).w(w);
		}
	}
	public void i(String infoText) {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).i(infoText);
		}
	}
}<commit_msg>cleaning up Log<commit_after>package net.microscraper;

import java.io.IOException;
import java.util.Vector;

import net.microscraper.interfaces.log.Logger;

/**
 * A {@link Log} is an implementation of {@link Logger}
 * to coordinate many {@link Logger}s simultaneously.
 * <p>
 * All {@link Logger}s that are registered will receive
 * the same {@link Logger} methods.
 * @author talos
 *
 */
public final class Log implements Logger {
	private final Vector loggers = new Vector();
	public void register(Logger logger) {
		loggers.addElement(logger);
	}
	public void e(Throwable e) {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).e(e);
		}
	}
	public void w(Throwable w) {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).w(w);
		}
	}
	public void i(String infoText) {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).i(infoText);
		}
	}
	public void open() throws IOException {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).open();
		}		
	}
	public void close() throws IOException {
		for(int i = 0; i < loggers.size(); i ++) {
			((Logger) loggers.elementAt(i)).close();
		}		
	}
}
{'fraction_non_alphanumeric': 0.16148445336008024, 'fraction_numerical': 0.004012036108324975, 'mean_word_length': 3.0965092402464065, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 4, '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': '4918791', 'n_tokens_mistral': 756, 'n_tokens_neox': 696, 'n_words': 181}