<commit_before>// delayd2 is an available setTimeout() service for scheduling message sends
package delayd2

import (
	"log"
	"time"

	"github.com/nabeken/aws-go-sqs/queue"
)

type QueueMessage struct {
	QueueID   string
	WorkerID  string
	ReleaseAt time.Time
	RelayTo   string
	Payload   string
}

// Worker is the delayd2 worker.
type Worker struct {
	id       string
	driver   Driver
	consumer *Consumer
	relay    *Relay

	// signaled from external
	shutdownCh chan struct{}

	// notified when handleRelease() finishes its task
	stoppedCh chan struct{}
}

// NewWorker creates a new worker.
func NewWorker(workerID string, driver Driver, consumer *Consumer, relay *Relay) *Worker {
	return &Worker{
		id:       workerID,
		driver:   driver,<commit_msg>worker: Add the comment for QueueMessage struct<commit_after>// delayd2 is an available setTimeout() service for scheduling message sends
package delayd2

import (
	"log"
	"time"

	"github.com/nabeken/aws-go-sqs/queue"
)

// QueueMessage is a message queued in the database.
type QueueMessage struct {
	QueueID   string
	WorkerID  string
	ReleaseAt time.Time
	RelayTo   string
	Payload   string
}

// Worker is the delayd2 worker.
type Worker struct {
	id       string
	driver   Driver
	consumer *Consumer
	relay    *Relay

	// signaled from external
	shutdownCh chan struct{}

	// notified when handleRelease() finishes its task
	stoppedCh chan struct{}
}

// NewWorker creates a new worker.
func NewWorker(workerID string, driver Driver, consumer *Consumer, relay *Relay) *Worker {
	return &Worker{
		id:       workerID,
		driver:   driver,
{'fraction_non_alphanumeric': 0.07639323731997495, 'fraction_numerical': 0.003757044458359424, 'mean_word_length': 3.5787965616045847, 'pattern_counts': {'":': 0, '<': 3, '<?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': '39320', 'n_tokens_mistral': 516, 'n_tokens_neox': 497, 'n_words': 177}