<commit_before>package tc.oc.api.minecraft.config;

import javax.inject.Inject;
import javax.inject.Singleton;

import tc.oc.api.docs.virtual.ServerDoc;
import tc.oc.minecraft.api.configuration.Configuration;

import static com.google.common.base.Preconditions.checkNotNull;

@Singleton
public class MinecraftApiConfigurationImpl implements MinecraftApiConfiguration {

    private final Configuration config;

    @Inject MinecraftApiConfigurationImpl(Configuration config) {
        this.config = config;
    }

    @Override
    public String serverId() {
        return checkNotNull(config.getString("server.id"));
    }

    @Override
    public String datacenter() {
        return checkNotNull(config.getString("server.datacenter"));
    }

    @Override
    public String box() {
        return checkNotNull(config.getString("server.box"));
    }

    @Override
    public ServerDoc.Role role() {
        return ServerDoc.Role.valueOf(config.getString("server.role").toUpperCase());
    }

    @Override
    public boolean publishIp() {
        return config.getBoolean("server.publishIp", true);
    }

    @Override
    public String primaryQueueName() {
        return "server." + serverId();
    }
}<commit_msg>fix standalone pgm<commit_after>package tc.oc.api.minecraft.config;

import javax.inject.Inject;
import javax.inject.Singleton;

import tc.oc.api.docs.virtual.ServerDoc;
import tc.oc.minecraft.api.configuration.Configuration;

import static com.google.common.base.Preconditions.checkNotNull;

@Singleton
public class MinecraftApiConfigurationImpl implements MinecraftApiConfiguration {

    private final Configuration config;

    @Inject MinecraftApiConfigurationImpl(Configuration config) {
        this.config = config;
    }

    @Override
    public String serverId() {
        return checkNotNull(config.getString("server.id"));
    }

    @Override
    public String datacenter() {
        return checkNotNull(config.getString("server.datacenter"));
    }

    @Override
    public String box() {
        return checkNotNull(config.getString("server.box"));
    }

    @Override
    public ServerDoc.Role role() {
        return ServerDoc.Role.valueOf(config.getString("server.role").toUpperCase());
    }

    @Override
    public boolean publishIp() {
        return config.getBoolean("server.publishIp", false);
    }

    @Override
    public String primaryQueueName() {
        return "server." + serverId();
    }
}
{'fraction_non_alphanumeric': 0.1068515497553018, 'fraction_numerical': 0.0, 'mean_word_length': 3.4519056261343013, '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': '3232995', 'n_tokens_mistral': 665, 'n_tokens_neox': 660, 'n_words': 134}