<commit_before><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\InputFilter;

use Zend\Filter\FilterChain;
use Zend\Validator\ValidatorChain;

interface InputInterface
{
    /**
     * @param bool $allowEmpty
     * @return InputInterface
     */
    public function setAllowEmpty($allowEmpty);

    /**
     * @param bool $breakOnFailure
     * @return InputInterface
     */
    public function setBreakOnFailure($breakOnFailure);

    /**
     * @param string|null $errorMessage
     * @return InputInterface
     */
    public function setErrorMessage($errorMessage);

    /**
     * @param FilterChain $filterChain
     * @return InputInterface
     */
    public function setFilterChain(FilterChain $filterChain);

    /**
     * @param string $name
     * @return InputInterface
     */
    public function setName($name);

    /**
     * @param bool $required
     * @return InputInterface
     */
    public function setRequired($required);

    /**
     * @param ValidatorChain $validatorChain
     * @return InputInterface
     */
    public function setValidatorChain(ValidatorChain $validatorChain);

    /**
     * @param mixed $value
     * @return InputInterface
     */
    public function setValue($value);

    /**
     * @param InputInterface $input
     * @return InputInterface
     */
    public function merge(InputInterface $input);

    /**
     * @return bool
     */
    public function allowEmpty();

    /**
     * @return bool
     */
    public function breakOnFailure();

    /**<commit_msg>Prefer `@return self` to using explicit name<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\InputFilter;

use Zend\Filter\FilterChain;
use Zend\Validator\ValidatorChain;

interface InputInterface
{
    /**
     * @param bool $allowEmpty
     * @return self
     */
    public function setAllowEmpty($allowEmpty);

    /**
     * @param bool $breakOnFailure
     * @return self
     */
    public function setBreakOnFailure($breakOnFailure);

    /**
     * @param string|null $errorMessage
     * @return self
     */
    public function setErrorMessage($errorMessage);

    /**
     * @param FilterChain $filterChain
     * @return self
     */
    public function setFilterChain(FilterChain $filterChain);

    /**
     * @param string $name
     * @return self
     */
    public function setName($name);

    /**
     * @param bool $required
     * @return self
     */
    public function setRequired($required);

    /**
     * @param ValidatorChain $validatorChain
     * @return self
     */
    public function setValidatorChain(ValidatorChain $validatorChain);

    /**
     * @param mixed $value
     * @return self
     */
    public function setValue($value);

    /**
     * @param InputInterface $input
     * @return self
     */
    public function merge(InputInterface $input);

    /**
     * @return bool
     */
    public function allowEmpty();

    /**
     * @return bool
     */
    public function breakOnFailure();

    /**
{'fraction_non_alphanumeric': 0.11945778028805422, 'fraction_numerical': 0.005083309799491669, 'mean_word_length': 2.5526579739217654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7547521', 'n_tokens_mistral': 1010, 'n_tokens_neox': 963, 'n_words': 242}