<commit_before><?php
/**
 * @author JKetelaar
 */
namespace Parabot\BDN\UserBundle\Controller;

use FOS\UserBundle\Controller\RegistrationController as BaseController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;

class RegistrationController extends BaseController {
    public function registerAction(Request $request) {
        return new JsonResponse('Access page through community', 404);
    }

}<commit_msg>[TASK] Added error message to registration<commit_after><?php
/**
 * @author JKetelaar
 */
namespace Parabot\BDN\UserBundle\Controller;

use FOS\UserBundle\Controller\RegistrationController as BaseController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;

class RegistrationController extends BaseController {
    public function registerAction(Request $request) {
        return new JsonResponse([ 'error' => 'Access page through community' ], 404);
    }

}
{'fraction_non_alphanumeric': 0.09221311475409837, 'fraction_numerical': 0.006147540983606557, 'mean_word_length': 5.601351351351352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '2560562', 'n_tokens_mistral': 262, 'n_tokens_neox': 252, 'n_words': 63}