<commit_before>package com.mcbans.firestar.mcbans;

import java.io.File;

import org.bukkit.util.config.Configuration;

public class Language{
	private Configuration config;
	public Language( String filename ){
		File plugin_settings = new File("plugins/mcbans/language/"+filename+".yml");
		config = new Configuration(plugin_settings);
		config.load();
	}
	public String getFormat( String Message ){
		return config.getString( Message, "No language file loaded!" );
	}
	public String getFormatMessageView( String Message, String Sender, String Date, String message ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%SENDER%", Sender).replaceAll("%DATE%", Date).replaceAll("%MESSAGE%", message);
	}
	public String getFormat( String Message, String PlayerName ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName);
	}
	public String getFormatCount( String Message, String Count ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%COUNT%", Count);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ADMIN%", PlayerAdmin);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin, String Reason ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ADMIN%", PlayerAdmin).replaceAll("%REASON%", Reason);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin, String Reason, String PlayerIP ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%PLAYERIP%", PlayerIP).replaceAll("%ADMIN%", PlayerAdmin).replaceAll("%REASON%", Reason);
	}
	public String getFormatAlts( String Message, String PlayerName, String AltList ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ALTS%", AltList);
	}
}<commit_msg>Added %BADWORD% to language class for ban.java<commit_after>package com.mcbans.firestar.mcbans;

import java.io.File;

import org.bukkit.util.config.Configuration;

public class Language{
	private Configuration config;
	public Language( String filename ){
		File plugin_settings = new File("plugins/mcbans/language/"+filename+".yml");
		config = new Configuration(plugin_settings);
		config.load();
	}
	public String getFormat( String Message ){
		return config.getString( Message, "No language file loaded!" );
	}
	public String getFormatMessageView( String Message, String Sender, String Date, String message ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%SENDER%", Sender).replaceAll("%DATE%", Date).replaceAll("%MESSAGE%", message);
	}
	public String getFormat( String Message, String PlayerName ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName);
	}
	public String getFormatCount( String Message, String Count ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%COUNT%", Count);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ADMIN%", PlayerAdmin);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin, String Reason ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ADMIN%", PlayerAdmin).replaceAll("%REASON%", Reason);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin, String Reason, String PlayerIP ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%PLAYERIP%", PlayerIP).replaceAll("%ADMIN%", PlayerAdmin).replaceAll("%REASON%", Reason);
	}
	public String getFormat( String Message, String PlayerName, String PlayerAdmin, String Reason, String PlayerIP, String Word ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%PLAYERIP%", PlayerIP).replaceAll("%ADMIN%", PlayerAdmin).replaceAll("%REASON%", Reason).replaceAll("%BADWORD%", Word);
	}
	public String getFormatAlts( String Message, String PlayerName, String AltList ){
		return config.getString( Message, "No language file loaded!" ).replaceAll("%PLAYER%", PlayerName).replaceAll("%ALTS%", AltList);
	}
}
{'fraction_non_alphanumeric': 0.13681917211328976, 'fraction_numerical': 0.0, 'mean_word_length': 6.6009933774834435, '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': '665054', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1233, 'n_words': 384}