<commit_before>package ameba;

import ameba.container.Container;
import ameba.core.Application;
import ameba.exception.AmebaException;
import ameba.util.IOUtils;
import org.glassfish.hk2.api.ServiceLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author icode
 */
public class Ameba {
    public static final Logger logger = LoggerFactory.getLogger(Ameba.class);
    public static final String LOGO = "\n\n" +
            "    _                   _           \n" +
            "   / \\   _ __ ___   ___| |__   __ _ \n" +
            "  / _ \\ | '_ ` _ \\ / _ \\ '_ \\ / _` |\n" +
            " / ___ \\| | | | | |  __/ |_) | (_| |\n" +
            "/_/   \\_\\_| |_| |_|\\___|_.__/ \\__,_|   {}\n\n";
    private static Application app;
    private static Container container;
    private static String version;

    private Ameba() {
    }

    public static ServiceLocator getServiceLocator() {
        return container.getServiceLocator();
    }

    public static Container getContainer() {
        return container;
    }

    public static Application getApp() {
        return app;
    }

    public static String getVersion() {

        if (version == null){
            version = IOUtils.getJarImplVersion(Ameba.class);
        }

        return version;
    }

    public static void printInfo() {
        logger.info(LOGO, version);
    }

    public static void main(String[] args) throws Exception {

        bootstrap();

        // register shutdown hook
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override<commit_msg>更改Akka接口<commit_after>package ameba;

import ameba.container.Container;
import ameba.core.Application;
import ameba.exception.AmebaException;
import ameba.util.IOUtils;
import org.glassfish.hk2.api.ServiceLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author icode
 */
public class Ameba {
    public static final Logger logger = LoggerFactory.getLogger(Ameba.class);
    public static final String LOGO = "\n\n" +
            "    _                   _           \n" +
            "   / \\   _ __ ___   ___| |__   __ _ \n" +
            "  / _ \\ | '_ ` _ \\ / _ \\ '_ \\ / _` |\n" +
            " / ___ \\| | | | | |  __/ |_) | (_| |\n" +
            "/_/   \\_\\_| |_| |_|\\___|_.__/ \\__,_|   {}\n\n";
    private static Application app;
    private static Container container;
    private static String version;

    private Ameba() {
    }

    public static ServiceLocator getServiceLocator() {
        return container.getServiceLocator();
    }

    public static Container getContainer() {
        return container;
    }

    public static Application getApp() {
        return app;
    }

    public static String getVersion() {

        if (version == null){
            version = IOUtils.getJarImplVersion(Ameba.class);
        }

        return version;
    }

    public static void printInfo() {
        logger.info(LOGO, getVersion());
    }

    public static void main(String[] args) throws Exception {

        bootstrap();

        // register shutdown hook
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
{'fraction_non_alphanumeric': 0.12484394506866417, 'fraction_numerical': 0.0018726591760299626, 'mean_word_length': 1.9703429101019463, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5900141', 'n_tokens_mistral': 992, 'n_tokens_neox': 952, 'n_words': 203}