<commit_before>#!/usr/bin/php
<?php

include __DIR__ . '/../../src/autoloader.php';
$configurator = new s9e\TextFormatter\Configurator;
$tag = $configurator->tags->add('X');
$tag->attributes->add('x')->filterChain->append('#url');
$tag->template = '<a href="{@url}"><xsl:apply-templates/></a>';
$configurator->finalize();

$scores = $relations = array();
foreach (get_declared_classes() as $className)
{
	if (strpos($className, 's9e\\TextFormatter\\Configurator\\') !== 0)
	{
		continue;
	}
	$scores[$className] = 0;
	$relations[$className] = array();
	$class = new ReflectionClass($className);
	foreach ($class->getInterfaceNames() as $interfaceName)
	{
		if (strpos($interfaceName, 's9e\\TextFormatter\\Configurator\\') !== 0)<commit_msg>Preload the PHP rendering engine in the bootstrapped configurator [ci skip]<commit_after>#!/usr/bin/php
<?php

include __DIR__ . '/../../src/autoloader.php';
$configurator = new s9e\TextFormatter\Configurator;
$tag = $configurator->tags->add('X');
$tag->attributes->add('x')->filterChain->append('#url');
$tag->template = '<a href="{@url}"><xsl:apply-templates/></a>';
$configurator->rendering->engine = 'PHP';
$configurator->finalize();

$scores = $relations = array();
foreach (get_declared_classes() as $className)
{
	if (strpos($className, 's9e\\TextFormatter\\Configurator\\') !== 0)
	{
		continue;
	}
	$scores[$className] = 0;
	$relations[$className] = array();
	$class = new ReflectionClass($className);
	foreach ($class->getInterfaceNames() as $interfaceName)
	{
		if (strpos($interfaceName, 's9e\\TextFormatter\\Configurator\\') !== 0)
{'fraction_non_alphanumeric': 0.2178030303030303, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 5.773504273504273, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, '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': '259', 'n_tokens_mistral': 565, 'n_tokens_neox': 539, 'n_words': 95}