<commit_before>package com.dua3.utility.lang;

/**
 * A Utility class with general purpose methods.
 */
public class LangUtil {
    
    /**
     * Check that condition is fulfilled.
     *
     * @param condition
     *            condition to test
     * @throws IllegalStateException
     *             if condition is not {@code true}
     */
    public static void check(boolean condition) {
        if (!condition) {
            throw new IllegalStateException();
        }
    }
    
    /**
     * Check that condition is fulfilled.
     *
     * @param condition
     *            condition to test
     * @param fmt
     *            message format (@see {@link String#format(String, Object...)})
     * @param args
     *            format arguments
     * @throws IllegalStateException
     *             if condition is not {@code true}
     */
    public static void check(boolean condition, String fmt, Object... args) {
        if (!condition) {
            String message = String.format(fmt, args);
            throw new IllegalStateException(message);
        }
    }
    
    private LangUtil() {
        // nop
    }
    
}<commit_msg>LangUtil.ignore()<commit_after>package com.dua3.utility.lang;

/**
 * A Utility class with general purpose methods.
 */
public class LangUtil {

    /**
     * Check that condition is fulfilled.
     *
     * @param condition
     *            condition to test
     * @throws IllegalStateException
     *             if condition is not {@code true}
     */
    public static void check(boolean condition) {
        if (!condition) {
            throw new IllegalStateException();
        }
    }

    /**
     * Check that condition is fulfilled.
     *
     * @param condition
     *            condition to test
     * @param fmt
     *            message format (@see {@link String#format(String, Object...)})
     * @param args
     *            format arguments
     * @throws IllegalStateException
     *             if condition is not {@code true}
     */
    public static void check(boolean condition, String fmt, Object... args) {
        if (!condition) {
            String message = String.format(fmt, args);
            throw new IllegalStateException(message);
        }
    }

    /**
     * Do nothing.
     * <p>
     * This method does exactly nothing. It's purpose is to keep static code
     * analysis tools happy that complain about ignored return values of methods
     * like BufferedReader.readLine(). Use this method to explicitly ignore the
     * return value and avoid false positives from static code checkers.
     * </p>
     *
     * @param arg
     *            the variable to ignore
     */
    public static <T> void ignore(T arg) {
        // nop
    }

    private LangUtil() {
        // nop
    }

}
{'fraction_non_alphanumeric': 0.09285714285714286, 'fraction_numerical': 0.0007142857142857143, 'mean_word_length': 1.716779825412221, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5556965', 'n_tokens_mistral': 719, 'n_tokens_neox': 705, 'n_words': 241}