<commit_before>package net.vexelon.currencybg.srv.reports;

import org.apache.commons.lang3.StringUtils;

public abstract class AbstractReporter implements Reporter {

	private static final String CLRF = System.getProperty("line.separator");

	protected String name;
	protected StringBuilder buffer = new StringBuilder();

	public AbstractReporter(String name) {
		this.name = "[" + name + "] ";
	}

	protected String formatTag(String tag) {
		return "[" + tag + "] ";
	}

	@Override
	public void write(String tag, String message) {
		buffer.append(formatTag(tag)).append(message).append(CLRF);
	}

	@Override
	public void write(String tag, String format, String... arguments) {
		buffer.append(formatTag(tag)).append(String.format(StringUtils.replace(format, "{}", "%s"), arguments))
				.append(CLRF);
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public boolean isEmpty() {
		return buffer.length() == 0;
	}

}<commit_msg>Fix varargs warning<commit_after>package net.vexelon.currencybg.srv.reports;

import org.apache.commons.lang3.StringUtils;

public abstract class AbstractReporter implements Reporter {

	private static final String CLRF = System.getProperty("line.separator");

	protected String name;
	protected StringBuilder buffer = new StringBuilder();

	public AbstractReporter(String name) {
		this.name = "[" + name + "] ";
	}

	protected String formatTag(String tag) {
		return "[" + tag + "] ";
	}

	@Override
	public void write(String tag, String message) {
		buffer.append(formatTag(tag)).append(message).append(CLRF);
	}

	@Override
	public void write(String tag, String format, String... arguments) {
		buffer.append(formatTag(tag))
				.append(String.format(StringUtils.replace(format, "{}", "%s"), (Object[]) arguments)).append(CLRF);
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public boolean isEmpty() {
		return buffer.length() == 0;
	}

}
{'fraction_non_alphanumeric': 0.13638729828214471, 'fraction_numerical': 0.002082248828735034, 'mean_word_length': 4.720238095238095, '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': '6615987', 'n_tokens_mistral': 623, 'n_tokens_neox': 579, 'n_words': 141}