<commit_before>package com.github.ocelotwarsplayer;

import static io.netty.handler.codec.http.HttpResponseStatus.INTERNAL_SERVER_ERROR;
import static io.netty.handler.codec.http.HttpResponseStatus.OK;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientResponse;
import io.vertx.core.http.HttpServer;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;

public class Player extends AbstractVerticle {

	private static final String ACCEPT = "accept";
	private static final int GAME_HOST_PORT = 8080;
	private static final String GAME_HOST = "localhost";

	private static final String MY_HOST = "localhost";
	private static final int MY_PORT = 8081;

	@Override
	public void start() {
		Router router = Router.router(vertx);

		HttpClient client = vertx.createHttpClient();
		client.post(GAME_HOST_PORT, GAME_HOST, "/register/myplayer/" + MY_HOST + "/" + MY_PORT, this::registerResponse)
				.end();

		router.post("/requestMove").handler(this::requestMove);
		router.post("/invite").handler(this::invite);
		router.route().failureHandler(this::fail);
<commit_msg>Registration: detect host name automatically<commit_after>package com.github.ocelotwarsplayer;

import static io.netty.handler.codec.http.HttpResponseStatus.INTERNAL_SERVER_ERROR;
import static io.netty.handler.codec.http.HttpResponseStatus.OK;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientResponse;
import io.vertx.core.http.HttpServer;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;

public class Player extends AbstractVerticle {

	private static final String ACCEPT = "accept";
	private static final int GAME_HOST_PORT = 8080;
	private static final String GAME_HOST = "localhost";

	private static final int MY_PORT = 8081;

	@Override
	public void start() {
		Router router = Router.router(vertx);

		HttpClient client = vertx.createHttpClient();
		client.post(GAME_HOST_PORT, GAME_HOST, "/register/myplayer/" + MY_PORT, this::registerResponse).end();

		router.post("/requestMove").handler(this::requestMove);
		router.post("/invite").handler(this::invite);
		router.route().failureHandler(this::fail);

{'fraction_non_alphanumeric': 0.11743772241992882, 'fraction_numerical': 0.0071174377224199285, 'mean_word_length': 5.794561933534744, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3627880', 'n_tokens_mistral': 734, 'n_tokens_neox': 700, 'n_words': 146}