<commit_before>package lwmq

import (
	"time"
)

/**
 * A message can be passed to a number of consumers
 * or be persisted in a MessageStore for later delivery.
 */
type Message struct {
	Payload   interface{}
	Timestamp time.Time
	Offline   bool
	Queue     *Queue
}

/**
 * Create a new message with a payload
 * and current time
 */
func NewMessage(payload interface{}) *Message {
	m := &Message{
		Payload:   payload,
		Timestamp: time.Now(),
	}
	return m
}
<commit_msg>added json serialization tags<commit_after>package lwmq

import (
	"time"
)

/**
 * A message can be passed to a number of consumers
 * or be persisted in a MessageStore for later delivery.
 */
type Message struct {
	Payload   interface{} `json:"payload"`
	Timestamp time.Time   `json:"timestamp"`
	Offline   bool        `json:"offline"`
	Queue     *Queue      `json:"-"`
}

/**
 * Create a new message with a payload
 * and current time
 */
func NewMessage(payload interface{}) *Message {
	m := &Message{
		Payload:   payload,
		Timestamp: time.Now(),
	}
	return m
}

{'fraction_non_alphanumeric': 0.11036468330134357, 'fraction_numerical': 0.0, 'mean_word_length': 3.292181069958848, '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': '4568875', 'n_tokens_mistral': 327, 'n_tokens_neox': 320, 'n_words': 119}