<commit_before>package com.yooksi.fierysouls.common;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.Marker;

/**
 * A custom wrapper for the log4j Logger. It also has an implementation <br>
 * for creating and reading from a custom secondary mod log file. <p>
 * 
 * <i>Whenever you log an event (except INFO) using this logger, <br>
 * a copy of that log will be stored in a custom mod log file. </i><p>
 * 
 * <i>Thanks to Choonster for writing the original wrapper.</i> 
 */
public class Logger 
{
	private static org.apache.logging.log4j.Logger logger;
	
	static final java.text.DateFormat dateFormat = new java.text.SimpleDateFormat("[dd/MM/yyyy][HH:mm:ss]");
    public static final String modLogFileName = "fiery-souls-logger.log";
    public static final String modLogFileDirName = "logs";
	    
    /** A string representation of the mod log Path, here for convenience. */
	private static String modLogFilePath;
	/** A file instance of the mod log file. Used to access file properties. */
	private static File modLogFile;
	
	/** Any event level that has a value below this will not be logged. */
	private static Level threshold = Level.DEBUG;
	
	
	private static void log(Level level, String format, Object... data) 
	{
		logger.printf(level, format, data);
	}

	private static void log(Level level, Throwable throwable, String format, Object... data) 
	{
		logger.log(level, String.format(format, data), throwable);<commit_msg>Update Logger data format to ISO standards<commit_after>package com.yooksi.fierysouls.common;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.Marker;

/**
 * A custom wrapper for the log4j Logger. It also has an implementation <br>
 * for creating and reading from a custom secondary mod log file. <p>
 * 
 * <i>Whenever you log an event (except INFO) using this logger, <br>
 * a copy of that log will be stored in a custom mod log file. </i><p>
 * 
 * <i>Thanks to Choonster for writing the original wrapper.</i> 
 */
public class Logger 
{
	private static org.apache.logging.log4j.Logger logger;
	
	static final java.text.DateFormat dateFormat = new java.text.SimpleDateFormat("[yyyy/MM/dd][HH:mm:ss]");
    public static final String modLogFileName = "fiery-souls-logger.log";
    public static final String modLogFileDirName = "logs";
	    
    /** A string representation of the mod log Path, here for convenience. */
	private static String modLogFilePath;
	/** A file instance of the mod log file. Used to access file properties. */
	private static File modLogFile;
	
	/** Any event level that has a value below this will not be logged. */
	private static Level threshold = Level.DEBUG;
	
	
	private static void log(Level level, String format, Object... data) 
	{
		logger.printf(level, format, data);
	}

	private static void log(Level level, Throwable throwable, String format, Object... data) 
	{
		logger.log(level, String.format(format, data), throwable);
{'fraction_non_alphanumeric': 0.10313762037899969, 'fraction_numerical': 0.0024852438645542093, 'mean_word_length': 3.9160305343511452, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3135200', 'n_tokens_mistral': 979, 'n_tokens_neox': 944, 'n_words': 359}