<commit_before>package io.growingabit.jersey;

import java.util.Map;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature;
import org.glassfish.jersey.server.gae.GaeFeature;
import org.glassfish.jersey.servlet.ServletProperties;

import com.google.common.collect.ImmutableMap;

import io.growingabit.backoffice.controllers.InvitationController;
import io.growingabit.jersey.controllers.HealthCheckController;
import io.growingabit.jersey.filters.SecurityFilter;
import io.growingabit.jersey.providers.GsonProvider;

public class Application extends ResourceConfig {

    public Application() {
        this.register(GsonProvider.class);
        this.register(GaeFeature.class);
        this.register(RolesAllowedDynamicFeature.class);

        this.register(SecurityFilter.class);

        // Avoid classpath scanning!!
        // Register all endpoints class here
        this.register(HealthCheckController.class);
        this.register(InvitationController.class);

    /* @formatter:off */
    Map<String, Object> params = new ImmutableMap.Builder<String, Object>()
        .put(ServletProperties.FILTER_FORWARD_ON_404, true)
        .build();
    /* @formatter:on */
        this.addProperties(params);
    }
}<commit_msg>reindent<commit_after>package io.growingabit.jersey;

import java.util.Map;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature;
import org.glassfish.jersey.server.gae.GaeFeature;
import org.glassfish.jersey.servlet.ServletProperties;

import com.google.common.collect.ImmutableMap;

import io.growingabit.backoffice.controllers.InvitationController;
import io.growingabit.jersey.controllers.HealthCheckController;
import io.growingabit.jersey.filters.SecurityFilter;
import io.growingabit.jersey.providers.GsonProvider;

public class Application extends ResourceConfig {

  public Application() {
    this.register(GsonProvider.class);
    this.register(GaeFeature.class);
    this.register(RolesAllowedDynamicFeature.class);

    this.register(SecurityFilter.class);

    // Avoid classpath scanning!!
    // Register all endpoints class here
    this.register(HealthCheckController.class);
    this.register(InvitationController.class);

    /* @formatter:off */
    Map<String, Object> params = new ImmutableMap.Builder<String, Object>().put(ServletProperties.FILTER_FORWARD_ON_404, true).build();
    /* @formatter:on */
    this.addProperties(params);
  }
}
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.002374356944994064, 'mean_word_length': 4.732426303854876, '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': '3750081', 'n_tokens_mistral': 755, 'n_tokens_neox': 711, 'n_words': 108}