<commit_before>package io.scalecube.gateway.http;

import io.netty.util.concurrent.DefaultThreadFactory;
import io.scalecube.gateway.GatewayTemplate;
import io.scalecube.services.ServiceCall;
import io.scalecube.services.gateway.GatewayConfig;
import io.scalecube.services.metrics.Metrics;
import java.net.InetSocketAddress;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Mono;
import reactor.ipc.netty.http.server.HttpServer;
import reactor.ipc.netty.resources.LoopResources;
import reactor.ipc.netty.tcp.BlockingNettyContext;

/**
 * Gateway implementation on Http.
 */
public class HttpGateway extends GatewayTemplate {

  private static final Logger LOGGER = LoggerFactory.getLogger(HttpGateway.class);

  private static final DefaultThreadFactory BOSS_THREAD_FACTORY =
    new DefaultThreadFactory("http-boss", true);

  private static final Duration START_TIMEOUT = Duration.ofSeconds(30);

  private BlockingNettyContext server;

  @Override
  public Mono<InetSocketAddress> start(
    GatewayConfig config,
    Executor workerThreadPool,
    boolean preferNative,
    ServiceCall.Call call,
      Metrics metrics) {

    return Mono.defer(
      () -> {
        LOGGER.info("Starting gateway with {}", config);

        InetSocketAddress listenAddress = new InetSocketAddress(config.port());<commit_msg>Fixing checkstyle issues<commit_after>package io.scalecube.gateway.http;

import io.netty.util.concurrent.DefaultThreadFactory;
import io.scalecube.gateway.GatewayTemplate;
import io.scalecube.services.ServiceCall;
import io.scalecube.services.gateway.GatewayConfig;
import io.scalecube.services.metrics.Metrics;
import java.net.InetSocketAddress;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Mono;
import reactor.ipc.netty.http.server.HttpServer;
import reactor.ipc.netty.resources.LoopResources;
import reactor.ipc.netty.tcp.BlockingNettyContext;

public class HttpGateway extends GatewayTemplate {

  private static final Logger LOGGER = LoggerFactory.getLogger(HttpGateway.class);

  private static final DefaultThreadFactory BOSS_THREAD_FACTORY =
    new DefaultThreadFactory("http-boss", true);

  private static final Duration START_TIMEOUT = Duration.ofSeconds(30);

  private BlockingNettyContext server;

  @Override
  public Mono<InetSocketAddress> start(
    GatewayConfig config,
    Executor workerThreadPool,
    boolean preferNative,
    ServiceCall.Call call,
      Metrics metrics) {

    return Mono.defer(
      () -> {
        LOGGER.info("Starting gateway with {}", config);

        InetSocketAddress listenAddress = new InetSocketAddress(config.port());
{'fraction_non_alphanumeric': 0.08993797381116471, 'fraction_numerical': 0.0027567195037904893, 'mean_word_length': 5.137420718816068, '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': '3398846', 'n_tokens_mistral': 867, 'n_tokens_neox': 841, 'n_words': 177}