<commit_before><?php

declare(strict_types=1);

/*
 * This file is part of the `idea` project.
 *
 * (c) <NAME>CO <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace App\Admin;

use App\Entity\TelegramChat;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\FormatterBundle\Form\Type\SimpleFormatterType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;

class TelegramChatAdmin extends AbstractAdmin
{
    protected function configureFormFields(FormMapper $form)
    {
        $form
            ->add('title', null, [
                'disabled' => true,
            ])
            ->add('active', null, [
                'required' => false,
            ])
            ->add('welcomeMessage', SimpleFormatterType::class, [
                'format' => 'richhtml',
                'ckeditor_context' => 'simple_toolbar',
                'attr' => ['rows' => 20],
            ])
        ;
    }

    /**
     * {@inheritdoc}
     */
    protected function configureListFields(ListMapper $list): void
    {
        $list
            ->addIdentifier('id', null, [
                'route' => ['name' => 'show'],<commit_msg>Fixed code style<commit_after><?php

declare(strict_types=1);

/*
 * This file is part of the `idea` project.
 *
 * (c) <NAME> UCO <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace App\Admin;

use App\Entity\TelegramChat;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\FormatterBundle\Form\Type\SimpleFormatterType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;

class TelegramChatAdmin extends AbstractAdmin
{
    protected function configureFormFields(FormMapper $form): void
    {
        $form
            ->add('title', null, [
                'disabled' => true,
            ])
            ->add('active', null, [
                'required' => false,
            ])
            ->add('welcomeMessage', SimpleFormatterType::class, [
                'format' => 'richhtml',
                'ckeditor_context' => 'simple_toolbar',
                'attr' => ['rows' => 20],
            ])
        ;
    }

    /**
     * {@inheritdoc}
     */
    protected function configureListFields(ListMapper $list): void
    {
        $list
            ->addIdentifier('id', null, [
                'route' => ['name' => 'show'],
{'fraction_non_alphanumeric': 0.12649982859101816, 'fraction_numerical': 0.002056907781967775, 'mean_word_length': 2.5199034981905912, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, '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': '3807291', 'n_tokens_mistral': 841, 'n_tokens_neox': 824, 'n_words': 183}