<commit_before><?php

namespace {{ namespace }}\Controller{{ entity_namespace ? '\\' ~ entity_namespace : '' }};

{% if 'collection_post' in actions or 'entity_put' in actions or 'entity_delete' in actions %}
use Symfony\Component\HttpFoundation\Request;
{%- endif %}

use ML\HydraBundle\Controller\HydraController;
use ML\HydraBundle\Mapping as Hydra;
{% if 'annotation' == format -%}
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
{%- endif %}

use {{ namespace }}\Entity\{{ entity }};

/**
 * {{ entity }} controller
 *
{% if 'annotation' == format %}
 * @Route("/{{ route_prefix }}")
{% endif %}
 */
class {{ entity_class }}Controller extends HydraController
{

    {%- if 'collection_get' in actions %}
        {%- include 'actions/collection_get.php' %}
    {%- endif %}<commit_msg>Add missing use statement to the generator controller skeleton<commit_after><?php

namespace {{ namespace }}\Controller{{ entity_namespace ? '\\' ~ entity_namespace : '' }};

{% if 'collection_post' in actions or 'entity_put' in actions or 'entity_delete' in actions %}
use Symfony\Component\HttpFoundation\Request;
{%- endif %}

use ML\HydraBundle\Controller\HydraController;
use ML\HydraBundle\Mapping as Hydra;
use ML\HydraBundle\JsonLdResponse;
{% if 'annotation' == format -%}
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
{%- endif %}

use {{ namespace }}\Entity\{{ entity }};

/**
 * {{ entity }} controller
 *
{% if 'annotation' == format %}
 * @Route("/{{ route_prefix }}")
{% endif %}
 */
class {{ entity_class }}Controller extends HydraController
{

    {%- if 'collection_get' in actions %}
        {%- include 'actions/collection_get.php' %}
    {%- endif %}
{'fraction_non_alphanumeric': 0.1620575221238938, 'fraction_numerical': 0.0, 'mean_word_length': 4.6006191950464395, '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': '915738', 'n_tokens_mistral': 582, 'n_tokens_neox': 534, 'n_words': 128}