<commit_before>package no.jansoren.mymicroservice.something;

import no.jansoren.mymicroservice.eventsourcing.EventStore;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public class SomethingResource {

    private String applicationName;
    private EventStore eventStore;

    public SomethingResource(String applicationName, EventStore eventStore) {
        this.applicationName = applicationName;
        this.eventStore = eventStore;
    }

    @GET
    public String welcomeMessage() {
        return "You are now prepared to implement your dropwizard " + applicationName + " application. Have fun :-)";
    }

    @GET
    @Path("/dosomething")
    public void doSomething() {
        eventStore.tell(new DoSomethingCommand(), null);
    }

    @GET
    @Path("/dosomethingelse")
    public void doSomethingElse() {
        eventStore.tell(new DoSomethingElseCommand(), null);
    }
}
<commit_msg>Resource now returns response ok<commit_after>package no.jansoren.mymicroservice.something;

import no.jansoren.mymicroservice.eventsourcing.EventStore;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public class SomethingResource {

    private String applicationName;
    private EventStore eventStore;

    public SomethingResource(String applicationName, EventStore eventStore) {
        this.applicationName = applicationName;
        this.eventStore = eventStore;
    }

    @GET
    public String welcomeMessage() {
        return "You are now prepared to implement your dropwizard " + applicationName + " application. Have fun :-)";
    }

    @GET
    @Path("/dosomething")
    public Response doSomething() {
        eventStore.tell(new DoSomethingCommand(), null);
        return Response.ok().build();
    }

    @GET
    @Path("/dosomethingelse")
    public Response doSomethingElse() {
        eventStore.tell(new DoSomethingElseCommand(), null);
        return Response.ok().build();
    }
}

{'fraction_non_alphanumeric': 0.10601193207893529, 'fraction_numerical': 0.0, 'mean_word_length': 3.5894736842105264, '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': '6442030', 'n_tokens_mistral': 641, 'n_tokens_neox': 612, 'n_words': 140}