<commit_before><?php
/**
 * Damnit - php errors for cool kids
 * @author <NAME> <http://github.com/filp>
 */

namespace Damnit\Handler;
use Damnit\Handler\HandlerInterface;
use Damnit\Exception\Inspector;
use Damnit\Run;
use Exception;

/**
 * Abstract implementation of a Handler.
 */
abstract class Handler implements HandlerInterface
{
    /**
     * Return constants that can be returned from Handler::handle
     * to message the handler walker.
     */
    const LAST_HANDLER = 0x10;
    const QUIT         = 0x20;

    /**
     * @var Damnit\Run
     */
    private $run;

    /**
     * @var Damnit\Exception\Inspector $inspector
     */
    private $inspector;

    /**
     * @var Exception $exception
     */
    private $exception;

    /**
     * @param Damnit\Run $run
     */
    public function setRun(Run $run)
    {
        $this->run = $run;
    }

    /**
     * @return Damnit\Run
     */
    protected function getRun()
    {
        return $this->run;
    }

    /**
     * @param Damnit\Exception\Inspector $inspector
     */
    public function setInspector(Inspector $inspector)
    {
        $this->inspector = $inspector;
    }

    /**
     * @return Damnit\Run
     */
    protected function getInspector()
    {
        return $this->inspector;
    }

    /**
     * @param Exception
     */
    public function setException(Exception $exception)
    {
        $this->exception = $exception;
    }

    /**
     * @return Exception
     */
    protected function getException()
    {
        return $this->exception;
    }

    /**
     * @return int|null
     */
    abstract public function handle();
}<commit_msg>Remove Handler::handle abstract method, already implemented in HandlerInterface<commit_after><?php
/**
 * Damnit - php errors for cool kids
 * @author <NAME> <http://github.com/filp>
 */

namespace Damnit\Handler;
use Damnit\Handler\HandlerInterface;
use Damnit\Exception\Inspector;
use Damnit\Run;
use Exception;

/**
 * Abstract implementation of a Handler.
 */
abstract class Handler implements HandlerInterface
{
    /**
     * Return constants that can be returned from Handler::handle
     * to message the handler walker.
     */
    const LAST_HANDLER = 0x10;
    const QUIT         = 0x20;

    /**
     * @var Damnit\Run
     */
    private $run;

    /**
     * @var Damnit\Exception\Inspector $inspector
     */
    private $inspector;

    /**
     * @var Exception $exception
     */
    private $exception;

    /**
     * @param Damnit\Run $run
     */
    public function setRun(Run $run)
    {
        $this->run = $run;
    }

    /**
     * @return Damnit\Run
     */
    protected function getRun()
    {
        return $this->run;
    }

    /**
     * @param Damnit\Exception\Inspector $inspector
     */
    public function setInspector(Inspector $inspector)
    {
        $this->inspector = $inspector;
    }

    /**
     * @return Damnit\Run
     */
    protected function getInspector()
    {
        return $this->inspector;
    }

    /**
     * @param Exception
     */
    public function setException(Exception $exception)
    {
        $this->exception = $exception;
    }

    /**
     * @return Exception
     */
    protected function getException()
    {
        return $this->exception;
    }
}
{'fraction_non_alphanumeric': 0.12317073170731707, 'fraction_numerical': 0.003658536585365854, 'mean_word_length': 2.0045787545787546, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '7125386', 'n_tokens_mistral': 1026, 'n_tokens_neox': 971, 'n_words': 233}