<commit_before><?php namespace App\Http\Controllers;

use App\Classes\User;
use Illuminate\Routing\Controller as BaseController;
use App\JsonForm;
use Carbon\Carbon;
use Input;

class JsonFormController extends BaseController
{
    var $folder = '/sources/forms';
    var $forms = [
        'F101' => 'F101.json',
        'F102' => 'F102.json',
        'F103' => 'F103.json',
        'F104' => 'F104.json',
        'F105' => 'F105.json',
        'F106' => 'F106.json',
    ];

    var $form;
    
	public function submit()
	{
        	$slug=Input::get('form_code');

		if(!in_array($slug, array_keys($this->forms)))
			abort(404);

        $jsonFormPath = public_path().$this->folder.'/'.$this->forms[$slug];

        $jsonForm = new \App\Classes\JsonForm($jsonFormPath);

        if (!$jsonForm->validate()) {
            return response()->json(false, 200, [
                'Content-Type' => 'application/json; charset=UTF-8',
                'charset' => 'UTF-8'
            ], JSON_UNESCAPED_UNICODE);
        }

        $response = $this->form101($slug, $jsonForm);
<commit_msg>Обновил JsonFormController<commit_after><?php namespace App\Http\Controllers;

use App\Classes\User;
use Illuminate\Routing\Controller as BaseController;
use App\JsonForm;
use Carbon\Carbon;
use Input;

class JsonFormController extends BaseController
{
    var $folder = '/sources/forms';
    var $forms = [
        'F101' => 'F101.json',
        'F102' => 'F102.json',
        'F103' => 'F103.json',
        'F104' => 'F104.json',
        'F105' => 'F105.json',
        'F106' => 'F106.json',
        'F107' => 'F107.json',
        'F108' => 'F108.json',
        'F109' => 'F109.json',
    ];

    var $form;
    
	public function submit()
	{
        	$slug=Input::get('form_code');

		if(!in_array($slug, array_keys($this->forms)))
			abort(404);

        $jsonFormPath = public_path().$this->folder.'/'.$this->forms[$slug];

        $jsonForm = new \App\Classes\JsonForm($jsonFormPath);

        if (!$jsonForm->validate()) {
            return response()->json(false, 200, [
                'Content-Type' => 'application/json; charset=UTF-8',
                'charset' => 'UTF-8'
            ], JSON_UNESCAPED_UNICODE);
        }

        $response = $this->form101($slug, $jsonForm);

{'fraction_non_alphanumeric': 0.17766051011433598, 'fraction_numerical': 0.04925241864555849, 'mean_word_length': 2.4892638036809815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 34, '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': '6529715', 'n_tokens_mistral': 852, 'n_tokens_neox': 769, 'n_words': 135}