<commit_before><?php
chdir(__DIR__ . '/../../');

if (! ZendJobQueue::getCurrentJobId()) {
    header('HTTP/1.1 403 Forbidden');
    exit(1);
}

$hosts = ['mwop.net', 'www.mwop.net', 'staging.mwop.net'];
$rules = [
    'mwop_home'   => '/',
    'mwop_resume' => '/resume',
];

foreach ($hosts as $host) {
    $baseUrl = 'http://' . $host;

    foreach ($rules as $rule => $path) {
        page_cache_remove_cached_contents_by_uri(
            $rule,
            $baseUrl . $path
        );
    }
}

ZendJobQueue::setCurrentJobStatus(ZendJobQueue::OK);
exit(0);<commit_msg>Cleaned up cache clearing script<commit_after><?php
chdir(__DIR__ . '/../../');

if (! ZendJobQueue::getCurrentJobId()) {
    header('HTTP/1.1 403 Forbidden');
    exit(1);
}

$hosts = [
    'mwop.net',
    'www.mwop.net',
    'staging.mwop.net',
];

$rules = [
    'mwop_home'   => '/',
    'mwop_resume' => '/resume',
];

foreach ($hosts as $host) {
    foreach ($rules as $rule => $path) {
        page_cache_remove_cached_contents_by_uri(
            $rule,
            'http://' . $host . $path
        );
    }
}

ZendJobQueue::setCurrentJobStatus(ZendJobQueue::OK);
exit(0);
{'fraction_non_alphanumeric': 0.20381613183000868, 'fraction_numerical': 0.012142237640936688, 'mean_word_length': 2.698717948717949, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '745923', 'n_tokens_mistral': 449, 'n_tokens_neox': 435, 'n_words': 69}