<commit_before>package main

import (
	"flag"
	"fmt"
	"log"
	"os"
	"os/signal"
	"strings"
	"sync"
	"syscall"
	"time"

	"github.com/Shopify/sarama"
)

var (
	brokerList      = flag.String("brokers", "localhost:9092", "The list of brokers in the Kafka cluster to produce to, comma separated")
	topic           = flag.String("topic", "test.throughput", "The topic to produce messages to")
	messageBodySize = flag.Int("message-body-size", 100, "The size of the message payload")
	waitForAll      = flag.Bool("wait-for-all", false, "Whether to wait for all ISR to Ack the message")
	sleep           = flag.Int("sleep", 1000, "The number of nanoseconds to sleep between messages")
	verbose         = flag.Bool("verbose", false, "Whether to enable Sarama logging")
	statFrequency   = flag.Int("statFrequency", 1000, "How frequently (in messages) to print throughput and latency")
)

type MessageMetadata struct {
	EnqueuedAt time.Time
}

func (mm *MessageMetadata) Latency() time.Duration {<commit_msg>Small flag description fix for the stress producer<commit_after>package main

import (
	"flag"
	"fmt"
	"log"
	"os"
	"os/signal"
	"strings"
	"sync"
	"syscall"
	"time"

	"github.com/Shopify/sarama"
)

var (
	brokerList      = flag.String("brokers", "localhost:9092", "The comma separated list of brokers in the Kafka cluster")
	topic           = flag.String("topic", "test.throughput", "The topic to produce messages to")
	messageBodySize = flag.Int("message-body-size", 100, "The size of the message payload")
	waitForAll      = flag.Bool("wait-for-all", false, "Whether to wait for all ISR to Ack the message")
	sleep           = flag.Int("sleep", 1000, "The number of nanoseconds to sleep between messages")
	verbose         = flag.Bool("verbose", false, "Whether to enable Sarama logging")
	statFrequency   = flag.Int("statFrequency", 1000, "How frequently (in messages) to print throughput and latency")
)

type MessageMetadata struct {
	EnqueuedAt time.Time
}

func (mm *MessageMetadata) Latency() time.Duration {
{'fraction_non_alphanumeric': 0.12276341948310139, 'fraction_numerical': 0.014910536779324055, 'mean_word_length': 4.0705289672544085, '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': '1199105', 'n_tokens_mistral': 680, 'n_tokens_neox': 623, 'n_words': 208}