<commit_before>package com.garrettheel.moco.util;

public class Waiter {
    private int interval = 500;
    private int max = 10000;

    public Waiter() {

    }

    public Waiter(int interval, int max) {
        this.interval = interval;
        this.max = max;
    }

    public void until(Condition condition) {
        until(condition, null);
    }

    public void until(Condition condition, TimeOutCallBack back) {
        boolean flag = true;
        int count = 0;
        do {
            if (condition.check()) {
                flag = false;
            } else {
                try {
                    Thread.sleep(interval);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            count += interval;
        } while (flag && count < max);
        if (flag) {
            if (back == null) {
                throw new timeOutException();
            } else {
                back.execute();
            }
        }
    }

    public interface Condition {
        boolean check();
    }

    public interface TimeOutCallBack {
        void execute();<commit_msg>a little change to trigger travis build<commit_after>package com.garrettheel.moco.util;

public class Waiter {
    private int interval = 500;
    private int max = 10000;

    public Waiter() {

    }

    public Waiter(int interval, int max) {
        this.interval = interval;
        this.max = max;
    }

    public void until(Condition condition) {
        until(condition, null);
    }

    public void until(Condition condition, TimeOutCallBack back) {
        boolean flag = true;
        int count = 0;

        do {
            if (condition.check()) {
                flag = false;
            } else {
                try {
                    Thread.sleep(interval);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            count += interval;
        } while (flag && count < max);

        if (flag) {
            if (back == null) {
                throw new timeOutException();
            } else {
                back.execute();
            }
        }
    }

    public interface Condition {
        boolean check();
    }

    public interface TimeOutCallBack {
        void execute();
{'fraction_non_alphanumeric': 0.09215017064846416, 'fraction_numerical': 0.007679180887372013, 'mean_word_length': 1.3473473473473474, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3744036', 'n_tokens_mistral': 628, 'n_tokens_neox': 579, 'n_words': 165}