<commit_before>package stsc.general.simulator;

import java.io.File;
import java.util.Set;
import java.util.TimeZone;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.config.XMLConfigurationFactory;

import stsc.common.BadSignalException;
import stsc.common.FromToPeriod;
import stsc.common.algorithms.BadAlgorithmException;
import stsc.common.storage.SignalsStorage;
import stsc.common.storage.StockStorage;
import stsc.general.statistic.Metrics;
import stsc.general.trading.TradeProcessor;
import stsc.general.trading.TradeProcessorInit;

import com.google.common.base.Joiner;

/**
 * This class includes all necessary procedures and data for trading simulation.
 */
public class Simulator {

	static {
		TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
		System.setProperty(XMLConfigurationFactory.CONFIGURATION_FILE_PROPERTY, "./config/simulator.log4j2.xml");
	}

	private static Logger logger = LogManager.getLogger("Simulator");

	private final Metrics metrics;
	private final SignalsStorage signalsStorage;
<commit_msg>used class name instead of string for LogManager.getLogger(Simulator.class.getName());<commit_after>package stsc.general.simulator;

import java.io.File;
import java.util.Set;
import java.util.TimeZone;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.config.XMLConfigurationFactory;

import stsc.common.BadSignalException;
import stsc.common.FromToPeriod;
import stsc.common.algorithms.BadAlgorithmException;
import stsc.common.storage.SignalsStorage;
import stsc.common.storage.StockStorage;
import stsc.general.statistic.Metrics;
import stsc.general.trading.TradeProcessor;
import stsc.general.trading.TradeProcessorInit;

import com.google.common.base.Joiner;

/**
 * This class includes all necessary procedures and data for trading simulation.
 */
public class Simulator {

	static {
		TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
		System.setProperty(XMLConfigurationFactory.CONFIGURATION_FILE_PROPERTY, "./config/simulator.log4j2.xml");
	}

	private static Logger logger = LogManager.getLogger(Simulator.class.getName());

	private final Metrics metrics;
	private final SignalsStorage signalsStorage;

{'fraction_non_alphanumeric': 0.09881941407958024, 'fraction_numerical': 0.004372540445999125, 'mean_word_length': 6.3099041533546325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3744003', 'n_tokens_mistral': 688, 'n_tokens_neox': 677, 'n_words': 133}