<commit_before><?php

namespace PHPOrchestra\Backoffice\GenerateForm\Strategies;

use PHPOrchestra\DisplayBundle\DisplayBlock\DisplayBlockInterface;
use PHPOrchestra\ModelBundle\Model\BlockInterface;
use Symfony\Component\Form\FormInterface;

/**
 * Class ContentListStrategy
 */
class ContentListStrategy extends AbstractBlockStrategy
{
    /**
     * @param BlockInterface $block
     *
     * @return bool
     */
    public function support(BlockInterface $block)
    {
        return DisplayBlockInterface::CONTENT_LIST === $block->getComponent();
    }

    /**
     * @param FormInterface  $form
     * @param BlockInterface $block
     */
    public function buildForm(FormInterface $form, BlockInterface $block)
    {
        $attributes = $block->getAttributes();

        $form->add('contentTypeName', 'orchestra_content_type_choice', array(
            'mapped' => false,
            'data' => array_key_exists('contentType', $attributes)? $attributes['contentType']:'',
            'label' => 'php_orchestra_backoffice.form.content_list.node',
        ));
        $form->add('class', 'textarea', array(
            'mapped' => false,
            'data' => array_key_exists('class', $attributes)? json_encode($attributes['class']):json_encode(
                array(
                    'div' => 'divclass',
                    'title' => 'titleclass',
                    'ul' => 'ulclass'
                )
            ),
        ));
        $form->add('id', 'text', array(
            'mapped' => false,
            'data' => array_key_exists('id', $attributes)? $attributes['id']:'',
        ));
        $form->add('url', 'orchestra_node_choice', array(
            'mapped' => false,
            'data' => array_key_exists('url', $attributes)? $attributes['url']:'',
            'label' => 'php_orchestra_backoffice.form.content_list.node',
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'content_list';
    }
}
<commit_msg>Modified ul to div for news listing<commit_after><?php

namespace PHPOrchestra\Backoffice\GenerateForm\Strategies;

use PHPOrchestra\DisplayBundle\DisplayBlock\DisplayBlockInterface;
use PHPOrchestra\ModelBundle\Model\BlockInterface;
use Symfony\Component\Form\FormInterface;

/**
 * Class ContentListStrategy
 */
class ContentListStrategy extends AbstractBlockStrategy
{
    /**
     * @param BlockInterface $block
     *
     * @return bool
     */
    public function support(BlockInterface $block)
    {
        return DisplayBlockInterface::CONTENT_LIST === $block->getComponent();
    }

    /**
     * @param FormInterface  $form
     * @param BlockInterface $block
     */
    public function buildForm(FormInterface $form, BlockInterface $block)
    {
        $attributes = $block->getAttributes();

        $form->add('contentTypeName', 'orchestra_content_type_choice', array(
            'mapped' => false,
            'data' => array_key_exists('contentType', $attributes)? $attributes['contentType']:'',
            'label' => 'php_orchestra_backoffice.form.content_list.node',
        ));
        $form->add('class', 'textarea', array(
            'mapped' => false,
            'data' => array_key_exists('class', $attributes)? json_encode($attributes['class']):json_encode(
                array(
                    'div' => 'divclass',
                    'title' => 'titleclass',
                    'each' => 'eachclass'
                )
            ),
        ));
        $form->add('id', 'text', array(
            'mapped' => false,
            'data' => array_key_exists('id', $attributes)? $attributes['id']:'',
        ));
        $form->add('url', 'orchestra_node_choice', array(
            'mapped' => false,
            'data' => array_key_exists('url', $attributes)? $attributes['url']:'',
            'label' => 'php_orchestra_backoffice.form.content_list.node',
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'content_list';
    }
}

{'fraction_non_alphanumeric': 0.14689826302729528, 'fraction_numerical': 0.0, 'mean_word_length': 2.4248088360237894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '5524463', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1126, 'n_words': 196}