<commit_before>from classes.specializedRequesters import CMSReqMD5, CMSReqString, CMSReqRegex, CMSReqHeader

class CakePHPString(CMSReqString):
	def __init__(self, host, cache, results):
		super().__init__(host, cache, results)
		self.name	= "CakePHP"
		self.prefix	= [""]
		self.data_file	= "data/cms/string/cakephp.json"


class CakePHPHeader(CMSReqHeader):
	def __init__(self, host, cache, results):
		super().__init__(host, cache, results)
		self.name = "CakePHP"
		self.data_file = "data/cms/header/cakephp.json"

def get_instances(host, cache, results):
	return [
		CakePHPString(host, cache, results),
		CakePHPHeader(host, cache, results),
	]<commit_msg>Added regex module<commit_after>from classes.specializedRequesters import CMSReqMD5, CMSReqString, CMSReqRegex, CMSReqHeader

class CakePHPString(CMSReqString):
	def __init__(self, host, cache, results):
		super().__init__(host, cache, results)
		self.name	= "CakePHP"
		self.prefix	= [""]
		self.data_file	= "data/cms/string/cakephp.json"


class CakePHPRegex(CMSReqRegex):
        def __init__(self, host, cache, results):
                super().__init__(host, cache, results)
                self.name       = "CakePHP"
                self.prefix     = [""]
                self.data_file  = "data/cms/regex/cakephp.json"


class CakePHPHeader(CMSReqHeader):
	def __init__(self, host, cache, results):
		super().__init__(host, cache, results)
		self.name = "CakePHP"
		self.data_file = "data/cms/header/cakephp.json"


def get_instances(host, cache, results):
	return [
		CakePHPString(host, cache, results),
		CakePHPRegex(host, cache, results),
		CakePHPHeader(host, cache, results),
	]
{'fraction_non_alphanumeric': 0.12749244712990937, 'fraction_numerical': 0.0012084592145015106, 'mean_word_length': 4.2907348242811505, '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': '5959719', 'n_tokens_mistral': 608, 'n_tokens_neox': 552, 'n_words': 114}