<commit_before>package no.cantara.jau.persistence;

import no.cantara.jau.serviceconfig.dto.Application;
import no.cantara.jau.serviceconfig.dto.ServiceConfig;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * This class is a mess. Should be totally redesigned after the public API is stable.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a> 2015-07-09.
 */
public class InMemConfigRepo implements ServiceConfigDao {
    private final Map<String, Application> idToApplication;
    private final Map<String, ServiceConfig> serviceConfigs;
    private final Map<String, String> applicationIdToServiceConfigIdMapping;
    private final Map<String, String> clientIdToServiceConfigIdMapping;


    public InMemConfigRepo() {
        this.idToApplication = new HashMap<>();
        this.serviceConfigs = new HashMap<>();
        this.applicationIdToServiceConfigIdMapping = new HashMap<>();
        this.clientIdToServiceConfigIdMapping = new HashMap<>();<commit_msg>Added activation instructins to in memory config<commit_after>package no.cantara.jau.persistence;

import no.cantara.jau.serviceconfig.dto.Application;
import no.cantara.jau.serviceconfig.dto.ServiceConfig;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * This class is a mess. Should be totally redesigned after the public API is stable.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a> 2015-07-09.
 */
//Add @Service and remove @Service from PersistedConfigRepo to activate.
public class InMemConfigRepo implements ServiceConfigDao {
    private final Map<String, Application> idToApplication;
    private final Map<String, ServiceConfig> serviceConfigs;
    private final Map<String, String> applicationIdToServiceConfigIdMapping;
    private final Map<String, String> clientIdToServiceConfigIdMapping;


    public InMemConfigRepo() {
        this.idToApplication = new HashMap<>();
        this.serviceConfigs = new HashMap<>();
        this.applicationIdToServiceConfigIdMapping = new HashMap<>();
        this.clientIdToServiceConfigIdMapping = new HashMap<>();
{'fraction_non_alphanumeric': 0.10018298261665141, 'fraction_numerical': 0.007319304666056725, 'mean_word_length': 4.863270777479893, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3405236', 'n_tokens_mistral': 619, 'n_tokens_neox': 613, 'n_words': 158}