<commit_before>package com.inventage.issumy.issues;

import org.vertx.java.core.Handler;
import org.vertx.java.core.eventbus.Message;
import org.vertx.java.core.http.HttpServerRequest;
import org.vertx.java.core.http.RouteMatcher;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.platform.Verticle;

/**
 * handels the REST calls.
 */
public class IssuesRestVerticle extends Verticle {

    @Override
    public void start() {
        RouteMatcher rm = new RouteMatcher();

        rm.get("/issues", new Handler<HttpServerRequest>() {
            @Override
            public void handle(HttpServerRequest req) {
                vertx.eventBus().send("com.inventage.issumy.issues", "", new Handler<Message<JsonArray>>() {
                    @Override
                    public void handle(Message<JsonArray> msg) {
                        req.response().headers().set("Content-Type", "application/json");
                        req.response().end(msg.body().encode());
                    }
                });
            }
        });

        vertx.createHttpServer().requestHandler(rm).listen(8080);
        container.logger().info("IssuesRestVerticle started");
    }
}<commit_msg>zurück zu pre iteration 03 - noch mit hello<commit_after>package com.inventage.issumy.issues;

import org.vertx.java.core.Handler;
import org.vertx.java.core.eventbus.Message;
import org.vertx.java.core.http.HttpServerRequest;
import org.vertx.java.core.http.RouteMatcher;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.platform.Verticle;

/**
 * handles the REST calls.
 */
public class IssuesRestVerticle extends Verticle {

    @Override
    public void start() {
        vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
            public void handle(HttpServerRequest req) {
                req.response().headers().set("Content-Type", "text/plain");
                req.response().end("Hello ----- issumy");
            }
        }).listen(8080);
    }
}
{'fraction_non_alphanumeric': 0.13190642110502737, 'fraction_numerical': 0.004977600796416127, 'mean_word_length': 2.6216216216216215, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '4230100', 'n_tokens_mistral': 593, 'n_tokens_neox': 562, 'n_words': 98}