<commit_before>package com.levelup.logutils;



/**
 * helper class to use the FLog from a class rather than using the static methods
 * <p> unlike {@link FLogger} this one has a single tag set
 */
public class FLoggerTagged {
	protected final String tag;
	
	/**
	 * method called for every log call in case the file logger wasn't ready before
	 * 
	 * @param level
	 */
	protected void assertLogger(FLogLevel level) {}
	
	public FLoggerTagged(String tag) {
		assertLogger(FLogLevel.V);
		this.tag = tag;
	}

	public void v(String message) {
		assertLogger(FLogLevel.V);
		FLog.v(tag, message);
	}

	public void v(String message, Throwable tr) {
		assertLogger(FLogLevel.V);
		FLog.v(tag, message, tr);
	}

	public void d(String message) {
		assertLogger(FLogLevel.D);
		FLog.d(tag, message);
	}

	public void d(String message, Throwable tr) {
		assertLogger(FLogLevel.D);
		FLog.d(tag, message, tr);
	}

	public void i(String message) {
		assertLogger(FLogLevel.I);
		FLog.i(tag, message);
	}

	public void i(String message, Throwable tr) {
		assertLogger(FLogLevel.I);
		FLog.i(tag, message, tr);
	}

	public void w(String message) {
		assertLogger(FLogLevel.W);
		FLog.w(tag, message);
	}

	public void w(String message, Throwable tr) {
		assertLogger(FLogLevel.W);
		FLog.w(tag, message, tr);
	}

	public void e(String message) {
		assertLogger(FLogLevel.E);
		FLog.e(tag, message);
	}

	public void e(String message, Throwable tr) {
		assertLogger(FLogLevel.E);
		FLog.e(tag, message, tr);
	}
}<commit_msg>make FloggerTagged return an int like Log.X()<commit_after>package com.levelup.logutils;



/**
 * helper class to use the FLog from a class rather than using the static methods
 * <p> unlike {@link FLogger} this one has a single tag set
 */
public class FLoggerTagged {
	protected final String tag;
	
	/**
	 * method called for every log call in case the file logger wasn't ready before
	 * 
	 * @param level
	 */
	protected void assertLogger(FLogLevel level) {}
	
	public FLoggerTagged(String tag) {
		assertLogger(FLogLevel.V);
		this.tag = tag;
	}

	public int v(String message) {
		assertLogger(FLogLevel.V);
		FLog.v(tag, message);
		return 0;
	}

	public int v(String message, Throwable tr) {
		assertLogger(FLogLevel.V);
		FLog.v(tag, message, tr);
		return 0;
	}

	public int d(String message) {
		assertLogger(FLogLevel.D);
		FLog.d(tag, message);
		return 0;
	}

	public int d(String message, Throwable tr) {
		assertLogger(FLogLevel.D);
		FLog.d(tag, message, tr);
		return 0;
	}

	public int i(String message) {
		assertLogger(FLogLevel.I);
		FLog.i(tag, message);
		return 0;
	}

	public int i(String message, Throwable tr) {
		assertLogger(FLogLevel.I);
		FLog.i(tag, message, tr);
		return 0;
	}

	public int w(String message) {
		assertLogger(FLogLevel.W);
		FLog.w(tag, message);
		return 0;
	}

	public int w(String message, Throwable tr) {
		assertLogger(FLogLevel.W);
		FLog.w(tag, message, tr);
		return 0;
	}

	public int e(String message) {
		assertLogger(FLogLevel.E);
		FLog.e(tag, message);
		return 0;
	}

	public int e(String message, Throwable tr) {
		assertLogger(FLogLevel.E);
		FLog.e(tag, message, tr);
		return 0;
	}
}
{'fraction_non_alphanumeric': 0.12168141592920353, 'fraction_numerical': 0.0031605562579013905, 'mean_word_length': 3.7954545454545454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3308878', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1123, 'n_words': 318}