<commit_before><?php
/*
 *	Made by Samerton
 *  https://github.com/NamelessMC/Nameless/
 *  NamelessMC version 2.0.0-pr2
 *
 *  License: MIT
 *
 *  Output class
 */ 
class Output {
	
	// Returns a clean version of an inputted string
	// Params: $input (string) - contains the string which will be cleaned
	public static function getClean($input){
		return str_replace('&amp;', '&', htmlspecialchars($input));
	}
	
	// Returns a purified version of an inputted string with HTMLPurifier
	// Params: $input (string) - contains the string which will be purified
	public static function getPurified($input){<commit_msg>Add ENT_QUOTES flag to Output getClean function<commit_after><?php
/*
 *	Made by Samerton
 *  https://github.com/NamelessMC/Nameless/
 *  NamelessMC version 2.0.0-pr4
 *
 *  License: MIT
 *
 *  Output class
 */ 
class Output {
	
	// Returns a clean version of an inputted string
	// Params: $input (string) - contains the string which will be cleaned
	public static function getClean($input){
		return str_replace('&amp;', '&', htmlspecialchars($input, ENT_QUOTES));
	}
	
	// Returns a purified version of an inputted string with HTMLPurifier
	// Params: $input (string) - contains the string which will be purified
	public static function getPurified($input){
{'fraction_non_alphanumeric': 0.11067503924646782, 'fraction_numerical': 0.006279434850863423, 'mean_word_length': 3.866412213740458, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3674832', 'n_tokens_mistral': 410, 'n_tokens_neox': 389, 'n_words': 132}