<commit_before>package team.creative.creativecore.common.util.mc;

import net.minecraft.client.resources.language.I18n;

public class LanguageUtils {
    
    public static String translate(String name) {
        return I18n.get(name);
    }
    
    public static String translateOr(String name, String defaultString) {
        String result = I18n.get(name);
        if (name.equals(result))
            return defaultString;
        return name;
    }
    
    public static String translate(String name, Object... args) {
        return I18n.get(name, args);
    }
    
}
<commit_msg>Added can method to LanguageUtils<commit_after>package team.creative.creativecore.common.util.mc;

import net.minecraft.client.resources.language.I18n;

public class LanguageUtils {
    
    public static boolean can(String name) {
        return I18n.exists(name);
    }
    
    public static String translate(String name) {
        return I18n.get(name);
    }
    
    public static String translateOr(String name, String defaultString) {
        String result = I18n.get(name);
        if (name.equals(result))
            return defaultString;
        return name;
    }
    
    public static String translate(String name, Object... args) {
        return I18n.get(name, args);
    }
    
}

{'fraction_non_alphanumeric': 0.09175738724727839, 'fraction_numerical': 0.013996889580093312, 'mean_word_length': 2.5357142857142856, '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': '6722684', 'n_tokens_mistral': 378, 'n_tokens_neox': 370, 'n_words': 91}