<commit_before>package com.demonwav.mcdev.platform.bukkit;

import com.demonwav.mcdev.platform.bukkit.yaml.PluginConfigManager;
import com.demonwav.mcdev.platform.AbstractProject;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;

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

public class BukkitProject extends AbstractProject {

    private static final Map<Project, BukkitProject> map = new HashMap<>();

    private VirtualFile pluginYml;
    @NotNull
    private Project project;

    private PluginConfigManager configManager;

    private BukkitProject(@NotNull Project project) {
        this.project = project;
    }

    @NotNull
    public static BukkitProject getInstance(@NotNull Project project) {
        BukkitProject result;
        if (!map.containsKey(project)) {
            result = new BukkitProject(project);
            map.put(project, result);
        } else {
            return map.get(project);
        }
        return result;
    }

    @NotNull
    public PluginConfigManager getConfigManager() {
        if (configManager == null)
            configManager = new PluginConfigManager(this);
        return configManager;
    }

    @NotNull
    public Project getProject() {
        return project;
    }
<commit_msg>Sprinkle some java 8 on DemonWav<commit_after>package com.demonwav.mcdev.platform.bukkit;

import com.demonwav.mcdev.platform.bukkit.yaml.PluginConfigManager;
import com.demonwav.mcdev.platform.AbstractProject;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;

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

public class BukkitProject extends AbstractProject {

    private static final Map<Project, BukkitProject> map = new HashMap<>();

    private VirtualFile pluginYml;
    @NotNull
    private Project project;

    private PluginConfigManager configManager;

    private BukkitProject(@NotNull Project project) {
        this.project = project;
    }

    @NotNull
    public static BukkitProject getInstance(@NotNull Project project) {
        return map.computeIfAbsent(project, BukkitProject::new);
    }

    @NotNull
    public PluginConfigManager getConfigManager() {
        if (configManager == null) {
            configManager = new PluginConfigManager(this);
        }
        return configManager;
    }

    @NotNull
    public Project getProject() {
        return project;
    }

{'fraction_non_alphanumeric': 0.08330027766759222, 'fraction_numerical': 0.0003966679888932963, 'mean_word_length': 3.2745762711864406, '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': '4667153', 'n_tokens_mistral': 721, 'n_tokens_neox': 694, 'n_words': 162}