<commit_before><?php

class ComplexTypeTool {

	private $__refangRegexTable = array(
		'/^hxxp/i' => 'http',
		'/^meow/i' => 'http',
		'/^h\[tt\]p/i' => 'http',
		'/\[\.\]/' => '.',
		'/\[dot\]/' => '.',
		'/\(dot\)/' => '.',
		'/\\\\\./' => '.',
		'/\.+/' => '.',
		'/\[hxxp:\/\/\]/' => 'http://',
		'/\\\/' => '',
		'/[\@]/' => '@'
	);

	private $__tlds = array();

	public function setTLDs($tlds = array()) {
		if (!empty($tlds)) {
			$this->__tlds = $tlds;
		}
		return true;
	}

	public function checkComplexRouter($input, $type, $settings = array()) {
		switch ($type) {
			case 'File':
				return $this->checkComplexFile($input);
				break;
			case 'CnC':
				return $this->checkComplexCnC($input);<commit_msg>chg: Added [:] to the refanging options<commit_after><?php

class ComplexTypeTool {

	private $__refangRegexTable = array(
		'/^hxxp/i' => 'http',
		'/^meow/i' => 'http',
		'/^h\[tt\]p/i' => 'http',
		'/\[\.\]/' => '.',
		'/\[dot\]/' => '.',
		'/\(dot\)/' => '.',
		'/\\\\\./' => '.',
		'/\.+/' => '.',
		'/\[hxxp:\/\/\]/' => 'http://',
		'/\\\/' => '',
		'/[\@]/' => '@',
		'/[\:]/' => ':'
	);

	private $__tlds = array();

	public function setTLDs($tlds = array()) {
		if (!empty($tlds)) {
			$this->__tlds = $tlds;
		}
		return true;
	}

	public function checkComplexRouter($input, $type, $settings = array()) {
		switch ($type) {
			case 'File':
				return $this->checkComplexFile($input);
				break;
			case 'CnC':
				return $this->checkComplexCnC($input);
{'fraction_non_alphanumeric': 0.3204868154158215, 'fraction_numerical': 0.0, 'mean_word_length': 2.5154394299287413, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '5980495', 'n_tokens_mistral': 704, 'n_tokens_neox': 612, 'n_words': 96}