<commit_before><?php
spl_autoload_register(function ($class) {
	
	if ( 0 !== strpos($class, 'Doctrine\\Search')) {
		return false;
	} 
	
	$path = __DIR__ . '/../lib';
	$file = strtr($class, '\\', '/') . '.php';
	$filename = $path . '/' . $file;
	
	if ( file_exists($filename) ) {
		return (Boolean) require_once $filename;
	}
	
	return false;
} );

require_once __DIR__ . '/../lib/vendor/Buzz/lib/Buzz/ClassLoader.php';
Buzz\ClassLoader::register();<commit_msg>Use doctrine classloader instead of closure<commit_after><?php
require_once __DIR__ . '/../lib/vendor/Buzz/lib/Buzz/ClassLoader.php';
require_once __DIR__ . '/../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php';

// use statements
use Doctrine\Common\ClassLoader;

$loader = new ClassLoader('Doctrine\\Common', __DIR__ . '/../lib/vendor/doctrine-common');
$loader->register();
$loader = new ClassLoader('Doctrine\\Search', __DIR__ . '/../lib');
$loader->register();

Buzz\ClassLoader::register();
{'fraction_non_alphanumeric': 0.2006172839506173, 'fraction_numerical': 0.00102880658436214, 'mean_word_length': 4.2032085561497325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3667710', 'n_tokens_mistral': 340, 'n_tokens_neox': 330, 'n_words': 58}