<commit_before>package org.threadly.concurrent.benchmark;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

import org.skife.jdbi.v2.DBI;
import org.skife.jdbi.v2.Handle;
import org.skife.jdbi.v2.TransactionCallback;
import org.skife.jdbi.v2.TransactionStatus;
import org.threadly.concurrent.PriorityScheduler;
import org.threadly.concurrent.benchmark.dao.BenchmarkDao;
import org.threadly.concurrent.future.ListenableFuture;
import org.threadly.util.ExceptionUtils;
import org.threadly.util.StringUtils;

public class BenchmarkCollectionRunner {
  protected static final int RUN_COUNT = 5;
  protected static final boolean INCLUDE_JAVA_BASELINE = true;
  protected static final boolean EXIT_ON_BENCHMARK_FAILURE = false;
  protected static final boolean DISCARD_FIRST_RUN = false;
  protected static final String SHELL = "bash";
  protected static final String JAVA_EXECUTE_CMD = "/usr/bin/java -Xmx2560m -Xms2048m -Xss256k ";
  protected static final PriorityScheduler SCHEDULER;
  protected static final List<BenchmarkCase> BENCHMARKS_TO_RUN;
  
  static {
    SCHEDULER = new PriorityScheduler(2);
    SCHEDULER.prestartAllThreads();
    SCHEDULER.setPoolSize(10);
    
    ArrayList<BenchmarkCase> toRun = new ArrayList<>();
    
    String[][] executeScheduleRecurringThreadCases = new String[][]{{"2 4", "2 10", "2 20", "2 50", <commit_msg>Disable java baseline for normal runs<commit_after>package org.threadly.concurrent.benchmark;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

import org.skife.jdbi.v2.DBI;
import org.skife.jdbi.v2.Handle;
import org.skife.jdbi.v2.TransactionCallback;
import org.skife.jdbi.v2.TransactionStatus;
import org.threadly.concurrent.PriorityScheduler;
import org.threadly.concurrent.benchmark.dao.BenchmarkDao;
import org.threadly.concurrent.future.ListenableFuture;
import org.threadly.util.ExceptionUtils;
import org.threadly.util.StringUtils;

public class BenchmarkCollectionRunner {
  protected static final int RUN_COUNT = 5;
  protected static final boolean INCLUDE_JAVA_BASELINE = false;
  protected static final boolean EXIT_ON_BENCHMARK_FAILURE = false;
  protected static final boolean DISCARD_FIRST_RUN = false;
  protected static final String SHELL = "bash";
  protected static final String JAVA_EXECUTE_CMD = "/usr/bin/java -Xmx2560m -Xms2048m -Xss256k ";
  protected static final PriorityScheduler SCHEDULER;
  protected static final List<BenchmarkCase> BENCHMARKS_TO_RUN;
  
  static {
    SCHEDULER = new PriorityScheduler(2);
    SCHEDULER.prestartAllThreads();
    SCHEDULER.setPoolSize(10);
    
    ArrayList<BenchmarkCase> toRun = new ArrayList<>();
    
    String[][] executeScheduleRecurringThreadCases = new String[][]{{"2 4", "2 10", "2 20", "2 50", 
{'fraction_non_alphanumeric': 0.09450337512054002, 'fraction_numerical': 0.019286403085824494, 'mean_word_length': 5.45643153526971, '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': '1222355', 'n_tokens_mistral': 1033, 'n_tokens_neox': 982, 'n_words': 223}