<commit_before>package org.I0Itec.zkclient;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

import org.apache.log4j.Logger;

/**
 * All listeners registered at the {@link ZkClient} will be notified from this event thread. This is not prevent dead-lock situations. The ZkClient pulls some
 * information out of the Zookeeper events and signals {@link ZkLock} conditions. Using the same Zookeeper event thread to also notify listeners, would stop the
 * ZkClient from maintaining those properties as soon as one of the listeners doesn't return. This can for example happen, if one of the listeners waits until
 * ZkClient changes its status to SyncConnected.
 */
class ZkEventThread extends Thread {

    private static final Logger LOG = Logger.getLogger(ZkEventThread.class);

    private BlockingQueue<ZkEvent> _events = new LinkedBlockingQueue<ZkEvent>();

    static abstract class ZkEvent {

        private String _description;

        public ZkEvent(String description) {
            _description = description;
        }

        public abstract void run() throws Exception;

        @Override
        public String toString() {
            return "ZkEvent[" + _description + "]";
        }
    }

    ZkEventThread() {
        setDaemon(true);
        setName("ZkClient-EventThread");
    }

    @Override
    public void run() {
        LOG.info("Starting ZkClient event thread.");
        try {
            while (!isInterrupted()) {
                ZkEvent zkEvent = _events.take();
                LOG.debug("Delivering event " + zkEvent);
                try {
                    zkEvent.run();
                } catch (InterruptedException e) {
                    interrupt();
                } catch (Exception e) {
                    LOG.warn("Error handling event " + zkEvent, e);
                }
                LOG.debug("Delivering event done");
            }
        } catch (InterruptedException e) {
            LOG.info("Terminate ZkClient event thread.");
        }
    }

    public void send(ZkEvent event) {
        if (!isInterrupted()) {
            LOG.info("New event: " + event);
            _events.add(event);
        }
    }
}<commit_msg>Changed log level to debug.<commit_after>package org.I0Itec.zkclient;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

import org.apache.log4j.Logger;

/**
 * All listeners registered at the {@link ZkClient} will be notified from this event thread. This is not prevent dead-lock situations. The ZkClient pulls some
 * information out of the Zookeeper events and signals {@link ZkLock} conditions. Using the same Zookeeper event thread to also notify listeners, would stop the
 * ZkClient from maintaining those properties as soon as one of the listeners doesn't return. This can for example happen, if one of the listeners waits until
 * ZkClient changes its status to SyncConnected.
 */
class ZkEventThread extends Thread {

    private static final Logger LOG = Logger.getLogger(ZkEventThread.class);

    private BlockingQueue<ZkEvent> _events = new LinkedBlockingQueue<ZkEvent>();

    static abstract class ZkEvent {

        private String _description;

        public ZkEvent(String description) {
            _description = description;
        }

        public abstract void run() throws Exception;

        @Override
        public String toString() {
            return "ZkEvent[" + _description + "]";
        }
    }

    ZkEventThread() {
        setDaemon(true);
        setName("ZkClient-EventThread");
    }

    @Override
    public void run() {
        LOG.info("Starting ZkClient event thread.");
        try {
            while (!isInterrupted()) {
                ZkEvent zkEvent = _events.take();
                LOG.debug("Delivering event " + zkEvent);
                try {
                    zkEvent.run();
                } catch (InterruptedException e) {
                    interrupt();
                } catch (Exception e) {
                    LOG.warn("Error handling event " + zkEvent, e);
                }
                LOG.debug("Delivering event done");
            }
        } catch (InterruptedException e) {
            LOG.info("Terminate ZkClient event thread.");
        }
    }

    public void send(ZkEvent event) {
        if (!isInterrupted()) {
            LOG.debug("New event: " + event);
            _events.add(event);
        }
    }
}
{'fraction_non_alphanumeric': 0.08753078128497874, 'fraction_numerical': 0.0008954555630176853, 'mean_word_length': 2.1823361823361824, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6434866', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1137, 'n_words': 368}