<commit_before>package cz.kramolis.mega.runtime;

import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.Objects;
import java.util.logging.LogManager;

import javax.enterprise.inject.spi.CDI;

import cz.kramolis.mega.runtime.internal.EnvironmentImpl;
import cz.kramolis.mega.runtime.internal.Universe;

public class Main {

    public static final String PROP_SYSTEM_OUT_FILENAME = "mega.SystemOutFileName";
    public static final String PROP_SYSTEM_ERR_FILENAME = "mega.SystemErrFileName";

    public static void main(String[] args) throws Exception {
        final long initNanoTime = System.nanoTime();
        initLogging();
        try (CDI<Object> cdi = CDI.getCDIProvider().initialize();
                PrintStream systemOut = initSystemOut();
                PrintStream systemErr = initSystemErr(systemOut)) {
            Universe universe = cdi.select(Universe.class).get();
            EnvironmentImpl environment = cdi.select(EnvironmentImpl.class).get();
            environment.setStartNanoTime(initNanoTime);
            environment.setArgs(args != null ? Arrays.asList(args) : Collections.<String>emptyList());
            universe.run();
        }
    }

    private static void initLogging() {
        final String loggingProperties = "/logging.properties";
        if (Main.class.getResource(loggingProperties) != null) {
            try (InputStream inputStream = Main.class.getResourceAsStream(loggingProperties)) {
                LogManager.getLogManager().readConfiguration(inputStream);<commit_msg>mistake to test failing travis build ...<commit_after>package cz.kramolis.mega.runtime;

import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.Objects;
import java.util.logging.LogManager;

import javax.enterprise.inject.spi.CDI;

import cz.kramolis.mega.runtime.internal.EnvironmentImpl;
import cz.kramolis.mega.runtime.internal.Universe;

public class Main {

    mistake to test failing travis build ...

    public static final String PROP_SYSTEM_OUT_FILENAME = "mega.SystemOutFileName";
    public static final String PROP_SYSTEM_ERR_FILENAME = "mega.SystemErrFileName";

    public static void main(String[] args) throws Exception {
        final long initNanoTime = System.nanoTime();
        initLogging();
        try (CDI<Object> cdi = CDI.getCDIProvider().initialize();
                PrintStream systemOut = initSystemOut();
                PrintStream systemErr = initSystemErr(systemOut)) {
            Universe universe = cdi.select(Universe.class).get();
            EnvironmentImpl environment = cdi.select(EnvironmentImpl.class).get();
            environment.setStartNanoTime(initNanoTime);
            environment.setArgs(args != null ? Arrays.asList(args) : Collections.<String>emptyList());
            universe.run();
        }
    }

    private static void initLogging() {
        final String loggingProperties = "/logging.properties";
        if (Main.class.getResource(loggingProperties) != null) {
            try (InputStream inputStream = Main.class.getResourceAsStream(loggingProperties)) {
                LogManager.getLogManager().readConfiguration(inputStream);
{'fraction_non_alphanumeric': 0.10158350761876307, 'fraction_numerical': 0.0, 'mean_word_length': 3.506056527590848, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7149115', 'n_tokens_mistral': 915, 'n_tokens_neox': 885, 'n_words': 185}