<commit_before><?php

namespace PHPoole\Renderer;

use Cocur\Slugify\Bridge\Twig\SlugifyExtension;
use Cocur\Slugify\Slugify;
use PHPoole\Page\Page;

/**
 * Class TwigExtensionUrlize.
 */
class TwigExtensionUrlize extends SlugifyExtension
{
    /**
     * Constructor.
     */
    public function __construct()
    {
        parent::__construct(Slugify::create([
            'regexp' => Page::SLUGIFY_PATTERN]
        ));
    }

    /**
     * Name of this extension.
     *
     * @return string
     */
    public function getName()
    {
        return 'urlize_extension';
    }

    /**
     * Returns a list of filters.<commit_msg>Applied fixes from StyleCI (#80)<commit_after><?php

namespace PHPoole\Renderer;

use Cocur\Slugify\Bridge\Twig\SlugifyExtension;
use Cocur\Slugify\Slugify;
use PHPoole\Page\Page;

/**
 * Class TwigExtensionUrlize.
 */
class TwigExtensionUrlize extends SlugifyExtension
{
    /**
     * Constructor.
     */
    public function __construct()
    {
        parent::__construct(Slugify::create([
            'regexp' => Page::SLUGIFY_PATTERN,
        ]));
    }

    /**
     * Name of this extension.
     *
     * @return string
     */
    public function getName()
    {
        return 'urlize_extension';
    }

    /**
     * Returns a list of filters.
{'fraction_non_alphanumeric': 0.12074303405572756, 'fraction_numerical': 0.0015479876160990713, 'mean_word_length': 2.3410852713178296, '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': '913665', 'n_tokens_mistral': 426, 'n_tokens_neox': 413, 'n_words': 79}