<commit_before><?php

class SV_Utils_Deferred_Search extends XenForo_Deferred_Abstract
{
    public static function SchemaUpdates($requireIndexing)
    {
        if (empty($requireIndexing))
        {
            return;
        }
        if (XenForo_Application::getOptions()->enableElasticsearch && $XenEs = XenForo_Model::create('XenES_Model_Elasticsearch'))
        {

            XenForo_Application::defer(__CLASS__, array('requireIndexing' => $requireIndexing));
        }
    }

    public function execute(array $deferred, array $data, $targetRunTime, &$status)
    {
        $options = XenForo_Application::getOptions();
        if (empty($data))
        {
            return false;
        }
        $requireIndexing = $data['requireIndexing'];<commit_msg>Always do Elastic search schema check<commit_after><?php

class SV_Utils_Deferred_Search extends XenForo_Deferred_Abstract
{
    public static function SchemaUpdates(array $requireIndexing = null)
    {
        if (XenForo_Application::getOptions()->enableElasticsearch && $XenEs = XenForo_Model::create('XenES_Model_Elasticsearch'))
        {

            XenForo_Application::defer(__CLASS__, array('requireIndexing' => $requireIndexing));
        }
    }

    public function execute(array $deferred, array $data, $targetRunTime, &$status)
    {
        $options = XenForo_Application::getOptions();
        if (empty($data))
        {
            return false;
        }
        $requireIndexing = $data['requireIndexing'];
{'fraction_non_alphanumeric': 0.11044176706827309, 'fraction_numerical': 0.0, 'mean_word_length': 3.1298342541436464, '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': '6675039', 'n_tokens_mistral': 432, 'n_tokens_neox': 424, 'n_words': 73}