<commit_before><?php

namespace WBB\BarBundle\Controller\Admin;

use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery;
use WBB\BarBundle\Entity\Ad;
use WBB\CoreBundle\Controller\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Show\ShowMapper;

class AdAdmin extends Admin {

    /**
     * {@inheritdoc}
     */
    protected function configureListFields(ListMapper $listMapper){
        $listMapper
            ->addIdentifier('name')
            ->addIdentifier('position')
            ->add('beginAt', null, array('editable' => true))
            ->add('endAt', null, array('editable' => true))
        ;
    }

    /**
     * {@inheritdoc}
     */
    protected function configureDatagridFilters(DatagridMapper $filterMapper){
        $filterMapper
            ->add('id')
            ->add('name')
            ->add('position')
            ->add('tag')
            ->add('link')
            ->add('countries')
            ->add('createdAfter', 'doctrine_orm_callback',
                array(
                    'label' => 'Created After',
                    'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $value) {<commit_msg>List Ads updated<commit_after><?php

namespace WBB\BarBundle\Controller\Admin;

use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery;
use WBB\BarBundle\Entity\Ad;
use WBB\CoreBundle\Controller\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Show\ShowMapper;

class AdAdmin extends Admin {

    /**
     * {@inheritdoc}
     */
    protected function configureListFields(ListMapper $listMapper){
        $listMapper
            ->addIdentifier('name')
            ->addIdentifier('position')
            ->add('countries')
            ->add('createdAt')
            ->add('beginAt', null, array('editable' => true))
            ->add('endAt', null, array('editable' => true))
        ;
    }

    /**
     * {@inheritdoc}
     */
    protected function configureDatagridFilters(DatagridMapper $filterMapper){
        $filterMapper
            ->add('id')
            ->add('name')
            ->add('position')
            ->add('tag')
            ->add('link')
            ->add('countries')
            ->add('createdAfter', 'doctrine_orm_callback',
                array(
                    'label' => 'Created After',
                    'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $value) {
{'fraction_non_alphanumeric': 0.1395170563434266, 'fraction_numerical': 0.0, 'mean_word_length': 2.3764553686934025, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '6431175', 'n_tokens_mistral': 746, 'n_tokens_neox': 739, 'n_words': 126}