<commit_before><?php namespace Interpro\AdminGenerator\Laravel\Http\Controllers;

use App\Http\Controllers\Controller;
use Interpro\AdminGenerator\Laravel\AdminGenerator;

class AdminGeneratorController extends Controller
{

    public function generateAll()
    {

        try{
        $generator = new AdminGenerator;
            $generator->MakeDirectory();
        $config = config('qstorage');
        $msg = '';
        foreach($config as $key=>$value) {
            $generator->makeBlock($key);
            $msg += 'Блок сгенерирован  ' . $key . '</br>';
        }
            return $msg;
        }catch(\Exception $exception){
            return 'Что то пошло не так'.$exception->getMessage();
        }




    }
    public function generateBlock($block)
    {
        try{
            $generator = new AdminGenerator;<commit_msg>controller fix<commit_after><?php namespace Interpro\AdminGenerator\Laravel\Http\Controllers;

use App\Http\Controllers\Controller;
use Interpro\AdminGenerator\Laravel\AdminGenerator;

class AdminGeneratorController extends Controller
{

    public function generateAll()
    {

        try{
        $generator = new AdminGenerator;
            $generator->MakeDirectory();
        $config = config('qstorage');
        $msg = '';
        foreach($config as $key=>$value) {
            $generator->makeBlock($key);
            $msg = $msg.'Блок сгенерирован  ' . $key . '</br>';
        }
            return $msg;
        }catch(\Exception $exception){
            return 'Что то пошло не так'.$exception->getMessage();
        }




    }
    public function generateBlock($block)
    {
        try{
            $generator = new AdminGenerator;
{'fraction_non_alphanumeric': 0.12047477744807121, 'fraction_numerical': 0.0, 'mean_word_length': 2.299412915851272, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '7484640', 'n_tokens_mistral': 456, 'n_tokens_neox': 454, 'n_words': 96}