<commit_before><?php
declare(strict_types = 1);
/**
 * /src/Controller/IndexController.php
 *
 * @author TLe, <NAME> <<EMAIL>>
 */

namespace App\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

/**
 * Class IndexController
 *
 * @package App\Controller
 * @author TLe, <NAME> <<EMAIL>>
 */
class IndexController
{
    /**
     * Default application response when requested root.
     */
    #[Route(
        path: '/',
        methods: [Request::METHOD_GET],
    )]
    public function __invoke(): Response
    {
        return new Response();
    }
}<commit_msg>Refactor/Change default `/` route to respond with JSON response<commit_after><?php
declare(strict_types = 1);
/**
 * /src/Controller/IndexController.php
 *
 * @author TLe, <NAME> <<EMAIL>>
 */

namespace App\Controller;

use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;

/**
 * Class IndexController
 *
 * @package App\Controller
 * @author TLe, <NAME> <<EMAIL>>
 */
class IndexController
{
    /**
     * Default application response when requested root.
     */
    #[Route(
        path: '/',
        methods: [Request::METHOD_GET],
    )]
    public function __invoke(): JsonResponse
    {
        return new JsonResponse();
    }
}
{'fraction_non_alphanumeric': 0.1398002853067047, 'fraction_numerical': 0.0014265335235378032, 'mean_word_length': 3.316923076923077, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2744865', 'n_tokens_mistral': 415, 'n_tokens_neox': 413, 'n_words': 93}