<commit_before>package org.dukecon.server.service

import org.dukecon.server.business.JavalandDataProvider
import org.springframework.stereotype.Component

import javax.inject.Inject
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.PathParam
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
import javax.ws.rs.core.Response

/**
 * @author <NAME>, <EMAIL>, @sippsack
 */
@Component
@Path("conferences")
@Produces(MediaType.APPLICATION_JSON)
class ConferenceService {
    @Inject
    JavalandDataProvider talkProvider;

    @GET
    public Response getConferences() {
        return Response.ok().entity([talkProvider.conference.id]).build();
    }

    @GET
    @Path("{id}")
    public Response getConference(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference).build();
    }

    @GET
    @Path("{id}/speakers")
    public Response getSpeakers(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.speakers).build();
    }

    @GET
    @Path("{id}/events")
    public Response getEvents(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.talks).build();
    }

    @GET
    @Path("{id}/metadata")
    public Response getMeta(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.metaData).build();
    }
}<commit_msg>renamed talk to event<commit_after>package org.dukecon.server.service

import org.dukecon.server.business.JavalandDataProvider
import org.springframework.stereotype.Component

import javax.inject.Inject
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.PathParam
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
import javax.ws.rs.core.Response

/**
 * @author <NAME>, <EMAIL>-da.de, @sippsack
 */
@Component
@Path("conferences")
@Produces(MediaType.APPLICATION_JSON)
class ConferenceService {
    @Inject
    JavalandDataProvider talkProvider;

    @GET
    public Response getConferences() {
        return Response.ok().entity([talkProvider.conference.id]).build();
    }

    @GET
    @Path("{id}")
    public Response getConference(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference).build();
    }

    @GET
    @Path("{id}/speakers")
    public Response getSpeakers(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.speakers).build();
    }

    @GET
    @Path("{id}/events")
    public Response getEvents(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.events).build();
    }

    @GET
    @Path("{id}/metadata")
    public Response getMeta(@PathParam("id") String id) {
        return Response.ok().entity(talkProvider.conference.metaData).build();
    }
}
{'fraction_non_alphanumeric': 0.1428063943161634, 'fraction_numerical': 0.0, 'mean_word_length': 3.9059233449477353, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2371389', 'n_tokens_mistral': 873, 'n_tokens_neox': 868, 'n_words': 151}