<commit_before>package de.qaware.theo.mc;

import de.qaware.theo.mc.model.Metadata;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author andreas.janning
 */
public class MissionController {

    private Map<String, Metadata> metadataList = new HashMap<>();

    public MissionController() {
    }

    public void addMetadata(Metadata metadata) {
        metadataList.put(metadata.getName(), metadata);
    }

    public List<Metadata> allConfigMetadata() {
        return new ArrayList<>(metadataList.values());
    }

    public Map<String, String> getConfigValues(String configName) {
        Metadata metadata = metadataList.get(configName);

        throw new UnsupportedOperationException("not yet implemented");
    }

    public void setConfigValues(String configName, Map<String, String> newValues) {
        throw new UnsupportedOperationException("not yet implemented");
    }

}<commit_msg>Using map instead of list<commit_after>package de.qaware.theo.mc;

import de.qaware.theo.mc.model.Metadata;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author andreas.janning
 */
public class MissionController {

    private Map<String, Metadata> metadataMap = new HashMap<>();

    public MissionController() {
    }

    public void addMetadata(Metadata metadata) {
        metadataMap.put(metadata.getName(), metadata);
    }

    public List<Metadata> allConfigMetadata() {
        return new ArrayList<>(metadataMap.values());
    }

    public Map<String, String> getConfigValues(String configName) {
        Metadata metadata = metadataMap.get(configName);

        throw new UnsupportedOperationException("not yet implemented");
    }

    public void setConfigValues(String configName, Map<String, String> newValues) {
        throw new UnsupportedOperationException("not yet implemented");
    }

}
{'fraction_non_alphanumeric': 0.10732714138286893, 'fraction_numerical': 0.0, 'mean_word_length': 3.8354114713216956, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5834011', 'n_tokens_mistral': 535, 'n_tokens_neox': 521, 'n_words': 128}