<commit_before>package com.netflix.prana;

import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.netflix.karyon.Karyon;
import com.netflix.karyon.KaryonBootstrapSuite;
import com.netflix.karyon.KaryonServer;
import com.netflix.karyon.archaius.ArchaiusSuite;
import com.netflix.karyon.eureka.KaryonEurekaModule;
import com.netflix.prana.config.PranaConfig;
import com.netflix.prana.http.api.SimpleRouter;

public class MainModule extends AbstractModule {

    private PranaConfig config;

    public MainModule(PranaConfig config) {
        this.config = config;
    }

    @Override
    protected void configure() {
    }

    @Provides
    @Singleton
    @Inject
    public KaryonServer providesKaryonSever(SimpleRouter simpleRouter) {
        return Karyon.forRequestHandler(config.getHttpPort(),
                simpleRouter,
                new KaryonBootstrapSuite(),
                KaryonEurekaModule.asSuite(),
                new ArchaiusSuite("prana")
        );
    }
}<commit_msg>Using the AppName from PranaConfig<commit_after>package com.netflix.prana;

import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.netflix.karyon.Karyon;
import com.netflix.karyon.KaryonBootstrapSuite;
import com.netflix.karyon.KaryonServer;
import com.netflix.karyon.archaius.ArchaiusSuite;
import com.netflix.karyon.eureka.KaryonEurekaModule;
import com.netflix.prana.config.PranaConfig;
import com.netflix.prana.http.api.SimpleRouter;

public class MainModule extends AbstractModule {

    private PranaConfig config;

    public MainModule(PranaConfig config) {
        this.config = config;
    }

    @Override
    protected void configure() {
    }

    @Provides
    @Singleton
    @Inject
    public KaryonServer providesKaryonSever(SimpleRouter simpleRouter) {
        return Karyon.forRequestHandler(config.getHttpPort(),
                simpleRouter,
                new KaryonBootstrapSuite(),
                KaryonEurekaModule.asSuite(),
                new ArchaiusSuite(config.getAppName())
        );
    }
}
{'fraction_non_alphanumeric': 0.08779828905898245, 'fraction_numerical': 0.0, 'mean_word_length': 3.444, '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': '3218512', 'n_tokens_mistral': 705, 'n_tokens_neox': 691, 'n_words': 116}