<commit_before>
<?php if ($namespace): ?>
namespace <?php echo $namespace ?>;
<?php endif ?>

<?php if (count($imports) > 0): ?>
<?php foreach ($imports as $import): ?>
<?php if ($namespace || false !== strpos($import, '\\')): ?>
use <?php echo $import ?>;
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

/**
 * Creates Puli's core services.
 *
 * This class was auto-generated by Puli.
 *
 * IMPORTANT: Before modifying the code below, set the "factory.auto-generate"
 * configuration key to false:
 *
 *     $ puli config factory.auto-generate false
 *
 * Otherwise any modifications will be overwritten!
 */
class <?php echo $shortClassName ?> implements <?php echo $factoryInterfaceName ?>
{
    /**
     * Creates the resource repository.
     *
     * @return ResourceRepository The created resource repository.
     */
    public function createRepository()
    {
<?php foreach ($repoDeclarations as $declaration): ?>
<?php echo $this->indent($declaration, 8)."\n\n" ?>
<?php endforeach ?>
        return <?php echo $repoVarName ?>;
    }

    /**
     * Creates the resource discovery.
     *
     * @param ResourceRepository <?php echo $repoVarName ?> The resource repository to read from.
     *
     * @return ResourceDiscovery The created resource discovery.
     */
    public function createDiscovery(ResourceRepository <?php echo $repoVarName ?>)
    {
<?php foreach ($discoveryDeclarations as $declaration): ?>
<?php echo $this->indent($declaration, 8)."\n\n" ?>
<?php endforeach ?>
        return <?php echo $discoveryVarName ?>;
    }
}
<commit_msg>Added missing newline to template of GeneratedPuliFactory<commit_after>
<?php if ($namespace): ?>
namespace <?php echo $namespace ?>;
<?php endif ?>

<?php if (count($imports) > 0): ?>
<?php foreach ($imports as $import): ?>
<?php if ($namespace || false !== strpos($import, '\\')): ?>
use <?php echo $import ?>;
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

/**
 * Creates Puli's core services.
 *
 * This class was auto-generated by Puli.
 *
 * IMPORTANT: Before modifying the code below, set the "factory.auto-generate"
 * configuration key to false:
 *
 *     $ puli config factory.auto-generate false
 *
 * Otherwise any modifications will be overwritten!
 */
class <?php echo $shortClassName ?> implements <?php echo $factoryInterfaceName."\n" ?>
{
    /**
     * Creates the resource repository.
     *
     * @return ResourceRepository The created resource repository.
     */
    public function createRepository()
    {
<?php foreach ($repoDeclarations as $declaration): ?>
<?php echo $this->indent($declaration, 8)."\n\n" ?>
<?php endforeach ?>
        return <?php echo $repoVarName ?>;
    }

    /**
     * Creates the resource discovery.
     *
     * @param ResourceRepository <?php echo $repoVarName ?> The resource repository to read from.
     *
     * @return ResourceDiscovery The created resource discovery.
     */
    public function createDiscovery(ResourceRepository <?php echo $repoVarName ?>)
    {
<?php foreach ($discoveryDeclarations as $declaration): ?>
<?php echo $this->indent($declaration, 8)."\n\n" ?>
<?php endforeach ?>
        return <?php echo $discoveryVarName ?>;
    }
}

{'fraction_non_alphanumeric': 0.14926309187833176, 'fraction_numerical': 0.0018814675446848542, 'mean_word_length': 3.550641940085592, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 53, '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': '5204804', 'n_tokens_mistral': 912, 'n_tokens_neox': 888, 'n_words': 296}