<commit_before><?php

namespace miranj\cryptographer\twigextensions;

use Craft;
use Craft\web\twig\Environment;
use miranj\cryptographer\Plugin;
use Twig_Extension;
use Twig_Filter;
use Twig_Markup;
use Twig_SimpleFilter;

class CryptographerTwigExtension extends Twig_Extension
{
    public function getName()
    {
        return Craft::t('Cryptographer');
    }
    
    public function getFilters()
    {
        $needs_env = ['needs_environment' => true];
        return [
            new Twig_SimpleFilter('maskNumbers', [$this, 'hashidsEncodeFilter']),
            new Twig_SimpleFilter('unmaskNumbers', [$this, 'hashidsDecodeFilter']),
            new Twig_SimpleFilter('encrypt', [$this, 'encryptFilter']),
            new Twig_SimpleFilter('decrypt', [$this, 'decryptFilter']),<commit_msg>Use Twig_Filter instead of the deprecated Twig_SimpleFilter class<commit_after><?php

namespace miranj\cryptographer\twigextensions;

use Craft;
use Craft\web\twig\Environment;
use miranj\cryptographer\Plugin;
use Twig_Extension;
use Twig_Filter;
use Twig_Markup;

class CryptographerTwigExtension extends Twig_Extension
{
    public function getName()
    {
        return Craft::t('Cryptographer');
    }
    
    public function getFilters()
    {
        $needs_env = ['needs_environment' => true];
        return [
            new Twig_Filter('maskNumbers', [$this, 'hashidsEncodeFilter']),
            new Twig_Filter('unmaskNumbers', [$this, 'hashidsDecodeFilter']),
            new Twig_Filter('encrypt', [$this, 'encryptFilter']),
            new Twig_Filter('decrypt', [$this, 'decryptFilter']),
{'fraction_non_alphanumeric': 0.11526479750778816, 'fraction_numerical': 0.0, 'mean_word_length': 3.8666666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6980618', 'n_tokens_mistral': 496, 'n_tokens_neox': 478, 'n_words': 102}