<commit_before>package edu.oregonstate.mist.locations

import edu.oregonstate.mist.locations.resources.SampleResource
import io.dropwizard.Application
import io.dropwizard.Configuration
import io.dropwizard.setup.Bootstrap
import io.dropwizard.setup.Environment

class LocationApplication extends Application<Configuration>{
    @Override
    public void initialize(Bootstrap<Configuration> bootstrap) {}

    @Override
    public void run(Configuration configuration, Environment environment) {
        environment.jersey().register(new SampleResource())
    }

    public static void main(String[] arguments) throws Exception {
        new LocationApplication().run(arguments)
    }
}<commit_msg>Register location resource in application<commit_after>package edu.oregonstate.mist.locations

import edu.oregonstate.mist.locations.db.LocationDAO
import edu.oregonstate.mist.locations.resources.LocationResource
import edu.oregonstate.mist.locations.resources.SampleResource
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 LocationApplication extends Application<LocationConfiguration>{
    @Override
    public void initialize(Bootstrap<Configuration> bootstrap) {}

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

        environment.jersey().register(new SampleResource())
        environment.jersey().register(new LocationResource(locationDAO))
    }

    public static void main(String[] arguments) throws Exception {
        new LocationApplication().run(arguments)
    }
}
{'fraction_non_alphanumeric': 0.08229166666666667, 'fraction_numerical': 0.0005208333333333333, 'mean_word_length': 5.117834394904459, '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': '5398000', 'n_tokens_mistral': 508, 'n_tokens_neox': 484, 'n_words': 106}