<commit_before>package org.javastack.bouncer;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class Options {
	public static final String S_NULL = "";
	public static final Integer I_NULL = Integer.valueOf(0);
	public static final Long L_NULL = Long.valueOf(0);
	// Load Balancing Policies
	// @formatter:off
	public static final int LB_ORDER     = 0x00000000; 	// Original order, pick next only on error
	public static final int LB_RR        = 0x00000001; 	// Round robin
	public static final int LB_RAND      = 0x00000002; 	// Random pick
	public static final int TUN_SSL      = 0x00000010; 	// Remote is SSL (like stunnel)
	public static final int MUX_AES      = 0x00000020; 	// Encryption of MUX with AES+PreSharedKey
	public static final int MUX_SSL      = 0x00000040; 	// Encryption of MUX with SSL/TLS
	public static final int TUN_ENDSSL   = 0x00000080; 	// Client is SSL (like stunnel)
	public static final int MUX_OUT      = 0x00000100; 	// Multiplexor initiator (outbound)
	public static final int MUX_IN       = 0x00000200; 	// Multiplexor terminator (inbound)
	public static final int PROXY_SEND   = 0x00001000; 	// Send PROXY protocol (outbound)
	public static final int CLUSTER_AES  = 0x00020000; 	// Encryption of CLUSTER with AES+PreSharedKey
	public static final int CLUSTER_SSL  = 0x00040000; 	// Encryption of CLUSTER with SSL/TLS
	// @formatter:on
	//
	public static final String P_AES = "AES";
	public static final String P_AES_ALG = "AESALG";
	public static final String P_AES_BITS = "AESBITS";
	public static final String P_SSL = "SSL";
	public static final String P_ENDSSL = "ENDSSL";
	public static final String P_CONNECT_TIMEOUT = "CONNECT_TIMEOUT";
	public static final String P_READ_TIMEOUT = "READ_TIMEOUT";
	public static final String P_MUX_NAME = "MUX_NAME";
	public static final String P_TUN_ID = "TUN_ID";
	public static final String P_STICKY = "STICKY";
	public static final String P_CLUSTER_ID = "CLUSTER_ID";
	//
	@SuppressWarnings("serial")
	private final static Map<String, Integer> MAP_FLAGS = Collections
			.unmodifiableMap(new HashMap<String, Integer>() {
				{
					put("LB=ORDER", LB_ORDER);
					put("LB=RR", LB_RR);
					put("LB=RAND", LB_RAND);
					put("TUN=SSL", TUN_SSL);
					put("TUN=ENDSSL", TUN_ENDSSL);
					put("MUX=OUT", MUX_OUT);
					put("MUX=IN", MUX_IN);
					put("MUX=AES", MUX_AES);
					put("MUX=SSL", MUX_SSL);
					put("PROXY=SEND", PROXY_SEND);
					put("CLUSTER=AES", CLUSTER_AES);
					put("CLUSTER=SSL", CLUSTER_SSL);
				}
			});
	//
	StickyConfig stickyConfig = null;
	int flags;
	@SuppressWarnings("serial")
	final Map<String, String> strParams = Collections.synchronizedMap(new HashMap<String, String>() {
		{
			put(P_MUX_NAME, S_NULL); 	// MUX_NAME=<muxName>
			put(P_AES, S_NULL); 		// AES=<key>
			put(P_AES_ALG, S_NULL); 	// AESALG=<cipherAlgorithm>
			// SSL=server.crt:server.key:client.crt (MUX-IN|CLUSTER-IN)
			// SSL=client.crt:client.key:server.crt (MUX-OUT|CLUSTER-OUT)
			put(P_SSL, S_NULL);
			// SSL=server.crt:server.key[:client.crt]
			put(P_ENDSSL, S_NULL);
			put(P_STICKY, S_NULL);		// STICKY=MEM:bitmask:elements:ttl
		}
	});
	@SuppressWarnings("serial")
	final Map<String, Integer> intParams = Collections.synchronizedMap(new HashMap<String, Integer>() {
		{
			put(P_CONNECT_TIMEOUT, I_NULL); // CONNECT_TIMEOUT=millis
			put(P_READ_TIMEOUT, I_NULL); 	// READ_TIMEOUT=millis
			put(P_TUN_ID, I_NULL); 			// TUN_ID=<idEndPoint>
			put(P_AES_BITS, I_NULL); 		// AESBITS=<keyLengthInBits>
		}
	});<commit_msg>fix comment<commit_after>package org.javastack.bouncer;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class Options {
	public static final String S_NULL = "";
	public static final Integer I_NULL = Integer.valueOf(0);
	public static final Long L_NULL = Long.valueOf(0);
	// Load Balancing Policies
	// @formatter:off
	public static final int LB_ORDER     = 0x00000000; 	// Original order, pick next only on error
	public static final int LB_RR        = 0x00000001; 	// Round robin
	public static final int LB_RAND      = 0x00000002; 	// Random pick
	public static final int TUN_SSL      = 0x00000010; 	// Remote is SSL (like stunnel)
	public static final int MUX_AES      = 0x00000020; 	// Encryption of MUX with AES+PreSharedKey
	public static final int MUX_SSL      = 0x00000040; 	// Encryption of MUX with SSL/TLS
	public static final int TUN_ENDSSL   = 0x00000080; 	// Client is SSL (like stunnel)
	public static final int MUX_OUT      = 0x00000100; 	// Multiplexor initiator (outbound)
	public static final int MUX_IN       = 0x00000200; 	// Multiplexor terminator (inbound)
	public static final int PROXY_SEND   = 0x00001000; 	// Send PROXY protocol (outbound)
	public static final int CLUSTER_AES  = 0x00020000; 	// Encryption of CLUSTER with AES+PreSharedKey
	public static final int CLUSTER_SSL  = 0x00040000; 	// Encryption of CLUSTER with SSL/TLS
	// @formatter:on
	//
	public static final String P_AES = "AES";
	public static final String P_AES_ALG = "AESALG";
	public static final String P_AES_BITS = "AESBITS";
	public static final String P_SSL = "SSL";
	public static final String P_ENDSSL = "ENDSSL";
	public static final String P_CONNECT_TIMEOUT = "CONNECT_TIMEOUT";
	public static final String P_READ_TIMEOUT = "READ_TIMEOUT";
	public static final String P_MUX_NAME = "MUX_NAME";
	public static final String P_TUN_ID = "TUN_ID";
	public static final String P_STICKY = "STICKY";
	public static final String P_CLUSTER_ID = "CLUSTER_ID";
	//
	@SuppressWarnings("serial")
	private final static Map<String, Integer> MAP_FLAGS = Collections
			.unmodifiableMap(new HashMap<String, Integer>() {
				{
					put("LB=ORDER", LB_ORDER);
					put("LB=RR", LB_RR);
					put("LB=RAND", LB_RAND);
					put("TUN=SSL", TUN_SSL);
					put("TUN=ENDSSL", TUN_ENDSSL);
					put("MUX=OUT", MUX_OUT);
					put("MUX=IN", MUX_IN);
					put("MUX=AES", MUX_AES);
					put("MUX=SSL", MUX_SSL);
					put("PROXY=SEND", PROXY_SEND);
					put("CLUSTER=AES", CLUSTER_AES);
					put("CLUSTER=SSL", CLUSTER_SSL);
				}
			});
	//
	StickyConfig stickyConfig = null;
	int flags;
	@SuppressWarnings("serial")
	final Map<String, String> strParams = Collections.synchronizedMap(new HashMap<String, String>() {
		{
			put(P_MUX_NAME, S_NULL); 	// MUX_NAME=<muxName>
			put(P_AES, S_NULL); 		// AES=<key>
			put(P_AES_ALG, S_NULL); 	// AESALG=<cipherAlgorithm>
			// SSL=server.crt:server.key:client.crt (MUX-IN|CLUSTER-IN)
			// SSL=client.crt:client.key:server.crt (MUX-OUT|CLUSTER-OUT)
			put(P_SSL, S_NULL);
			// ENDSSL=server.crt:server.key[:client.crt]
			put(P_ENDSSL, S_NULL);
			put(P_STICKY, S_NULL);		// STICKY=MEM:bitmask:elements:ttl
		}
	});
	@SuppressWarnings("serial")
	final Map<String, Integer> intParams = Collections.synchronizedMap(new HashMap<String, Integer>() {
		{
			put(P_CONNECT_TIMEOUT, I_NULL); // CONNECT_TIMEOUT=millis
			put(P_READ_TIMEOUT, I_NULL); 	// READ_TIMEOUT=millis
			put(P_TUN_ID, I_NULL); 			// TUN_ID=<idEndPoint>
			put(P_AES_BITS, I_NULL); 		// AESBITS=<keyLengthInBits>
		}
	});
{'fraction_non_alphanumeric': 0.11847080240862624, 'fraction_numerical': 0.030808010082621483, 'mean_word_length': 4.022503516174402, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '3219220', 'n_tokens_mistral': 3005, 'n_tokens_neox': 2620, 'n_words': 627}