<commit_before>package kieker.tests.compileTimeWeaving.twoConcurrentMethodsExample;

import kieker.tpmon.annotation.TpmonExecutionMonitoringProbe;

/**
 * kieker.tests.compileTimeWeaving.twoConcurrentMethodsExample.Starter
 *
 * A simple test and demonstration scenario for Kieker's 
 * monitoring component tpmon.
 * 
 * @author <NAME>
 * History:
 * 2009/02/20: Reduced text length
 * 2008/10/20: Initial version
 *
 */

public class Starter extends Thread{
   public static void main(String[] args) throws InterruptedException {
	for (int i = 0; i < 10000; i++) {
		new Starter().start();		
                Thread.sleep((int)(Math.random() * 49d)+1); // wait between requests
	}
	System.exit(0);
    }

    public void run() {
            waitP();
            work();
    }

    @TpmonExecutionMonitoringProbe()
    public void waitP() {
	try{Thread.sleep((int)(Math.random() * 50d)+475);} catch (Exception e){}
    }

    static boolean boolvar = true;
    @TpmonExecutionMonitoringProbe()
    private void work() {
        int a = (int)(Math.random() * 5d);
        for (int i=0; i<2500000; i++) { a += i/1000;}
        if (a % 10000 == 0 ) boolvar = false;
    }
} 
<commit_msg>little change on 08sysml 09sipew case study code base<commit_after>package kieker.tests.compileTimeWeaving.twoConcurrentMethodsExample;

import kieker.tpmon.annotation.TpmonExecutionMonitoringProbe;

/**
 * kieker.tests.compileTimeWeaving.twoConcurrentMethodsExample.Starter
 *
 * A simple test and demonstration scenario for Kieker's 
 * monitoring component tpmon.
 * 
 * @author <NAME>
 * History:
 * 2009/02/20: Reduced text length
 * 2008/10/20: Initial version
 *
 */

public class Starter extends Thread{
   public static void main(String[] args) throws InterruptedException {
	for (int i = 0; i < 10000; i++) {
		new Starter().start();		
                Thread.sleep((int)(Math.max(0,Math.random() * 115d - (i/142d) )+1)); // wait between requests
	}
	System.exit(0);
    }

    public void run() {
		double ranVal = Math.random();
		if (ranVal < 0.5 ) {
			if (ranVal < 0.25) {
				// do nothing
			} else {
				waitP(300);
			}
		}else {
			if (ranVal > 0.75) {
				work();
				waitP(300);
			} else {
				work();
			}
		}
    }

    @TpmonExecutionMonitoringProbe()
    public void waitP(long sleeptime) {
	try{Thread.sleep(sleeptime);} catch (Exception e){}
    }

    static boolean boolvar = true;
    @TpmonExecutionMonitoringProbe()
    private void work() {
        int a = (int)(Math.random() * 5d);
        for (int i=0; i<2000000; i++) { a += i/1000;}
        if (a % 10000 == 0 ) boolvar = false;
    }
} 

{'fraction_non_alphanumeric': 0.13711221754117198, 'fraction_numerical': 0.045193412485637685, 'mean_word_length': 2.9635811836115327, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 6, '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': '7490182', 'n_tokens_mistral': 1009, 'n_tokens_neox': 860, 'n_words': 213}