<commit_before><?php

class SV_RedisCache_XenForo_Model_DataRegistry extends XFCP_SV_RedisCache_XenForo_Model_DataRegistry
{
    public function getCredis($cache)
    {
        if (empty($cache))
        {
            return null;
        }
        $cacheBackend = $cache->getBackend();
        if (method_exists($cacheBackend, 'getCredis'))
        {
            return $cacheBackend->getCredis();
        }
        return null;
    }
}<commit_msg>Wrapper around exposing the use of Lua<commit_after><?php

class SV_RedisCache_XenForo_Model_DataRegistry extends XFCP_SV_RedisCache_XenForo_Model_DataRegistry
{
    public function getCredis($cache)
    {
        if (empty($cache))
        {
            return null;
        }
        $cacheBackend = $cache->getBackend();
        if (method_exists($cacheBackend, 'getCredis'))
        {
            return $cacheBackend->getCredis();
        }
        return null;
    }

    public function useLua($cache)
    {
        if (empty($cache))
        {
            return null;
        }
        $cacheBackend = $cache->getBackend();
        if (method_exists($cacheBackend, 'useLua'))
        {
            return $cacheBackend->useLua();
        }
        return null;
    }
}
{'fraction_non_alphanumeric': 0.10440456769983687, 'fraction_numerical': 0.0, 'mean_word_length': 2.0906801007556677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2401973', 'n_tokens_mistral': 367, 'n_tokens_neox': 377, 'n_words': 64}