<commit_before>package org.uoiu.qieziyin;

import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.core.logging.SLF4JLogDelegateFactory;
import org.uoiu.qieziyin.common.Constants;

public class GatewayMain {

  static {
    System.setProperty(LoggerFactory.LOGGER_DELEGATE_FACTORY_CLASS_NAME, SLF4JLogDelegateFactory.class.getName());
  }

  private static final Logger log = LoggerFactory.getLogger(GatewayMain.class);

  public final static int NB_INSTANCES = 1;

  public static void main(String[] args) {
    Vertx vertx = Vertx.vertx();
    DeploymentOptions options = new DeploymentOptions();
    options.setInstances(NB_INSTANCES);

    JsonObject config = vertx.fileSystem().readFileBlocking("config.json").toJsonObject();
    JsonObject serverConfig = config.getJsonObject("server");
    options.setConfig(serverConfig);

    vertx.sharedData().getLocalMap(Constants.CONFIG_NAME).put("config", config);

    vertx.deployVerticle(GatewayServer.class.getName(), options,
      result -> {
        log.info("deploy : {}", result.result());
        log.info("Listening at http://{}:{}", serverConfig.getString("host"), serverConfig.getInteger("port"));
      }
    );

  }

}<commit_msg>部署出错日志打印<commit_after>package org.uoiu.qieziyin;

import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.core.logging.SLF4JLogDelegateFactory;
import org.uoiu.qieziyin.common.Constants;

public class GatewayMain {

  static {
    System.setProperty(LoggerFactory.LOGGER_DELEGATE_FACTORY_CLASS_NAME, SLF4JLogDelegateFactory.class.getName());
  }

  private static final Logger log = LoggerFactory.getLogger(GatewayMain.class);

  public final static int NB_INSTANCES = 1;

  public static void main(String[] args) {
    Vertx vertx = Vertx.vertx();
    DeploymentOptions options = new DeploymentOptions();
    options.setInstances(NB_INSTANCES);

    JsonObject config = vertx.fileSystem().readFileBlocking("config.json").toJsonObject();
    JsonObject serverConfig = config.getJsonObject("server");
    options.setConfig(serverConfig);

    vertx.sharedData().getLocalMap(Constants.CONFIG_NAME).put("config", config);

    vertx.deployVerticle(GatewayServer.class.getName(), options,
      result -> {
        if (result.failed()) {
          log.error(result.cause());
          return;
        }
        log.info("deploy : {}", result.result());
        log.info("Listening at http://{}:{}", serverConfig.getString("host"), serverConfig.getInteger("port"));
      }
    );

  }

}
{'fraction_non_alphanumeric': 0.12964969302997473, 'fraction_numerical': 0.0021668472372697724, 'mean_word_length': 4.452755905511811, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '415080', 'n_tokens_mistral': 893, 'n_tokens_neox': 871, 'n_words': 136}