<commit_before><?php
namespace CDavison\Queue;

use CDavison\Queue\JobStatus;

interface JobInterface
{
    /**
     * @return boolean True if this job has completed.
     */
    public function hasCompleted();

    /**
     * @return boolean True if this job has failed.
     */
    public function hasFailed();

    /**
     * @return boolean True if this job has finished.
     */
    public function hasFinished();

    /**
     * @return boolean True if this job has started.
     */
    public function hasStarted();

    /**
     * @return boolean True if this job is sleeping.
     */
    public function isSleeping();

    /**
     * Mark this job as started.
     *
     * @return void
     */
    public function start();

    /**
     * Mark this job as sleeping.
     *
     * @return void
     */
    public function sleep();

    /**
     * Mark this job as completed.
     *
     * @return void
     */
    public function complete();

    /**
     * Mark this job as failed.
     *
     * @return void
     */
    public function fail();
}<commit_msg>Updated status getter helpers to correspond to AbstractJob.<commit_after><?php
namespace CDavison\Queue;

use CDavison\Queue\JobStatus;

interface JobInterface
{
    /**
     * @return boolean True if this job has completed.
     */
    public function isCompleted();

    /**
     * @return boolean True if this job has failed.
     */
    public function isFailed();

    /**
     * @return boolean True if this job has finished.
     */
    public function isFinished();

    /**
     * @return boolean True if this job has started.
     */
    public function isStarted();

    /**
     * @return boolean True if this job is sleeping.
     */
    public function isSleeping();

    /**
     * Mark this job as started.
     *
     * @return void
     */
    public function start();

    /**
     * Mark this job as sleeping.
     *
     * @return void
     */
    public function sleep();

    /**
     * Mark this job as completed.
     *
     * @return void
     */
    public function complete();

    /**
     * Mark this job as failed.
     *
     * @return void
     */
    public function fail();
}
{'fraction_non_alphanumeric': 0.10973370064279155, 'fraction_numerical': 0.0, 'mean_word_length': 1.8335500650195058, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5768901', 'n_tokens_mistral': 611, 'n_tokens_neox': 593, 'n_words': 211}