<commit_before><?php

namespace Kunstmaan\SitemapBundle\Twig;

use Kunstmaan\NodeBundle\Helper\NodeMenuItem;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

class SitemapTwigExtension extends AbstractExtension
{
    /**
     * Returns a list of functions to add to the existing list.
     *
     * @return array An array of functions
     */
    public function getFunctions()
    {
        return array(
            new TwigFunction('hide_from_sitemap', array($this, 'isHiddenFromSitemap')),
            new TwigFunction('hide_children_from_sitemap', array($this, 'isHiddenChildrenFromSitemap')),
        );
    }
<commit_msg>[AllBundles] Mark classes extending twig final<commit_after><?php

namespace Kunstmaan\SitemapBundle\Twig;

use Kunstmaan\NodeBundle\Helper\NodeMenuItem;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

/**
 * @final since 5.4
 */
class SitemapTwigExtension extends AbstractExtension
{
    /**
     * Returns a list of functions to add to the existing list.
     *
     * @return array An array of functions
     */
    public function getFunctions()
    {
        return array(
            new TwigFunction('hide_from_sitemap', array($this, 'isHiddenFromSitemap')),
            new TwigFunction('hide_children_from_sitemap', array($this, 'isHiddenChildrenFromSitemap')),
        );
    }

{'fraction_non_alphanumeric': 0.0953090096798213, 'fraction_numerical': 0.0014892032762472078, 'mean_word_length': 3.4651162790697674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4201025', 'n_tokens_mistral': 399, 'n_tokens_neox': 402, 'n_words': 94}