<commit_before>package org.dukecon.server.service;

import org.dukecon.model.Conference;
import org.dukecon.model.MetaData;
import org.springframework.stereotype.Component;

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;
import java.util.HashMap;
import java.util.Map;

/**
 * @author <NAME>, http://www.n-k.de, @dasniko
 */
@Component
@Path("meta")
public class MetaService {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response getMeta() {
        Conference conference = Conference.builder()
                .name("DukeCon Demo Workshop")
                .url("http://dukecon.org/demo")
                .build();
        MetaData metaData = MetaData.builder().conference(conference).build();

        return Response.ok().entity(metaData).build();
    }

    @GET
    @Path("ping")
    public Response ping() {
        Map<String, String> m = new HashMap<>(1);
        m.put("last_updated", "2015-05-19T16:20:11");
        return Response.ok().entity(m).build();
    }
}<commit_msg>meta data rest service implemented<commit_after>package org.dukecon.server.service;

import org.dukecon.model.Conference;
import org.dukecon.model.MetaData;
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.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.Map;

/**
 * @author <NAME>, http://www.n-k.de, @dasniko
 */
@Component
@Path("meta")
public class MetaService {
    @Inject
    JavalandDataProvider talkProvider;

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response getMeta() {
        Conference conference = Conference.builder()
                .name("Javaland 2016")
                .url("http://dukecon.org/javaland")
                .build();
        MetaData metaData = talkProvider.getMetaData();
        metaData.setConference(conference);
        return Response.ok().entity(metaData).build();
    }

    @GET
    @Path("ping")
    public Response ping() {
        Map<String, String> m = new HashMap<>(1);
        m.put("last_updated", "2015-05-19T16:20:11");
        return Response.ok().entity(m).build();
    }
}
{'fraction_non_alphanumeric': 0.14447711045779085, 'fraction_numerical': 0.014279714405711887, 'mean_word_length': 3.1498257839721253, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5526192', 'n_tokens_mistral': 783, 'n_tokens_neox': 760, 'n_words': 137}