<commit_before><?php

namespace PlanMyLife\FrontBundle\Twig;

class FrontElementsExtension extends \Twig_Extension
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'planmylife_front_elements_twig_extension';
    }

    /**
     * {@inheritdoc}
     */
    public function getFunctions()
    {
        return array(
            new \Twig_SimpleFunction('title', array($this, 'title'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('link', array($this, 'link'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('button', array($this, 'button'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('quotation', array($this, 'quotation'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('liste', array($this, 'liste'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('accordion', array($this, 'accordion')), array('is_safe' => array('all')),
            new \Twig_SimpleFunction('highlight', array($this, 'highlight'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('table', array($this, 'table'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('image', array($this, 'image'), array('is_safe' => array('all'))),
        );
    }

    /**
     * @param string $content
     * @param int $level
     * @return string
     */
    public function title($content, $level = 1)
    {
        return '<h' . $level . ' class="h' . $level . '">' . $content . '</h' . $level . '>';
    }

    /**
     * @param string $link
     * @param string $content
     * @param array $class
     * @return string
     */
    public function link($link, $content, $class = false)
    {

        $classname = $class ? 'class="' . implode(' ', $class) . '"' : '';

        return '<a href="' . $link . '" ' . $classname . '><span>' . $content . '</span></a>';<commit_msg>:bug: not close bracket before it is end<commit_after><?php

namespace PlanMyLife\FrontBundle\Twig;

class FrontElementsExtension extends \Twig_Extension
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'planmylife_front_elements_twig_extension';
    }

    /**
     * {@inheritdoc}
     */
    public function getFunctions()
    {
        return array(
            new \Twig_SimpleFunction('title', array($this, 'title'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('link', array($this, 'link'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('button', array($this, 'button'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('quotation', array($this, 'quotation'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('liste', array($this, 'liste'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('accordion', array($this, 'accordion'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('highlight', array($this, 'highlight'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('table', array($this, 'table'), array('is_safe' => array('all'))),
            new \Twig_SimpleFunction('image', array($this, 'image'), array('is_safe' => array('all'))),
        );
    }

    /**
     * @param string $content
     * @param int $level
     * @return string
     */
    public function title($content, $level = 1)
    {
        return '<h' . $level . ' class="h' . $level . '">' . $content . '</h' . $level . '>';
    }

    /**
     * @param string $link
     * @param string $content
     * @param array $class
     * @return string
     */
    public function link($link, $content, $class = false)
    {

        $classname = $class ? 'class="' . implode(' ', $class) . '"' : '';

        return '<a href="' . $link . '" ' . $classname . '><span>' . $content . '</span></a>';
{'fraction_non_alphanumeric': 0.19852379740391957, 'fraction_numerical': 0.0005090353779587681, 'mean_word_length': 2.7934362934362933, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 33, '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': '753814', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1195, 'n_words': 254}