<commit_before>package io.myweb.processor.velocity;

import org.apache.velocity.runtime.RuntimeServices;
import org.apache.velocity.runtime.log.LogChute;

import javax.annotation.processing.Messager;

import static javax.tools.Diagnostic.Kind;
import static org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace;

/**
 * Logger implementation used internally by Velocity.
 */
public class VelocityLogger implements LogChute {

	private static final boolean LOG_WARN = true;
	private static final boolean LOG_ERROR = true;
	private static final boolean LOG_INFO = true;
	private static final boolean LOG_DEBUG = true;
	private static final boolean LOG_TRACE = true;

	public static final String LOG_PREFIX = "Velocity";

	private final Messager messager;

	public VelocityLogger(Messager messager) {
		this.messager = messager;
	}

	private void log(Kind kind, String msg) {
		messager.printMessage(kind, msg);
	}

	private void log(Kind kind, String msg, Throwable t) {
		messager.printMessage(kind, msg + "\n" + getStackTrace(t));
	}

	@Override
	public void init(RuntimeServices rs) throws Exception {
	}

	@Override
	public void log(int level, String message) {
		if (isLevelEnabled(level)) {<commit_msg>Disable debug and trace logs in velocity.<commit_after>package io.myweb.processor.velocity;

import org.apache.velocity.runtime.RuntimeServices;
import org.apache.velocity.runtime.log.LogChute;

import javax.annotation.processing.Messager;

import static javax.tools.Diagnostic.Kind;
import static org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace;

/**
 * Logger implementation used internally by Velocity.
 */
public class VelocityLogger implements LogChute {

	private static final boolean LOG_WARN = true;
	private static final boolean LOG_ERROR = true;
	private static final boolean LOG_INFO = true;
	private static final boolean LOG_DEBUG = false;
	private static final boolean LOG_TRACE = false;

	public static final String LOG_PREFIX = "Velocity";

	private final Messager messager;

	public VelocityLogger(Messager messager) {
		this.messager = messager;
	}

	private void log(Kind kind, String msg) {
		messager.printMessage(kind, msg);
	}

	private void log(Kind kind, String msg, Throwable t) {
		messager.printMessage(kind, msg + "\n" + getStackTrace(t));
	}

	@Override
	public void init(RuntimeServices rs) throws Exception {
	}

	@Override
	public void log(int level, String message) {
		if (isLevelEnabled(level)) {
{'fraction_non_alphanumeric': 0.0864448051948052, 'fraction_numerical': 0.0008116883116883117, 'mean_word_length': 5.071428571428571, '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': '5220242', 'n_tokens_mistral': 739, 'n_tokens_neox': 696, 'n_words': 218}