<commit_before>package bridlensis;

import java.io.PrintStream;

public class Logger {

	private static final int ERROR = 4;
	private static final int WARN = 3;
	private static final int INFO = 2;
	private static final int DEBUG = 1;

	private static Logger instance = null;

	public static Logger getInstance() {
		if (instance == null) {
			instance = new Logger();
		}
		return instance;
	}

	private PrintStream output;
	private int level;

	private Logger() {
		output = System.out;
		level = INFO;
	}

	public void setPrintStream(PrintStream printStream) {
		output = printStream;
	}

	private void log(int level, String msg) {
		if (level >= this.level) {
			output.println(msg);
		}
	}

	public void error(BridleNSISException e) {
		log(ERROR, e.getMessage());
	}

	public void warn(InputReader reader, String message) {
		warn(String.format("%s, line %d: %s", reader.getFile(),
				reader.getLinesRead(), message));<commit_msg>Change the log levels so that ERROR = lowest(0) and DEBUG = highest(3).<commit_after>package bridlensis;

import java.io.PrintStream;

public class Logger {

	public static final int ERROR = 0;
	public static final int WARN = 1;
	public static final int INFO = 2;
	public static final int DEBUG = 3;

	private static Logger instance = null;

	public static Logger getInstance() {
		if (instance == null) {
			instance = new Logger();
		}
		return instance;
	}

	private PrintStream output;
	private int level;

	private Logger() {
		output = System.out;
		level = INFO;
	}

	public void setPrintStream(PrintStream printStream) {
		output = printStream;
	}

	public void setLogLevel(int level) {
		this.level = level;
	}

	private void log(int level, String msg) {
		if (level <= this.level) {
			output.println(msg);
		}
	}

	public void error(BridleNSISException e) {
		log(ERROR, e.getMessage());
	}

	public void warn(InputReader reader, String message) {
		warn(String.format("%s, line %d: %s", reader.getFile(),
				reader.getLinesRead(), message));
{'fraction_non_alphanumeric': 0.11055276381909548, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 3.891891891891892, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5433467', 'n_tokens_mistral': 680, 'n_tokens_neox': 615, 'n_words': 205}