<commit_before><?php

namespace monad\core;
use monolyth\DependencyContainer;
use monolyth\render\Translate_Parser;
use monolyth\ui\Menu;
use monad\admin\Model;
use monad\admin\Finder;
use monad\admin\Module_Finder;
use Project as Myproject;

$container->using(__NAMESPACE__, function() use($container, $myproject) {
    $container->register(
        'Controller',
        [
            'translateParser' => function() { return new Translate_Parser; },
            'admin' => function() { return new Model; },
            'admins' => function() { return new Finder; },
            'myproject' => $myproject,
            'modules' => function() { return new Module_Finder; },
        ]
    );
});

<commit_msg>these have changed now (and are simpler, yay)<commit_after><?php

namespace monad\core;
use monolyth\DependencyContainer;
use monolyth\render\Translate_Parser;
use monad\admin\Module_Finder;
use Project as Myproject;

$container->using(__NAMESPACE__, function() use($container, $myproject) {
    $container->register(
        'Controller',
        [
            'translateParser' => function() { return new Translate_Parser; },
            'admins' => function() { return new Menu_Finder; },
            'myproject' => $myproject,
            'modules' => function() { return new Module_Finder; },
        ]
    );
    $container->register(
        'Menu_Finder',
        ['menu' => function() { return new Menu_Model; }]
    );        
});


{'fraction_non_alphanumeric': 0.13783597518952448, 'fraction_numerical': 0.0, 'mean_word_length': 2.9456521739130435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '6787152', 'n_tokens_mistral': 421, 'n_tokens_neox': 430, 'n_words': 97}