<commit_before><?php

$lines = array(
    'User-agent: *',
    'Allow: /',
    'Disallow: '.URL_BASE.'rest/',
);

foreach (WebModule::getAllModules() as $module) {
    if (!$module->allowRobots()) {
        $lines[] = 'Disallow: '.URL_BASE.$module->getConfigModule().'/';
    }
}

$output = implode("\n", $lines)."\n";

header('Content-type: text/plain');
print $output;<commit_msg>[KGO-788] Make sure to set allow statement on URL_BASE<commit_after><?php

$lines = array(
    'User-agent: *',
    'Allow: '.URL_BASE,
    'Disallow: '.URL_BASE.'rest/',
);

foreach (WebModule::getAllModules() as $module) {
    if (!$module->allowRobots()) {
        $lines[] = 'Disallow: '.URL_BASE.$module->getConfigModule().'/';
    }
}

$output = implode("\n", $lines)."\n";

header('Content-type: text/plain');
print $output;
{'fraction_non_alphanumeric': 0.23001230012300122, 'fraction_numerical': 0.0036900369003690036, 'mean_word_length': 3.788235294117647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2303751', 'n_tokens_mistral': 295, 'n_tokens_neox': 295, 'n_words': 54}