<commit_before>package com.splicemachine.constants;

import com.google.common.collect.Lists;
import com.splicemachine.utils.SpliceLogUtils;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.log4j.Logger;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import java.util.concurrent.TimeUnit;

public class SpliceConstants {
    private static final Logger LOG = Logger.getLogger(SpliceConstants.class);

    /**
     * Flag to force the upgrade process to execute during database boot-up.
     * This flag should only be true for the master server.  If the upgrade runs on the region server,
     * it would probably be bad (at least if it ran concurrently with another upgrade).
     * On region servers, this flag will be temporarily true until the SpliceDriver is started.
     * The SpliceDriver will set the flag to false for all region servers.
     * Default is false.
     */
    @Parameter public static final String UPGRADE_FORCED = "splice.upgrade.forced";
    @DefaultValue(UPGRADE_FORCED) public static final boolean DEFAULT_UPGRADE_FORCED = false;
    public static boolean upgradeForced;

    /**
     * If the upgrade process is being forced, this tells which version to begin the upgrade process from.
     * Default is "0.0.0", which means that all upgrades will be executed.
     */
    @Parameter public static final String UPGRADE_FORCED_FROM = "splice.upgrade.forced.from";
    @DefaultValue(UPGRADE_FORCED_FROM) public static final String DEFAULT_UPGRADE_FORCED_FROM = "0.0.0";
    public static String upgradeForcedFromVersion;

    @Parameter public static final String ROLL_FORWARD_SEGMENTS = "splice.rollforward.numSegments";<commit_msg>Add Splice JDBC DRiver<commit_after>package com.splicemachine.constants;

import com.google.common.collect.Lists;
import com.splicemachine.utils.SpliceLogUtils;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.log4j.Logger;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import java.util.concurrent.TimeUnit;

public class SpliceConstants {
    private static final Logger LOG = Logger.getLogger(SpliceConstants.class);

    public static final String SPLICE_JDBC_DRIVER = "com.splicemachine.db.jdbc.ClientDriver";
    
    /**
     * Flag to force the upgrade process to execute during database boot-up.
     * This flag should only be true for the master server.  If the upgrade runs on the region server,
     * it would probably be bad (at least if it ran concurrently with another upgrade).
     * On region servers, this flag will be temporarily true until the SpliceDriver is started.
     * The SpliceDriver will set the flag to false for all region servers.
     * Default is false.
     */
    @Parameter public static final String UPGRADE_FORCED = "splice.upgrade.forced";
    @DefaultValue(UPGRADE_FORCED) public static final boolean DEFAULT_UPGRADE_FORCED = false;
    public static boolean upgradeForced;

    /**
     * If the upgrade process is being forced, this tells which version to begin the upgrade process from.
     * Default is "0.0.0", which means that all upgrades will be executed.
     */
    @Parameter public static final String UPGRADE_FORCED_FROM = "splice.upgrade.forced.from";
    @DefaultValue(UPGRADE_FORCED_FROM) public static final String DEFAULT_UPGRADE_FORCED_FROM = "0.0.0";
    public static String upgradeForcedFromVersion;

    @Parameter public static final String ROLL_FORWARD_SEGMENTS = "splice.rollforward.numSegments";
{'fraction_non_alphanumeric': 0.0738492665655033, 'fraction_numerical': 0.0035407182599898838, 'mean_word_length': 4.259308510638298, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3838552', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1105, 'n_words': 364}