<commit_before>package edu.oregonstate.mist.restpr

import com.fasterxml.jackson.databind.SerializationFeature
import edu.oregonstate.mist.restpr.db.UserDAO
import edu.oregonstate.mist.restpr.resources.SampleResource
import edu.oregonstate.mist.restpr.resources.UserResource
import io.dropwizard.Application
import io.dropwizard.Configuration
import io.dropwizard.jdbi.DBIFactory
import io.dropwizard.setup.Bootstrap
import io.dropwizard.setup.Environment
import org.skife.jdbi.v2.DBI

class RESTPRApplication extends Application<RESTPRConfiguration>{

    @Override
    public void initialize(Bootstrap<Configuration> bootstrap) {
      //bootstrap.getObjectMapper().enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS);
    }

    @Override
    public void run(RESTPRConfiguration configuration, Environment environment) {
        final DBIFactory factory = new DBIFactory()
        final DBI jdbi = factory.build(environment, configuration.getDataSourceFactory(),"jdbi")
        final UserDAO myUserDao = jdbi.onDemand(UserDAO.class)

        environment.jersey().register(new SampleResource())
        environment.jersey().register(new UserResource(myUserDao))
    }

    public static void main(String[] arguments) throws Exception {
        new RESTPRApplication().run(arguments);
    }
}
<commit_msg>Register new Season resource and SeasonDAO to RESTPRApplication<commit_after>package edu.oregonstate.mist.restpr

import com.fasterxml.jackson.databind.SerializationFeature
import edu.oregonstate.mist.restpr.db.SeasonDAO
import edu.oregonstate.mist.restpr.db.UserDAO
import edu.oregonstate.mist.restpr.resources.SampleResource
import edu.oregonstate.mist.restpr.resources.SeasonResource
import edu.oregonstate.mist.restpr.resources.UserResource
import io.dropwizard.Application
import io.dropwizard.Configuration
import io.dropwizard.jdbi.DBIFactory
import io.dropwizard.setup.Bootstrap
import io.dropwizard.setup.Environment
import org.skife.jdbi.v2.DBI

class RESTPRApplication extends Application<RESTPRConfiguration>{

    @Override
    public void initialize(Bootstrap<Configuration> bootstrap) {
      //bootstrap.getObjectMapper().enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS);
    }

    @Override
    public void run(RESTPRConfiguration configuration, Environment environment) {
        final DBIFactory factory = new DBIFactory()
        final DBI jdbi = factory.build(environment, configuration.getDataSourceFactory(),"jdbi")
        final UserDAO myUserDao = jdbi.onDemand(UserDAO.class)
        final SeasonDAO mySeasonDao = jdbi.onDemand(SeasonDAO.class)

        environment.jersey().register(new SampleResource())
        environment.jersey().register(new UserResource(myUserDao))
        environment.jersey().register(new SeasonResource(mySeasonDao))
    }

    public static void main(String[] arguments) throws Exception {
        new RESTPRApplication().run(arguments);
    }
}

{'fraction_non_alphanumeric': 0.0874485596707819, 'fraction_numerical': 0.0006858710562414266, 'mean_word_length': 4.940936863543788, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6079474', 'n_tokens_mistral': 868, 'n_tokens_neox': 827, 'n_words': 149}