<commit_before><?php
namespace TYPO3\Jobqueue\Common\Queue;

/*
 * This file is part of the TYPO3.Jobqueue.Common package.
 *
 * (c) Contributors to the package
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use TYPO3\Flow\Annotations as Flow;

/**
 * Message object
 */
class Message
{
    // Created locally, not published to queue
    const STATE_NEW = 0;
    // Message published to queue, should not be processed by client
    // TODO Rename _SUBMITTED
    const STATE_PUBLISHED = 1;
    // Message received from queue, not deleted from queue! (a.k.a. Reserved)
    // TODO Rename _RESERVED
    const STATE_RECEIVED = 2;
    // Message processed and deleted from queue
    const STATE_DONE = 3;

    /**
     * Depending on the queue implementation, this identifier will
     * allow for unique messages (e.g. prevent adding jobs twice).
     *
     * @var string Identifier of the message
     */
    protected $identifier;
<commit_msg>[!!!][TASK] Rename STATE_* constants in Message class<commit_after><?php
namespace TYPO3\Jobqueue\Common\Queue;

/*
 * This file is part of the TYPO3.Jobqueue.Common package.
 *
 * (c) Contributors to the package
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use TYPO3\Flow\Annotations as Flow;

/**
 * Message object
 */
class Message
{
    // Created locally, not published to queue
    const STATE_NEW = 0;
    // Message published to queue, should not be processed by client
    const STATE_SUBMITTED = 1;
    // Message received from queue, not deleted from queue! (a.k.a. Reserved)
    const STATE_RESERVED = 2;
    // Message processed and deleted from queue
    const STATE_DONE = 3;

    /**
     * Depending on the queue implementation, this identifier will
     * allow for unique messages (e.g. prevent adding jobs twice).
     *
     * @var string Identifier of the message
     */
    protected $identifier;

{'fraction_non_alphanumeric': 0.08188235294117648, 'fraction_numerical': 0.006588235294117647, 'mean_word_length': 2.9738317757009347, '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': '3512805', 'n_tokens_mistral': 614, 'n_tokens_neox': 588, 'n_words': 248}