<commit_before>package com.martin

import com.martin.config.GroovyAppConfiguration
import com.martin.core.Message
import com.martin.health.GroovyAppHealthCheck
import com.martin.resources.MessageResource


import com.yammer.dropwizard.Service
import com.yammer.dropwizard.config.Bootstrap
import com.yammer.dropwizard.config.Environment
import com.yammer.dropwizard.assets.AssetsBundle
import groovy.util.logging.Slf4j


@Slf4j
class MainService extends Service<GroovyAppConfiguration> {

    public static void main(String[] args) throws Exception {
        new MainService().run(args)
    }

    @Override
    void initialize(Bootstrap<GroovyAppConfiguration> bootstrap) {
        println "NOTE LOGGER: $log"
        bootstrap.name = "groovyApp"
        bootstrap.addBundle(new AssetsBundle("/assets/", "/", 'index.html'))
        log.trace "Exit initialize"
    }

    @Override
    void run(GroovyAppConfiguration configuration, Environment environment) throws Exception {
        log.trace "Enter run"

        def message = new Message(saying: configuration.saying)
        log.debug "read message configuration $message"

        environment.addResource(new MessageResource(message: message))
        environment.addHealthCheck(new GroovyAppHealthCheck('groovyApp'))
        log.trace "Exit run"
    }
}
<commit_msg>documenting<commit_after>package com.martin

import com.martin.config.GroovyAppConfiguration
import com.martin.core.Message
import com.martin.health.GroovyAppHealthCheck
import com.martin.resources.MessageResource
import com.yammer.dropwizard.Service
import com.yammer.dropwizard.config.Bootstrap
import com.yammer.dropwizard.config.Environment
import com.yammer.dropwizard.assets.AssetsBundle
import groovy.util.logging.Slf4j

@Slf4j
class MainService extends Service<GroovyAppConfiguration> {

    public static void main(String[] args) throws Exception {
        new MainService().run(args)
    }

    @Override
    void initialize(Bootstrap<GroovyAppConfiguration> bootstrap) {
	// NOTE: logger isn't ready to be used yet
        bootstrap.name = "groovyApp"
        bootstrap.addBundle(new AssetsBundle("/assets/", "/", 'index.html'))
    }

    @Override
    void run(GroovyAppConfiguration configuration, Environment environment) throws Exception {
        log.trace "Enter run"

        def message = new Message(saying: configuration.saying)
        log.debug "read message configuration $message"

        environment.addResource(new MessageResource(message: message))
        environment.addHealthCheck(new GroovyAppHealthCheck('groovyApp'))
        log.trace "Exit run"
    }
}

{'fraction_non_alphanumeric': 0.08993494068120934, 'fraction_numerical': 0.0015308075009567547, 'mean_word_length': 4.065891472868217, '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': '4635453', 'n_tokens_mistral': 777, 'n_tokens_neox': 728, 'n_words': 159}