<commit_before>import java.util.Random;

class Producer<T> implements Runnable
{
    private Channel<T> queue;

    public Producer(final Channel<T> queue)
    {
        this.queue = queue;
    }

    @SuppressWarnings("unchecked")
    @Override
    public final void run()
    {
        Object message = null;

        while ( !Thread.currentThread().isInterrupted() )
        {
            try
            {
                SleepUtilities.nap();

                message = ( new Random() ).nextInt();

                if ( this.queue.send((T) message) )<commit_msg>Switched from java.util.Random to java.security.SecureRandom<commit_after>import java.security.SecureRandom;

class Producer<T> implements Runnable
{
    private Channel<T> queue;
    private SecureRandom prng;

    public Producer(final Channel<T> queue)
    {
        this.queue = queue;
        this.prng = new SecureRandom();
    }

    @SuppressWarnings("unchecked")
    @Override
    public final void run()
    {
        Object message = null;

        while ( !Thread.currentThread().isInterrupted() )
        {
            try
            {
                SleepUtilities.nap();

                message = this.prng.nextInt();

                if ( this.queue.send((T) message) )
{'fraction_non_alphanumeric': 0.10756972111553785, 'fraction_numerical': 0.0, 'mean_word_length': 1.9552941176470588, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5579491', 'n_tokens_mistral': 363, 'n_tokens_neox': 348, 'n_words': 78}