<commit_before>package nl.vu.cs.ajira.utils;

public class Consts {

	/********** DEFAULT VALUES **********/
	public static final double MAX_MEMORY_TO_USE = 0.75; // 75%
	public static final double MIN_MEMORY_SIZE_BEFORE_CLEANING = 0.10;
	public static final int N_ELEMENTS_TO_SAMPLE = 10;

	public static final int MAX_N_ACTIONS = 128;
	public static final int CHAIN_SIZE = 10 * 1024;

	public static final int MAXM = (int) (Runtime.getRuntime().maxMemory() / (64 * 1024 * 1024));
	
	public static final int TUPLES_CONTAINER_MAX_BUFFER_SIZE = (MAXM > 512 ? 512 : MAXM > 256 ? 256 : MAXM > 128 ? 128 : MAXM > 64 ? 64 : 32) * 1024 * 1024;
	public static final int SIZE_BUFFERS_CHAIN_SEND = 4 * 1024 * 1024;
	public static final int SIZE_BUFFERS_CHAINS_PROCESS = (MAXM > 64 ? 64 : 32) * 1024 * 1024;

	// Factory initialization
	public static final int STARTING_SIZE_FACTORY = 0;
	public static final int N_ELEMENTS_FACTORY = 10000;

	public static final int MIN_SIZE_TO_SEND = Math.min(64 * 1024 * 1024, TUPLES_CONTAINER_MAX_BUFFER_SIZE);
	public static final int MAX_SEGMENTS_RECEIVED = 2048;

	public static final int MAX_TUPLE_SENDERS = 8;

	public static final int STATISTICS_COLLECTION_INTERVAL = 1000;

	public static final int DATATYPE_TLONG = 0;
	public static final int DATATYPE_TSTRING = 1;
	public static final int DATATYPE_TINT = 2;
	public static final int DATATYPE_TBAG = 3;<commit_msg>Reduced sizes a bit more<commit_after>package nl.vu.cs.ajira.utils;

public class Consts {

	/********** DEFAULT VALUES **********/
	public static final double MAX_MEMORY_TO_USE = 0.75; // 75%
	public static final double MIN_MEMORY_SIZE_BEFORE_CLEANING = 0.10;
	public static final int N_ELEMENTS_TO_SAMPLE = 10;

	public static final int MAX_N_ACTIONS = 128;
	public static final int CHAIN_SIZE = 10 * 1024;

	public static final int MAXM = (int) (Runtime.getRuntime().maxMemory() / (128 * 1024 * 1024));
	
	public static final int TUPLES_CONTAINER_MAX_BUFFER_SIZE = (MAXM > 512 ? 512 : MAXM > 256 ? 256 : MAXM > 128 ? 128 : MAXM > 64 ? 64 : 32) * 1024 * 1024;
	public static final int SIZE_BUFFERS_CHAIN_SEND = 4 * 1024 * 1024;
	public static final int SIZE_BUFFERS_CHAINS_PROCESS = (MAXM > 64 ? 64 : 32) * 1024 * 1024;

	// Factory initialization
	public static final int STARTING_SIZE_FACTORY = 0;
	public static final int N_ELEMENTS_FACTORY = 10000;

	public static final int MIN_SIZE_TO_SEND = Math.min(64 * 1024 * 1024, TUPLES_CONTAINER_MAX_BUFFER_SIZE);
	public static final int MAX_SEGMENTS_RECEIVED = 2048;

	public static final int MAX_TUPLE_SENDERS = 8;

	public static final int STATISTICS_COLLECTION_INTERVAL = 1000;

	public static final int DATATYPE_TLONG = 0;
	public static final int DATATYPE_TSTRING = 1;
	public static final int DATATYPE_TINT = 2;
	public static final int DATATYPE_TBAG = 3;
{'fraction_non_alphanumeric': 0.08754448398576513, 'fraction_numerical': 0.0807829181494662, 'mean_word_length': 4.544378698224852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3814852', 'n_tokens_mistral': 1211, 'n_tokens_neox': 948, 'n_words': 309}