<commit_before>package ru.pmsoft.twitterkiller.rest.exceptions;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.Provider;

/**
 * Created by Виктор on 07.07.2014.
 */
@Provider
public class ExceptionMapper implements javax.ws.rs.ext.ExceptionMapper<Throwable> {

    @Override
    public Response toResponse(Throwable throwable) {
        ExceptionBody body = new ExceptionBody("Error on server: "+throwable.getMessage());
        return Response.status(500).entity(body).build();
    }
}<commit_msg>Working auth, login, DB mapping.<commit_after>package ru.pmsoft.twitterkiller.rest.exceptions;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.Provider;

/**
 * Created by Виктор on 07.07.2014.
 */
@Provider
public class ExceptionMapper implements javax.ws.rs.ext.ExceptionMapper<Throwable> {

    @Override
    public Response toResponse(Throwable throwable) {
        ExceptionBody body = new ExceptionBody("Error on server: " + throwable.getMessage());
        return Response.status(500).entity(body).build();
    }
}
{'fraction_non_alphanumeric': 0.12199807877041306, 'fraction_numerical': 0.021133525456292025, 'mean_word_length': 4.21, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7662412', 'n_tokens_mistral': 321, 'n_tokens_neox': 304, 'n_words': 66}