<commit_before><?php

/**
 * This file is part of TwigView.
 *
 ** (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace WyriHaximus\CakePHP\TwigView\Lib\Twig\Extension;

/**
 * Class String
 * @package WyriHaximus\CakePHP\TwigView\Lib\Twig\Extension
 */
class String extends \Twig_Extension {

    /**
     * @return array
     */
    public function getFilters() {
		return [
            'substr' => new \Twig_Filter_Function('substr'),
            'tokenize' => new \Twig_Filter_Function('Cake\Utility\String::tokenize'),
            'insert' => new \Twig_Filter_Function('Cake\Utility\String::insert'),
            'cleanInsert' => new \Twig_Filter_Function('Cake\Utility\String::cleanInsert'),
            'wrap' => new \Twig_Filter_Function('Cake\Utility\String::wrap'),
            'wordWrap' => new \Twig_Filter_Function('Cake\Utility\String::wordWrap'),
            'highlight' => new \Twig_Filter_Function('Cake\Utility\String::highlight'),
            'tail' => new \Twig_Filter_Function('Cake\Utility\String::tail'),
            'truncate' => new \Twig_Filter_Function('Cake\Utility\String::truncate'),
            'excerpt' => new \Twig_Filter_Function('Cake\Utility\String::excerpt'),
            'toList' => new \Twig_Filter_Function('Cake\Utility\String::toList'),
            'stripLinks' => new \Twig_Filter_Function('Cake\Utility\String::stripLinks'),
			'isMultibyte' => new \Twig_Filter_Function('Cake\Utility\String::isMultibyte'),
			'utf8' => new \Twig_Filter_Function('Cake\Utility\String::utf8'),
			'ascii' => new \Twig_Filter_Function('Cake\Utility\String::ascii'),
		];
	}

    /**
     * @return array
     */
    public function getFunctions() {
        return [
            'uuid' => new \Twig_Filter_Function('Cake\Utility\String::uuid'),
        ];
    }

    /**
     * @return string
     */
    public function getName() {
		return 'string';<commit_msg>Moved String extension filters over to \Twig_SimpleFilter<commit_after><?php

/**
 * This file is part of TwigView.
 *
 ** (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace WyriHaximus\CakePHP\TwigView\Lib\Twig\Extension;

/**
 * Class String
 * @package WyriHaximus\CakePHP\TwigView\Lib\Twig\Extension
 */
class String extends \Twig_Extension {

    /**
     * @return array
     */
    public function getFilters() {
		return [
            new \Twig_SimpleFilter('substr', 'substr'),
            new \Twig_SimpleFilter('tokenize', 'Cake\Utility\String::tokenize'),
            new \Twig_SimpleFilter('insert', 'Cake\Utility\String::insert'),
            new \Twig_SimpleFilter('cleanInsert', 'Cake\Utility\String::cleanInsert'),
            new \Twig_SimpleFilter('wrap', 'Cake\Utility\String::wrap'),
            new \Twig_SimpleFilter('wordWrap', 'Cake\Utility\String::wordWrap'),
            new \Twig_SimpleFilter('highlight', 'Cake\Utility\String::highlight'),
            new \Twig_SimpleFilter('tail', 'Cake\Utility\String::tail'),
            new \Twig_SimpleFilter('truncate', 'Cake\Utility\String::truncate'),
            new \Twig_SimpleFilter('excerpt', 'Cake\Utility\String::excerpt'),
            new \Twig_SimpleFilter('toList', 'Cake\Utility\String::toList'),
            new \Twig_SimpleFilter('stripLinks', 'Cake\Utility\String::stripLinks'),
			new \Twig_SimpleFilter('isMultibyte', 'Cake\Utility\String::isMultibyte'),
			new \Twig_SimpleFilter('utf8', 'Cake\Utility\String::utf8'),
			new \Twig_SimpleFilter('ascii', 'Cake\Utility\String::ascii'),
		];
	}

    /**
     * @return array
     */
    public function getFunctions() {
        return [
            'uuid' => new \Twig_Filter_Function('Cake\Utility\String::uuid'),
        ];
    }

    /**
     * @return string
     */
    public function getName() {
		return 'string';
{'fraction_non_alphanumeric': 0.15097197677354204, 'fraction_numerical': 0.003029537995455693, 'mean_word_length': 3.1400208986415885, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 22, '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': '4312274', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1250, 'n_words': 217}