<commit_before><?PHP  //$Id$

    require_once('../config.php');
    require_once($CFG->dirroot.'/mod/forum/lib.php');

    $confirm = optional_param('confirm', 0, PARAM_BOOL);

    require_login();

    if (!isadmin()) {
        error("You must be an admin to use this script");
    }

    if ($CFG->version < 2005042300) {
        error("This script does not work with this old version of Moodle");
    }

    if (!$site = get_site()) {
        redirect("index.php");<commit_msg>Fixed Call to undefined function: print_progress() in /usr/share/moodle/admin/upgradeforumread.php; merged from MOODLE_16_STABLE<commit_after><?PHP  //$Id$

    require_once('../config.php');
    require_once($CFG->dirroot.'/mod/forum/lib.php');
    require_once($CFG->libdir.'/adminlib.php');

    $confirm = optional_param('confirm', 0, PARAM_BOOL);

    require_login();

    if (!isadmin()) {
        error("You must be an admin to use this script");
    }

    if ($CFG->version < 2005042300) {
        error("This script does not work with this old version of Moodle");
    }

    if (!$site = get_site()) {
        redirect("index.php");
{'fraction_non_alphanumeric': 0.16444444444444445, 'fraction_numerical': 0.021333333333333333, 'mean_word_length': 3.050359712230216, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '632661', 'n_tokens_mistral': 384, 'n_tokens_neox': 352, 'n_words': 86}