<commit_before><?php

/**
 * Default configuration settings for the Spam Protection module.
 *
 * You should not put your own configuration in here rather use your
 * mysite/_config.php file
 *
 * @package spamprotection
 */

if(class_exists('Comment')) {
	/**
	 * If the comments module is installed then add the spam protection module 
	 * to the comments form via this extension
	 */
	Object::add_extension('CommentingController', 'CommentSpamProtection');
}<commit_msg>More accurate class_exists() check<commit_after><?php

/**
 * Default configuration settings for the Spam Protection module.
 *
 * You should not put your own configuration in here rather use your
 * mysite/_config.php file
 *
 * @package spamprotection
 */

if(class_exists('CommentingController')) {
	/**
	 * If the comments module is installed then add the spam protection module 
	 * to the comments form via this extension
	 */
	Object::add_extension('CommentingController', 'CommentSpamProtection');
}
{'fraction_non_alphanumeric': 0.09387755102040816, 'fraction_numerical': 0.0, 'mean_word_length': 4.637931034482759, 'pattern_counts': {'":': 0, '<': 5, '<?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': '284651', 'n_tokens_mistral': 261, 'n_tokens_neox': 247, 'n_words': 97}