<commit_before><?php

use exporter\config\config;
use exporter\parser\parser;

require_once 'vendor/autoload.php';

try {
    $config = new config();
} catch (\Exception $e) {
    exceptionhandler::handler("Unable to init config",$e);
}

$parser = new parser();

foreach ($config->getServers() as $server => $serverconfig) {
    echo "Servername: ".$serverconfig['servername']."\n";
    echo "IP        : ".$serverconfig['serverip']."\n";
    $crontab = \exporter\ssh\ssh::getCrontabFromRemoteServer($serverconfig['serverip'],'root');
    $crontab_parsed = $parser->getParsedCrontab($crontab);
    print_r($crontab_parsed);
}

<commit_msg>add pimple<commit_after><?php
use exporter\config\config;
use exporter\parser\parser;
use Pimple\Container;

require_once 'vendor/autoload.php';

$container = new Container();

try {
    $config = new config();
} catch (\Exception $e) {
    exceptionhandler::handler("Unable to init config",$e);
}

$container['config'] = $config;

$parser = new parser();

foreach ($config->getServers() as $server => $serverconfig) {
    echo "Servername: ".$serverconfig['servername']."\n";
    echo "IP        : ".$serverconfig['serverip']."\n";
    $crontab = \exporter\ssh\ssh::getCrontabFromRemoteServer($serverconfig['serverip'],'root');
    $crontab_parsed = $parser->getParsedCrontab($crontab);
    print_r($crontab_parsed);
}



{'fraction_non_alphanumeric': 0.18001469507714915, 'fraction_numerical': 0.0, 'mean_word_length': 4.921739130434783, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3975583', 'n_tokens_mistral': 467, 'n_tokens_neox': 464, 'n_words': 82}