<commit_before>package com.watcher;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * Files Filter.
 * Created by <NAME> on 2016/12/28.
 */
class FilesFilter extends Thread {

    static final String CLOSE = "Files Filter closed.";

    private FilesTable table;

    private LinkedBlockingQueue<Message> queue;

    private boolean running = true;

    FilesFilter(FilesTable table) throws WatcherException {
        super();
        if (table == null)
            throw new WatcherException("文件列表不能为空!");
        this.table = table;
        queue = new LinkedBlockingQueue<>();
    }

    boolean isRunning() {
        return this.running;
    }

    @Override
    public void run() {
        try {
            while (isRunning()) {
                Message message = this.queue.take();
                //System.out.println(message.toString());
                //System.out.println(String.format("队列长度: %d",queue.size()));<commit_msg>删除无效注释<commit_after>package com.watcher;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * Files Filter.
 * Created by <NAME> on 2016/12/28.
 */
class FilesFilter extends Thread {

    static final String CLOSE = "Files Filter closed.";

    private FilesTable table;

    private LinkedBlockingQueue<Message> queue;

    private boolean running = true;

    FilesFilter(FilesTable table) throws WatcherException {
        super();
        if (table == null)
            throw new WatcherException("文件列表不能为空!");
        this.table = table;
        queue = new LinkedBlockingQueue<>();
    }

    boolean isRunning() {
        return this.running;
    }

    @Override
    public void run() {
        try {
            while (isRunning()) {
                Message message = this.queue.take();
{'fraction_non_alphanumeric': 0.11015490533562823, 'fraction_numerical': 0.009179575444635685, 'mean_word_length': 2.3864077669902914, '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': '6190835', 'n_tokens_mistral': 504, 'n_tokens_neox': 476, 'n_words': 126}