<commit_before><?php

namespace {{ namespace }}\Controller;

{% block use_statements %}
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
{% if 'annotation' == format -%}
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
{% endif %}
{% endblock use_statements %}

{% block class_definition %}
class DefaultController extends Controller
{% endblock class_definition %}
{
{% block class_body %}
    {% if 'annotation' == format -%}
    /**
     * @Route("/")
     * @Template()
     */
    {% endif -%}
    public function indexAction()
    {
        $request = $this->container->get('request');
        $bundleName = $request->attributes->get('_template')->get('bundle');

        {% if 'annotation' != format -%}
        return $this->render('{{ bundle }}:Default:index.html.twig', array('bundleName' => $bundleName));
        {%- else -%}
        return array('bundleName' => $bundleName);
        {%- endif %}

    }
{% endblock class_body %}
}<commit_msg>Add name property to default controller skeleton<commit_after><?php

namespace {{ namespace }}\Controller;

{% block use_statements %}
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
{% if 'annotation' == format -%}
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
{% endif %}
{% endblock use_statements %}

{% block class_definition %}
class DefaultController extends Controller
{% endblock class_definition %}
{
{% block class_body %}
    {% if 'annotation' == format -%}
    /**
     * @Route("/", "home")
     * @Template()
     */
    {% endif -%}
    public function indexAction()
    {
        $request = $this->container->get('request');
        $bundleName = $request->attributes->get('_template')->get('bundle');

        {% if 'annotation' != format -%}
        return $this->render('{{ bundle }}:Default:index.html.twig', array('bundleName' => $bundleName));
        {%- else -%}
        return array('bundleName' => $bundleName);
        {%- endif %}

    }
{% endblock class_body %}
}
{'fraction_non_alphanumeric': 0.17208863743517208, 'fraction_numerical': 0.0, 'mean_word_length': 3.5536480686695278, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '4267091', 'n_tokens_mistral': 649, 'n_tokens_neox': 592, 'n_words': 121}