<commit_before>package emergencylanding.k.library.debug;

import k.core.util.Helper;

public class Memory {
    private static long lastF = Memory.getFree();
    private static long lastM = Memory.getMax();
    private static long lastT = Memory.getTotal();

    private Memory() {
        System.out.println("AHEM! Don't create this class!");
        byte[] chrs = "POTATO".getBytes();
        int res = 0;
        for (byte b : chrs) {
            res += b;
        }
        System.exit(res);
    }

    public static void printFree() {
        long free = Memory.getFree();
        System.out.println("FREE_MEM: " + free);
        Memory.lastF = free;
    }

    public static void printMax() {
        long max = Memory.getMax();
        System.out.println("MAX_MEM: " + max);
        Memory.lastM = max;
    }

    public static void printTotal() {
        long total = Memory.getTotal();
        System.out.println("TOTAL_MEM: " + total);
        Memory.lastT = total;
    }

    public static long getFree() {
        return Runtime.getRuntime().freeMemory();
    }

    public static long getMax() {
        return Runtime.getRuntime().maxMemory();
    }<commit_msg>Throw error instead of exiting<commit_after>package emergencylanding.k.library.debug;

import k.core.util.Helper;

public class Memory {
    private static long lastF = Memory.getFree();
    private static long lastM = Memory.getMax();
    private static long lastT = Memory.getTotal();

    private Memory() {
        throw new AssertionError();
    }

    public static void printFree() {
        long free = Memory.getFree();
        System.out.println("FREE_MEM: " + free);
        Memory.lastF = free;
    }

    public static void printMax() {
        long max = Memory.getMax();
        System.out.println("MAX_MEM: " + max);
        Memory.lastM = max;
    }

    public static void printTotal() {
        long total = Memory.getTotal();
        System.out.println("TOTAL_MEM: " + total);
        Memory.lastT = total;
    }

    public static long getFree() {
        return Runtime.getRuntime().freeMemory();
    }

    public static long getMax() {
        return Runtime.getRuntime().maxMemory();
    }
{'fraction_non_alphanumeric': 0.12243033348560987, 'fraction_numerical': 0.00045682960255824577, 'mean_word_length': 2.3282674772036476, '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': '6639864', 'n_tokens_mistral': 643, 'n_tokens_neox': 624, 'n_words': 163}