<commit_before><?php

namespace AppBundle\Admin;

use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

/**
 * Class PhotoAdmin
 *
 * @category Admin
 * @package  AppBundle\Admin
 * @author   <NAME> <<EMAIL>>
 */
class PhotoAdmin extends AbstractBaseAdmin
{
    protected $maxPerPage = 50;
    protected $classnameLabel = 'Foto';
    protected $baseRoutePattern = 'audits/photo';
    protected $datagridValues = array(
        '_sort_by'    => 'imageName',
        '_sort_order' => 'asc',
    );

    /**
     * @param FormMapper $formMapper
     */
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
            ->with('General', $this->getFormMdSuccessBoxArray(7))
            ->add(
                'bladeDamage',
                null,
                array(
                    'attr' => array(
                        'hidden' => true,
                    ),
                )
            )
            ->add(
                'imageFile',
                'file',
                array(
                    'label'       => 'Foto',
                    'sonata_help' => $this->getImageHelperFormMapperWithThumbnail(),
                    'required'    => false,
                )
            )
//            ->end()
//            ->with('Geolocalització', $this->getFormMdSuccessBoxArray(12))
//            ->add(<commit_msg>add hel method in photoadmin<commit_after><?php

namespace AppBundle\Admin;

use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

/**
 * Class PhotoAdmin
 *
 * @category Admin
 * @package  AppBundle\Admin
 * @author   <NAME> <<EMAIL>>
 */
class PhotoAdmin extends AbstractBaseAdmin
{
    protected $maxPerPage = 50;
    protected $classnameLabel = 'Foto';
    protected $baseRoutePattern = 'audits/photo';
    protected $datagridValues = array(
        '_sort_by'    => 'imageName',
        '_sort_order' => 'asc',
    );

    /**
     * @param FormMapper $formMapper
     */
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
            ->with('General', $this->getFormMdSuccessBoxArray(7))
            ->add(
                'bladeDamage',
                null,
                array(
                    'attr' => array(
                        'hidden' => true,
                    ),
                )
            )
            ->add(
                'imageFile',
                'file',
                array(
                    'label'       => 'Foto',
                    'help'        => $this->getImageHelperFormMapperWithThumbnail(),
                    'sonata_help' => $this->getImageHelperFormMapperWithThumbnail(),
                    'required'    => false,
                )
            )
//            ->end()
//            ->with('Geolocalització', $this->getFormMdSuccessBoxArray(12))
//            ->add(
{'fraction_non_alphanumeric': 0.12274849899933289, 'fraction_numerical': 0.00333555703802535, 'mean_word_length': 1.5588737201365188, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 43, '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': '2212829', 'n_tokens_mistral': 852, 'n_tokens_neox': 817, 'n_words': 145}