<commit_before>package org.wso2.throttle;

import org.junit.Test;
import org.wso2.carbon.databridge.core.exception.DataBridgeException;
import org.wso2.carbon.databridge.core.exception.StreamDefinitionStoreException;
import org.wso2.throttle.core.Request;
import org.wso2.throttle.core.Throttler;

import java.io.IOException;

public class BasicTest {
    @Test
    public void testRule1() throws InterruptedException, DataBridgeException, StreamDefinitionStoreException, IOException {
        Throttler throttler = Throttler.getInstance();
        throttler.start();

        throttler.addRule("rule1", "api1", "dilini");
        throttler.addRule("rule2", null, null);

        for(int i=0; i<10000; i++) {
            System.out.println(throttler.isThrottled(new Request("api1", "dilini")));
        }

        Thread.sleep(10000);
        throttler.stop();
    }
}<commit_msg>Removing a sys-out<commit_after>package org.wso2.throttle;

import org.junit.Test;
import org.wso2.carbon.databridge.core.exception.DataBridgeException;
import org.wso2.carbon.databridge.core.exception.StreamDefinitionStoreException;
import org.wso2.throttle.core.Request;
import org.wso2.throttle.core.Throttler;

import java.io.IOException;

public class BasicTest {
    @Test
    public void testRule1() throws InterruptedException, DataBridgeException, StreamDefinitionStoreException, IOException {
        Throttler throttler = Throttler.getInstance();
        throttler.start();

        throttler.addRule("rule1", "api1", "dilini");
        throttler.addRule("rule2", null, null);

        for(int i=0; i<10000; i++) {
            throttler.isThrottled(new Request("api1", "dilini"));
        }

        Thread.sleep(10000);
        throttler.stop();
    }
}
{'fraction_non_alphanumeric': 0.12206303724928366, 'fraction_numerical': 0.024068767908309457, 'mean_word_length': 3.8232044198895028, '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': '6959231', 'n_tokens_mistral': 588, 'n_tokens_neox': 555, 'n_words': 92}