<commit_before>package org.jim.bukkit.audit.apply;

import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jim.bukkit.audit.util.Logs;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 检验装备的审核
 * 
 * @author jimliang
 *
 */
public class MaterialAudit {

	private Set<Material> materials = new HashSet<Material>();

	public void addMaterial(Material m) {
		materials.add(m);
		Logs.info("Add audit metarial: " + m + "(" + m.getId() + ")");
	}

	@SuppressWarnings("deprecation")
	public void addMaterial(String type) {
		if (type != null)
			addMaterial(Material.getMaterial(type));<commit_msg>update to 1.14.2<commit_after>package org.jim.bukkit.audit.apply;

import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jim.bukkit.audit.util.Logs;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 检验装备的审核
 * 
 * @author jimliang
 *
 */
public class MaterialAudit {

	private Set<Material> materials = new HashSet<Material>();

	public void addMaterial(Material m) {
		materials.add(m);
        Logs.info("Add audit metarial: " + m + "(" + m.name() + ")");
	}

	@SuppressWarnings("deprecation")
	public void addMaterial(String type) {
		if (type != null)
			addMaterial(Material.getMaterial(type));
{'fraction_non_alphanumeric': 0.14507042253521127, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 4.529182879377432, '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': '1215981', 'n_tokens_mistral': 532, 'n_tokens_neox': 515, 'n_words': 97}