<commit_before>/*
 * Copyright 2014 Archarithms Inc.
 */

package com.a2i.sim;

import com.a2i.sim.core.ClusterService;
import com.a2i.sim.cli.CommandLineInterface;
import java.lang.management.ManagementFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * This is the main entry point for A2I Sim.
 * 
 * @author <NAME>
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class Starter implements CommandLineRunner {

    private static final boolean MONITOR_THREAD_CONTENTION = true;

    @Autowired
    private ClusterService cluster;

    @Autowired
    private CommandLineInterface cli;

    @Autowired
    private Speaker speaker;
    
    private static final Logger LOG = LoggerFactory.getLogger(Starter.class);

    public Starter() {
        if(MONITOR_THREAD_CONTENTION) {
            ManagementFactory.getThreadMXBean().setThreadContentionMonitoringEnabled(MONITOR_THREAD_CONTENTION);
        }
    }

    @Override
    public void run(String... args) throws Exception {
        LOG.info("Speak easy my friends");

        if(args.length > 0 && args[0].equals("interactive")) {
            cli.init();
        }
    }

    public static void exit() {
        LOG.info("Goodbye");
        System.exit(0);
    }

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(Starter.class, args);
    }
}<commit_msg>Changed some logging.<commit_after>/*
 * Copyright 2014 Archarithms Inc.
 */

package com.a2i.sim;

import com.a2i.sim.core.ClusterService;
import com.a2i.sim.cli.CommandLineInterface;
import java.lang.management.ManagementFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * This is the main entry point for A2I Sim.
 * 
 * @author <NAME>
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class Starter implements CommandLineRunner {

    private static final boolean MONITOR_THREAD_CONTENTION = true;

    @Autowired
    private ClusterService cluster;

    @Autowired
    private CommandLineInterface cli;

    @Autowired
    private Speaker speaker;
    
    private static final Logger LOG = LoggerFactory.getLogger(Starter.class);

    public Starter() {
        if(MONITOR_THREAD_CONTENTION) {
            ManagementFactory.getThreadMXBean().setThreadContentionMonitoringEnabled(MONITOR_THREAD_CONTENTION);
        }
    }

    @Override
    public void run(String... args) throws Exception {
        LOG.info("Vadam cito amici");

        if(args.length > 0 && args[0].equals("interactive")) {
            cli.init();
        }
    }

    public static void exit() {
        LOG.info("Goodbye");
        System.exit(0);
    }

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(Starter.class, args);
    }
}
{'fraction_non_alphanumeric': 0.09232839838492597, 'fraction_numerical': 0.006998654104979811, 'mean_word_length': 3.883048620236531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5314548', 'n_tokens_mistral': 1033, 'n_tokens_neox': 1010, 'n_words': 221}