<commit_before>package xyz.papermodloader.tree;

import xyz.papermodloader.tree.util.LauncherManifest;
import xyz.papermodloader.tree.util.delayed.Delayed;
import xyz.papermodloader.tree.util.delayed.DelayedCache;

import java.io.File;
import java.io.IOException;

public class Constants {
    //Setup tasks
    public static final String TASK_DOWNLOAD_ASSETS = "downloadAssets";
    public static final String TASK_DOWNLOAD_CLIENT = "downloadClient";
    public static final String TASK_DOWNLOAD_LIBRARIES = "downloadLibraries";
    public static final String TASK_DOWNLOAD_MAPPINGS = "downloadMappings";
    public static final String TASK_DOWNLOAD_SERVER = "downloadServer";
    public static final String TASK_MERGE = "merge";
    public static final String TASK_DEOBFUSCATE = "deobfuscate";
    public static final String TASK_GENERATE_OBF_INDEX = "generateObfIndex";
    public static final String TASK_GENERATE_DEOBF_INDEX = "generateDeobfIndex";
    public static final String TASK_MAKE_MINECRAFT = "makeMinecraft";
    public static final String TASK_EXTRACT_NATIVES = "extractNatives";
    public static final String TASK_SETUP = "setupPaper";
    public static final String TASK_IDEA = "setupIDEA";

    //Build tasks
    public static final String TASK_MAKE_PAPER = "makePaper";
    public static final String TASK_BUILD = "buildPaper";

    public static final String CONFIG_DEPENDENCIES = "paperDependencies";
    public static final String CONFIG_NATIVES = "paperNatives";

    public static final File CACHE_DIRECTORY = new File(Tree.INSTANCE.getProject().getGradle().getGradleUserHomeDir(), "caches/paper/");
    public static final Delayed<File> ASSET_DIRECTORY = new DelayedCache<>(() -> new File(Constants.MINECRAFT_DIRECTORY.get(), "assets"));
    public static final Delayed<File> CLIENT_JAR = new DelayedCache<>(() -> new File(Constants.MINECRAFT_DIRECTORY.get(), "versions/" + Tree.INSTANCE.getExtension().minecraft + "/" + Tree.INSTANCE.getExtension().minecraft + ".jar"));

    public static final File ASSET_DIRECTORY_CACHE = new File(Constants.CACHE_DIRECTORY, "assets");
    public static final Delayed<File> CLIENT_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-client.jar"));
    public static final Delayed<File> SERVER_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-server.jar"));
    public static final Delayed<File> MERGED_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-merged.jar"));
    public static final Delayed<File> DEOBF_MERGED_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-merged-deobf.jar"));
    public static final Delayed<File> OBF_INDEX_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + "indexes" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + "-obf.index"));
    public static final Delayed<File> DEOBF_INDEX_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + "indexes" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + "-deobf.index"));
    public static final Delayed<File> MINECRAFT_LIBRARY_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "minecraft-" + Tree.INSTANCE.getExtension().minecraft + ".jar"));
    public static final Delayed<File> MAPPINGS_FILE_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + ".mappings"));
    public static final File NATIVES_DIRECTORY_CACHE = new File(Constants.CACHE_DIRECTORY, "natives");

    public static final Delayed<File> RESULT_JAR = new DelayedCache<>(() -> new File(Tree.INSTANCE.getProject().getRootDir(), "build" + File.separator + "libs" + File.separator + Tree.INSTANCE.getProject().getName() + "-" + Tree.INSTANCE.getProject().getVersion() + ".jar"));

    public static final Delayed<File> MINECRAFT_DIRECTORY = new DelayedCache<>(() -> {
        String os = System.getProperty("os.name").toLowerCase();
        if (os.contains("win")) {
            return new File(System.getenv("APPDATA"), ".minecraft");
        } else if (os.contains("mac")) {
            return new File(System.getProperty("user.home", "/Library/Application Support/minecraft"));
        }
        return new File(System.getProperty("user.home", ".minecraft"));
    });<commit_msg>Fix makePaper task on unix<commit_after>package xyz.papermodloader.tree;

import xyz.papermodloader.tree.util.LauncherManifest;
import xyz.papermodloader.tree.util.delayed.Delayed;
import xyz.papermodloader.tree.util.delayed.DelayedCache;

import java.io.File;
import java.io.IOException;
import java.util.Locale;

public class Constants {
    //Setup tasks
    public static final String TASK_DOWNLOAD_ASSETS = "downloadAssets";
    public static final String TASK_DOWNLOAD_CLIENT = "downloadClient";
    public static final String TASK_DOWNLOAD_LIBRARIES = "downloadLibraries";
    public static final String TASK_DOWNLOAD_MAPPINGS = "downloadMappings";
    public static final String TASK_DOWNLOAD_SERVER = "downloadServer";
    public static final String TASK_MERGE = "merge";
    public static final String TASK_DEOBFUSCATE = "deobfuscate";
    public static final String TASK_GENERATE_OBF_INDEX = "generateObfIndex";
    public static final String TASK_GENERATE_DEOBF_INDEX = "generateDeobfIndex";
    public static final String TASK_MAKE_MINECRAFT = "makeMinecraft";
    public static final String TASK_EXTRACT_NATIVES = "extractNatives";
    public static final String TASK_SETUP = "setupPaper";
    public static final String TASK_IDEA = "setupIDEA";

    //Build tasks
    public static final String TASK_MAKE_PAPER = "makePaper";
    public static final String TASK_BUILD = "buildPaper";

    public static final String CONFIG_DEPENDENCIES = "paperDependencies";
    public static final String CONFIG_NATIVES = "paperNatives";

    public static final File CACHE_DIRECTORY = new File(Tree.INSTANCE.getProject().getGradle().getGradleUserHomeDir(), "caches/paper/");
    public static final Delayed<File> ASSET_DIRECTORY = new DelayedCache<>(() -> new File(Constants.MINECRAFT_DIRECTORY.get(), "assets"));
    public static final Delayed<File> CLIENT_JAR = new DelayedCache<>(() -> new File(Constants.MINECRAFT_DIRECTORY.get(), "versions/" + Tree.INSTANCE.getExtension().minecraft + "/" + Tree.INSTANCE.getExtension().minecraft + ".jar"));

    public static final File ASSET_DIRECTORY_CACHE = new File(Constants.CACHE_DIRECTORY, "assets");
    public static final Delayed<File> CLIENT_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-client.jar"));
    public static final Delayed<File> SERVER_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-server.jar"));
    public static final Delayed<File> MERGED_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-merged.jar"));
    public static final Delayed<File> DEOBF_MERGED_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, Tree.INSTANCE.getExtension().minecraft + "-merged-deobf.jar"));
    public static final Delayed<File> OBF_INDEX_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + "indexes" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + "-obf.index"));
    public static final Delayed<File> DEOBF_INDEX_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + "indexes" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + "-deobf.index"));
    public static final Delayed<File> MINECRAFT_LIBRARY_JAR_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "minecraft-" + Tree.INSTANCE.getExtension().minecraft + ".jar"));
    public static final Delayed<File> MAPPINGS_FILE_CACHE = new DelayedCache<>(() -> new File(CACHE_DIRECTORY, "mappings" + File.separator + Tree.INSTANCE.getExtension().minecraft + "-" + Tree.INSTANCE.getExtension().mappings + ".mappings"));
    public static final File NATIVES_DIRECTORY_CACHE = new File(Constants.CACHE_DIRECTORY, "natives");

    public static final Delayed<File> RESULT_JAR = new DelayedCache<>(() -> new File(Tree.INSTANCE.getProject().getRootDir(), "build" + File.separator + "libs" + File.separator + Tree.INSTANCE.getProject().getName().toLowerCase(Locale.ENGLISH) + "-" + Tree.INSTANCE.getProject().getVersion() + ".jar"));

    public static final Delayed<File> MINECRAFT_DIRECTORY = new DelayedCache<>(() -> {
        String os = System.getProperty("os.name").toLowerCase();
        if (os.contains("win")) {
            return new File(System.getenv("APPDATA"), ".minecraft");
        } else if (os.contains("mac")) {
            return new File(System.getProperty("user.home", "/Library/Application Support/minecraft"));
        }
        return new File(System.getProperty("user.home", ".minecraft"));
    });
{'fraction_non_alphanumeric': 0.12862046771079166, 'fraction_numerical': 0.0, 'mean_word_length': 5.081539465101109, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '974828', 'n_tokens_mistral': 2826, 'n_tokens_neox': 2780, 'n_words': 634}