<commit_before><?php

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


namespace Sonata\BlockBundle\Block;

use Sonata\AdminBundle\Form\FormMapper;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\AdminBundle\Validator\ErrorElement;

use Symfony\Component\HttpFoundation\Response;

interface BlockServiceInterface
{
    /**
     * @param FormMapper $form
     * @param BlockInterface $block
     *
     * @return void
     */
    function buildEditForm(FormMapper $form, BlockInterface $block);

    /**
     * @param FormMapper $form
     * @param BlockInterface $block
     *
     * @return void
     */
    function buildCreateForm(FormMapper $form, BlockInterface $block);

    /**
     * @param BlockInterface $block
     * @param null|Response $response
     *
     * @return Response
     */
    function execute(BlockInterface $block, Response $response = null);

    /**
     * @param ErrorElement $errorElement
     * @param BlockInterface $block
     *
     * @return void
     */
    function validateBlock(ErrorElement $errorElement, BlockInterface $block);

    /**
     * @return string
     */
    function getName();

    /**
     * Returns the default settings link to the service
     *
     * @return array
     */
    function getDefaultSettings();

    /**
     * @param BlockInterface $block
     *
     * @return void
     */
    function load(BlockInterface $block);<commit_msg>Fix some CS<commit_after><?php

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


namespace Sonata\BlockBundle\Block;

use Sonata\AdminBundle\Form\FormMapper;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\AdminBundle\Validator\ErrorElement;

use Symfony\Component\HttpFoundation\Response;

interface BlockServiceInterface
{
    /**
     * @param FormMapper     $form
     * @param BlockInterface $block
     *
     * @return void
     */
    function buildEditForm(FormMapper $form, BlockInterface $block);

    /**
     * @param FormMapper     $form
     * @param BlockInterface $block
     *
     * @return void
     */
    function buildCreateForm(FormMapper $form, BlockInterface $block);

    /**
     * @param BlockInterface $block
     * @param null|Response  $response
     *
     * @return Response
     */
    function execute(BlockInterface $block, Response $response = null);

    /**
     * @param ErrorElement   $errorElement
     * @param BlockInterface $block
     *
     * @return void
     */
    function validateBlock(ErrorElement $errorElement, BlockInterface $block);

    /**
     * @return string
     */
    function getName();

    /**
     * Returns the default settings link to the service
     *
     * @return array
     */
    function getDefaultSettings();

    /**
     * @param BlockInterface $block
     *
     * @return void
     */
    function load(BlockInterface $block);
{'fraction_non_alphanumeric': 0.1047286575690257, 'fraction_numerical': 0.0, 'mean_word_length': 2.6651162790697676, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '7296238', 'n_tokens_mistral': 871, 'n_tokens_neox': 858, 'n_words': 241}