<commit_before><?php
if (!defined('NELLIEL_VERSION'))
{
    die("NOPE.AVI");
}

function nel_regen_threads($dataforce, $write, $ids)
{
    require_once INCLUDE_PATH . 'output-filter.php';
    require_once INCLUDE_PATH . 'output/thread-generation.php';
    $threads = count($ids);
    $i = 0;

    while ($i < $threads)
    {
        nel_thread_generator($dataforce, $write, $ids[$i]);
        ++ $i;
    }
}

function nel_regen_cache($dataforce)
{
    nel_cache_filetype_settings();
    nel_cache_board_settings();
}

function nel_regen_index($dataforce)
{
    require_once INCLUDE_PATH . 'output-filter.php';
    require_once INCLUDE_PATH . 'output/main-generation.php';
    nel_update_archive_status($dataforce);
    $dataforce['response_id'] = 0;
    $link_resno = 0;
    nel_main_thread_generator($dataforce, true);
}

function nel_regen_all_pages($dataforce)
{
    $dbh = nel_database();
    $result =  $dbh->query('SELECT "thread_id" FROM "' . THREAD_TABLE . '" WHERE "archive_status" = 0');
    $ids = $result->fetchAll(PDO::FETCH_COLUMN);
    nel_regen_threads($dataforce, true, $ids);
    nel_regen_index($dataforce);
}
<commit_msg>Move requires<commit_after><?php
if (!defined('NELLIEL_VERSION'))
{
    die("NOPE.AVI");
}

require_once INCLUDE_PATH . 'output-filter.php';
require_once INCLUDE_PATH . 'output/main-generation.php';
require_once INCLUDE_PATH . 'output/thread-generation.php';

function nel_regen_threads($dataforce, $write, $ids)
{
    $threads = count($ids);
    $i = 0;

    while ($i < $threads)
    {
        nel_thread_generator($dataforce, $write, $ids[$i]);
        ++ $i;
    }
}

function nel_regen_cache($dataforce)
{
    nel_cache_filetype_settings();
    nel_cache_board_settings();
}

function nel_regen_index($dataforce)
{
    nel_update_archive_status($dataforce);
    $dataforce['response_id'] = 0;
    $link_resno = 0;
    nel_main_thread_generator($dataforce, true);
}

function nel_regen_all_pages($dataforce)
{
    $dbh = nel_database();
    $result =  $dbh->query('SELECT "thread_id" FROM "' . THREAD_TABLE . '" WHERE "archive_status" = 0');
    $ids = $result->fetchAll(PDO::FETCH_COLUMN);
    nel_regen_threads($dataforce, true, $ids);
    nel_regen_index($dataforce);
}

{'fraction_non_alphanumeric': 0.1532912533814247, 'fraction_numerical': 0.0036068530207394047, 'mean_word_length': 4.359903381642512, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7364676', 'n_tokens_mistral': 818, 'n_tokens_neox': 800, 'n_words': 122}