<commit_before>package co.willsalz.ttyl.resources.v1;

import co.willsalz.ttyl.entities.CallRequest;
import co.willsalz.ttyl.service.PhoneService;
import com.codahale.metrics.annotation.Timed;
import com.twilio.rest.api.v2010.account.Call;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("v1/call")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class CallResource {

    private static final Logger logger = LoggerFactory.getLogger(CallResource.class);

    private final PhoneService phoneService;

    public CallResource(final PhoneService phoneService) {
        this.phoneService = phoneService;
    }

    @POST
    @Timed
    public Response makeCall(@NotNull @Valid final CallRequest callRequest) {

        final Call call = phoneService.makeCall(callRequest.getTo());
        return Response.noContent().build();

    }

}<commit_msg>fix media type?<commit_after>package co.willsalz.ttyl.resources.v1;

import co.willsalz.ttyl.entities.CallRequest;
import co.willsalz.ttyl.service.PhoneService;
import com.codahale.metrics.annotation.Timed;
import com.twilio.rest.api.v2010.account.Call;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("v1/call")
@Consumes(MediaType.APPLICATION_JSON)
public class CallResource {

    private static final Logger logger = LoggerFactory.getLogger(CallResource.class);

    private final PhoneService phoneService;

    public CallResource(final PhoneService phoneService) {
        this.phoneService = phoneService;
    }

    @POST
    @Timed
    public Response makeCall(@NotNull @Valid final CallRequest callRequest) {

        final Call call = phoneService.makeCall(callRequest.getTo());
        return Response.noContent().build();

    }

}
{'fraction_non_alphanumeric': 0.10594546267322306, 'fraction_numerical': 0.007152436298614216, 'mean_word_length': 4.595, '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': '2495199', 'n_tokens_mistral': 717, 'n_tokens_neox': 698, 'n_words': 133}