<commit_before>package org.superdev.coddy;

import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;
import org.superdev.coddy.application.api.Hello;
import org.superdev.coddy.application.exception.mapper.EntityNotFoundMapper;
import org.superdev.coddy.application.exception.mapper.ExceptMapper;
import org.superdev.coddy.application.exception.mapper.NotFoundMapper;
import org.superdev.coddy.user.api.User;
import org.superdev.coddy.application.exception.mapper.EntityExistsMapper;
import org.superdev.coddy.user.exception.mapper.AuthenticationMapper;
import org.superdev.coddy.user.exception.mapper.ForbiddenMapper;
import org.superdev.coddy.user.exception.mapper.NotAuthorizedMapper;
import org.superdev.coddy.user.filter.AuthorizationRequestFilter;
import org.superdev.coddy.user.filter.TokenResponseFilter;

@Component
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        // register api endpoint
        register(Hello.class);
        register(User.class);

        //register mapper
        // user mapper
        register(SecurityManager.class);
        register(AuthenticationMapper.class);
        register(ForbiddenMapper.class);
        register(NotAuthorizedMapper.class);
        // generic mapper
        register(ExceptMapper.class);
        register(NotFoundMapper.class);
        register(EntityExistsMapper.class);
        register(EntityNotFoundMapper.class);

        //register request and response filter
        register(AuthorizationRequestFilter.class);
        register(TokenResponseFilter.class);
    }
}
<commit_msg>prefix all api with /api/v1<commit_after>package org.superdev.coddy;

import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;
import org.superdev.coddy.application.api.Hello;
import org.superdev.coddy.application.exception.mapper.EntityNotFoundMapper;
import org.superdev.coddy.application.exception.mapper.ExceptMapper;
import org.superdev.coddy.application.exception.mapper.NotFoundMapper;
import org.superdev.coddy.user.api.User;
import org.superdev.coddy.application.exception.mapper.EntityExistsMapper;
import org.superdev.coddy.user.exception.mapper.AuthenticationMapper;
import org.superdev.coddy.user.exception.mapper.ForbiddenMapper;
import org.superdev.coddy.user.exception.mapper.NotAuthorizedMapper;
import org.superdev.coddy.user.filter.AuthorizationRequestFilter;
import org.superdev.coddy.user.filter.TokenResponseFilter;

import javax.ws.rs.ApplicationPath;

@Component
@ApplicationPath("/api/v1")
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        // register api endpoint
        register(Hello.class);
        register(User.class);

        //register mapper
        // user mapper
        register(SecurityManager.class);
        register(AuthenticationMapper.class);
        register(ForbiddenMapper.class);
        register(NotAuthorizedMapper.class);
        // generic mapper
        register(ExceptMapper.class);
        register(NotFoundMapper.class);
        register(EntityExistsMapper.class);
        register(EntityNotFoundMapper.class);

        //register request and response filter
        register(AuthorizationRequestFilter.class);
        register(TokenResponseFilter.class);
    }
}

{'fraction_non_alphanumeric': 0.09593984962406014, 'fraction_numerical': 0.0006015037593984962, 'mean_word_length': 4.213166144200627, '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': '673410', 'n_tokens_mistral': 899, 'n_tokens_neox': 896, 'n_words': 131}