<commit_before><?php
namespace Snowcap\SiteBundle\Admin;
use Snowcap\AdminBundle\Admin\Content;
/**
 * Post admin class
 *
 */
class Post extends Content {
    /**
     * @return array
     */
    public function getGridFields()
    {
        return array(
            'id' => array(
                'label' => 'Id'
            ),
            'title' => array(
                'callback' => function($entity){return strtoupper($entity->getTitle());},
                'label' => 'Title'
            ),
        );
    }
    /**
     * @return array
     */
    public function getFormFields()
    {
        return array(
            'title' => array(),
            'slug' => array('type' => 'slug'),
            'tags' => array(
                'type' => 'entity',
                'options' => array(
                    'class' => 'SnowcapSiteBundle:Tag',
                    'property' => 'name',
                    'multiple' => true
                )
            ),
            'body' => array(
                'type' => 'markdown',
            ),
            'published_at' => array(
                'type' => 'datetime',
                'options' => array(
                    'input' => 'datetime',
				    'widget' => 'single_text',
                ),
            ),
        );
    }

    public function getContentTitle($content)
    {
        return $content->getTitle();
    }<commit_msg>post summary in admin<commit_after><?php
namespace Snowcap\SiteBundle\Admin;
use Snowcap\AdminBundle\Admin\Content;
/**
 * Post admin class
 *
 */
class Post extends Content {
    /**
     * @return array
     */
    public function getGridFields()
    {
        return array(
            'id' => array(
                'label' => 'Id'
            ),
            'title' => array(
                'callback' => function($entity){return strtoupper($entity->getTitle());},
                'label' => 'Title'
            ),
        );
    }
    /**
     * @return array
     */
    public function getFormFields()
    {
        return array(
            'title' => array(),
            'slug' => array('type' => 'slug'),
            'tags' => array(
                'type' => 'entity',
                'options' => array(
                    'class' => 'SnowcapSiteBundle:Tag',
                    'property' => 'name',
                    'multiple' => true
                )
            ),
            'summary' => array(
                'type' => 'markdown',
            ),
            'body' => array(
                'type' => 'markdown',
            ),
            'published_at' => array(
                'type' => 'datetime',
                'options' => array(
                    'input' => 'datetime',
				    'widget' => 'single_text',
                ),
            ),
        );
    }

    public function getContentTitle($content)
    {
        return $content->getTitle();
    }
{'fraction_non_alphanumeric': 0.15091727241259953, 'fraction_numerical': 0.0, 'mean_word_length': 1.1977186311787071, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '5092380', 'n_tokens_mistral': 786, 'n_tokens_neox': 749, 'n_words': 153}