<commit_before>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.concurrent.ThreadSafe;

/**
 * Configurations properties constants. Please check and update Configuration-Settings.md file when
 * you change or add Alluxio configuration properties.
 */
@ThreadSafe
public enum PropertyKey {
  CONF_DIR(Name.CONF_DIR, String.format("${%s}/conf", Name.HOME)),
  DEBUG(Name.DEBUG, false),
  HOME(Name.HOME, "/opt/alluxio"),
  KEY_VALUE_ENABLED(Name.KEY_VALUE_ENABLED, false),
  KEY_VALUE_PARTITION_SIZE_BYTES_MAX(Name.KEY_VALUE_PARTITION_SIZE_BYTES_MAX, "512MB"),
  LOGGER_TYPE(Name.LOGGER_TYPE, "Console"),
  LOGS_DIR(Name.LOGS_DIR, String.format("${%s}/logs", Name.WORK_DIR)),
  METRICS_CONF_FILE(Name.METRICS_CONF_FILE,
      String.format("${%s}/metrics.properties", Name.CONF_DIR)),
  NETWORK_HOST_RESOLUTION_TIMEOUT_MS(Name.NETWORK_HOST_RESOLUTION_TIMEOUT_MS, 5000),
  NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX(Name.NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX, "16MB"),
  SITE_CONF_DIR(Name.SITE_CONF_DIR, "${user.home}/.alluxio/,/etc/alluxio/"),
  TEST_MODE(Name.TEST_MODE, false),
  VERSION(Name.VERSION, ProjectConstants.VERSION),
  WEB_RESOURCES(Name.WEB_RESOURCES,
      String.format("${%s}/core/server/common/src/main/webapp", Name.HOME)),
  WEB_THREADS(Name.WEB_THREADS, 1),
  WORK_DIR(Name.WORK_DIR, String.format("${%s}", Name.HOME)),
  ZOOKEEPER_ADDRESS(Name.ZOOKEEPER_ADDRESS, null),
  ZOOKEEPER_ELECTION_PATH(Name.ZOOKEEPER_ELECTION_PATH, "/election"),
  ZOOKEEPER_ENABLED(Name.ZOOKEEPER_ENABLED, false),
  ZOOKEEPER_LEADER_INQUIRY_RETRY_COUNT(Name.ZOOKEEPER_LEADER_INQUIRY_RETRY_COUNT, 10),
  ZOOKEEPER_LEADER_PATH(Name.ZOOKEEPER_LEADER_PATH, "/leader"),

  //
  // UFS related properties
  //
  UNDERFS_ADDRESS(Name.UNDERFS_ADDRESS, String.format("${%s}/underFSStorage", Name.WORK_DIR)),
  UNDERFS_ALLOW_SET_OWNER_FAILURE(Name.UNDERFS_ALLOW_SET_OWNER_FAILURE, false),
  UNDERFS_LISTING_LENGTH(Name.UNDERFS_LISTING_LENGTH, 1000),
  UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING(Name.UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING, ""),
  UNDERFS_GLUSTERFS_IMPL(Name.UNDERFS_GLUSTERFS_IMPL,
      "org.apache.hadoop.fs.glusterfs.GlusterFileSystem"),
  UNDERFS_GLUSTERFS_MOUNTS(Name.UNDERFS_GLUSTERFS_MOUNTS, null),
  UNDERFS_GLUSTERFS_MR_DIR(Name.UNDERFS_GLUSTERFS_MR_DIR, "glusterfs:///mapred/system"),
  UNDERFS_GLUSTERFS_VOLUMES(Name.UNDERFS_GLUSTERFS_VOLUMES, null),
  UNDERFS_HDFS_CONFIGURATION(Name.UNDERFS_HDFS_CONFIGURATION,
      String.format("${%s}/core-site.xml", Name.CONF_DIR)),
  UNDERFS_HDFS_IMPL(Name.UNDERFS_HDFS_IMPL, "org.apache.hadoop.hdfs.DistributedFileSystem"),
  UNDERFS_HDFS_PREFIXES(Name.UNDERFS_HDFS_PREFIXES, "hdfs://,glusterfs:///,maprfs:///"),
  UNDERFS_HDFS_REMOTE(Name.UNDERFS_HDFS_REMOTE, false),
  UNDERFS_OBJECT_STORE_MOUNT_SHARED_PUBLICLY(Name.UNDERFS_OBJECT_STORE_MOUNT_SHARED_PUBLICLY,
      false),
  UNDERFS_OSS_CONNECT_MAX(Name.UNDERFS_OSS_CONNECT_MAX, 1024),
  UNDERFS_OSS_CONNECT_TIMEOUT(Name.UNDERFS_OSS_CONNECT_TIMEOUT, 50000),
  UNDERFS_OSS_CONNECT_TTL(Name.UNDERFS_OSS_CONNECT_TTL, -1),
  UNDERFS_OSS_SOCKET_TIMEOUT(Name.UNDERFS_OSS_SOCKET_TIMEOUT, 50000),
  UNDERFS_S3_ADMIN_THREADS_MAX(Name.UNDERFS_S3_ADMIN_THREADS_MAX, 20),
  UNDERFS_S3_DISABLE_DNS_BUCKETS(Name.UNDERFS_S3_DISABLE_DNS_BUCKETS, false),
  UNDERFS_S3_ENDPOINT(Name.UNDERFS_S3_ENDPOINT, null),
  UNDERFS_S3_ENDPOINT_HTTP_PORT(Name.UNDERFS_S3_ENDPOINT_HTTP_PORT, null),
  UNDERFS_S3_ENDPOINT_HTTPS_PORT(Name.UNDERFS_S3_ENDPOINT_HTTPS_PORT, null),
  UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING(Name.UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING, ""),
  UNDERFS_S3_PROXY_HOST(Name.UNDERFS_S3_PROXY_HOST, null),
  UNDERFS_S3_PROXY_HTTPS_ONLY(Name.UNDERFS_S3_PROXY_HTTPS_ONLY, true),
  UNDERFS_S3_PROXY_PORT(Name.UNDERFS_S3_PROXY_PORT, null),
  UNDERFS_S3_THREADS_MAX(Name.UNDERFS_S3_THREADS_MAX, 40),
  UNDERFS_S3_UPLOAD_THREADS_MAX(Name.UNDERFS_S3_UPLOAD_THREADS_MAX, 20),
  UNDERFS_S3A_CONSISTENCY_TIMEOUT_MS(Name.UNDERFS_S3A_CONSISTENCY_TIMEOUT_MS, 60000),
  UNDERFS_S3A_INHERIT_ACL(Name.UNDERFS_S3A_INHERIT_ACL, true),
  UNDERFS_S3A_REQUEST_TIMEOUT(Name.UNDERFS_S3A_REQUEST_TIMEOUT_MS, 60000),
  UNDERFS_S3A_SECURE_HTTP_ENABLED(Name.UNDERFS_S3A_SECURE_HTTP_ENABLED, false),
  UNDERFS_S3A_SERVER_SIDE_ENCRYPTION_ENABLED(Name.UNDERFS_S3A_SERVER_SIDE_ENCRYPTION_ENABLED,
      false),
  UNDERFS_S3A_SIGNER_ALGORITHM(Name.UNDERFS_S3A_SIGNER_ALGORITHM, null),
  UNDERFS_S3A_SOCKET_TIMEOUT_MS(Name.UNDERFS_S3A_SOCKET_TIMEOUT_MS, 50000),

  //
  // UFS access control related properties
  //
  // Not prefixed with fs, the s3a property names mirror the aws-sdk property names for ease of use
  GCS_ACCESS_KEY(Name.GCS_ACCESS_KEY, null),
  GCS_SECRET_KEY(Name.GCS_SECRET_KEY, null),
  OSS_ACCESS_KEY(Name.OSS_ACCESS_KEY, null),
  OSS_ENDPOINT_KEY(Name.OSS_ENDPOINT_KEY, null),
  OSS_SECRET_KEY(Name.OSS_SECRET_KEY, null),
  S3A_ACCESS_KEY(Name.S3A_ACCESS_KEY, null),
  S3A_SECRET_KEY(Name.S3A_SECRET_KEY, null),
  S3N_ACCESS_KEY(Name.S3N_ACCESS_KEY, null),
  S3N_SECRET_KEY(Name.S3N_SECRET_KEY, null),
  SWIFT_API_KEY(Name.SWIFT_API_KEY, null),
  SWIFT_AUTH_METHOD_KEY(Name.SWIFT_AUTH_METHOD_KEY, null),
  SWIFT_AUTH_URL_KEY(Name.SWIFT_AUTH_URL_KEY, null),
  SWIFT_PASSWORD_KEY(Name.SWIFT_PASSWORD_KEY, null),
  SWIFT_SIMULATION(Name.SWIFT_SIMULATION, null),
  SWIFT_TENANT_KEY(Name.SWIFT_TENANT_KEY, null),
  SWIFT_USE_PUBLIC_URI_KEY(Name.SWIFT_USE_PUBLIC_URI_KEY, null),
  SWIFT_USER_KEY(Name.SWIFT_USER_KEY, null),
  SWIFT_REGION_KEY(Name.SWIFT_REGION_KEY, null),

  //
  // Master related properties
  //
  // deprecated since version 1.3 and will be removed in version 2.0
  // use MASTER_HOSTNAME instead
  @Deprecated MASTER_ADDRESS(Name.MASTER_ADDRESS, null),
  MASTER_BIND_HOST(Name.MASTER_BIND_HOST, "0.0.0.0"),
  MASTER_CONNECTION_TIMEOUT_MS(Name.MASTER_CONNECTION_TIMEOUT_MS, 0),
  MASTER_FILE_ASYNC_PERSIST_HANDLER(Name.MASTER_FILE_ASYNC_PERSIST_HANDLER,
      "alluxio.master.file.async.DefaultAsyncPersistHandler"),
  MASTER_FORMAT_FILE_PREFIX(Name.MASTER_FORMAT_FILE_PREFIX, "_format_"),
  MASTER_HEARTBEAT_INTERVAL_MS(Name.MASTER_HEARTBEAT_INTERVAL_MS, 1000),
  MASTER_HOSTNAME(Name.MASTER_HOSTNAME, null),
  MASTER_JOURNAL_FLUSH_BATCH_TIME_MS(Name.MASTER_JOURNAL_FLUSH_BATCH_TIME_MS, 5),
  MASTER_JOURNAL_FLUSH_TIMEOUT_MS(Name.MASTER_JOURNAL_FLUSH_TIMEOUT_MS, 300000),
  MASTER_JOURNAL_FOLDER(Name.MASTER_JOURNAL_FOLDER, String.format("${%s}/journal", Name.WORK_DIR)),
  // Deprecated since 1.5.0 and will be removed in 2.0.
  MASTER_JOURNAL_FORMATTER_CLASS(Name.MASTER_JOURNAL_FORMATTER_CLASS,
      "alluxio.master.journalv0.ProtoBufJournalFormatter"),
  MASTER_JOURNAL_LOG_SIZE_BYTES_MAX(Name.MASTER_JOURNAL_LOG_SIZE_BYTES_MAX, "10MB"),<commit_msg>Fixing the build.<commit_after>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.concurrent.ThreadSafe;

/**
 * Configurations properties constants. Please check and update Configuration-Settings.md file when
 * you change or add Alluxio configuration properties.
 */
@ThreadSafe
public enum PropertyKey {
  CONF_DIR(Name.CONF_DIR, String.format("${%s}/conf", Name.HOME)),
  DEBUG(Name.DEBUG, false),
  HOME(Name.HOME, "/opt/alluxio"),
  KEY_VALUE_ENABLED(Name.KEY_VALUE_ENABLED, false),
  KEY_VALUE_PARTITION_SIZE_BYTES_MAX(Name.KEY_VALUE_PARTITION_SIZE_BYTES_MAX, "512MB"),
  LOGGER_TYPE(Name.LOGGER_TYPE, "Console"),
  LOGS_DIR(Name.LOGS_DIR, String.format("${%s}/logs", Name.WORK_DIR)),
  METRICS_CONF_FILE(Name.METRICS_CONF_FILE,
      String.format("${%s}/metrics.properties", Name.CONF_DIR)),
  NETWORK_HOST_RESOLUTION_TIMEOUT_MS(Name.NETWORK_HOST_RESOLUTION_TIMEOUT_MS, 5000),
  NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX(Name.NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX, "16MB"),
  SITE_CONF_DIR(Name.SITE_CONF_DIR, "${user.home}/.alluxio/,/etc/alluxio/"),
  TEST_MODE(Name.TEST_MODE, false),
  VERSION(Name.VERSION, ProjectConstants.VERSION),
  WEB_RESOURCES(Name.WEB_RESOURCES,
      String.format("${%s}/core/server/common/src/main/webapp", Name.HOME)),
  WEB_THREADS(Name.WEB_THREADS, 1),
  WORK_DIR(Name.WORK_DIR, String.format("${%s}", Name.HOME)),
  ZOOKEEPER_ADDRESS(Name.ZOOKEEPER_ADDRESS, null),
  ZOOKEEPER_ELECTION_PATH(Name.ZOOKEEPER_ELECTION_PATH, "/election"),
  ZOOKEEPER_ENABLED(Name.ZOOKEEPER_ENABLED, false),
  ZOOKEEPER_LEADER_INQUIRY_RETRY_COUNT(Name.ZOOKEEPER_LEADER_INQUIRY_RETRY_COUNT, 10),
  ZOOKEEPER_LEADER_PATH(Name.ZOOKEEPER_LEADER_PATH, "/leader"),

  //
  // UFS related properties
  //
  UNDERFS_ADDRESS(Name.UNDERFS_ADDRESS, String.format("${%s}/underFSStorage", Name.WORK_DIR)),
  UNDERFS_ALLOW_SET_OWNER_FAILURE(Name.UNDERFS_ALLOW_SET_OWNER_FAILURE, false),
  UNDERFS_LISTING_LENGTH(Name.UNDERFS_LISTING_LENGTH, 1000),
  UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING(Name.UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING, ""),
  UNDERFS_GLUSTERFS_IMPL(Name.UNDERFS_GLUSTERFS_IMPL,
      "org.apache.hadoop.fs.glusterfs.GlusterFileSystem"),
  UNDERFS_GLUSTERFS_MOUNTS(Name.UNDERFS_GLUSTERFS_MOUNTS, null),
  UNDERFS_GLUSTERFS_MR_DIR(Name.UNDERFS_GLUSTERFS_MR_DIR, "glusterfs:///mapred/system"),
  UNDERFS_GLUSTERFS_VOLUMES(Name.UNDERFS_GLUSTERFS_VOLUMES, null),
  UNDERFS_HDFS_CONFIGURATION(Name.UNDERFS_HDFS_CONFIGURATION,
      String.format("${%s}/core-site.xml", Name.CONF_DIR)),
  UNDERFS_HDFS_IMPL(Name.UNDERFS_HDFS_IMPL, "org.apache.hadoop.hdfs.DistributedFileSystem"),
  UNDERFS_HDFS_PREFIXES(Name.UNDERFS_HDFS_PREFIXES, "hdfs://,glusterfs:///,maprfs:///"),
  UNDERFS_HDFS_REMOTE(Name.UNDERFS_HDFS_REMOTE, false),
  UNDERFS_OBJECT_STORE_MOUNT_SHARED_PUBLICLY(Name.UNDERFS_OBJECT_STORE_MOUNT_SHARED_PUBLICLY,
      false),
  UNDERFS_OSS_CONNECT_MAX(Name.UNDERFS_OSS_CONNECT_MAX, 1024),
  UNDERFS_OSS_CONNECT_TIMEOUT(Name.UNDERFS_OSS_CONNECT_TIMEOUT, 50000),
  UNDERFS_OSS_CONNECT_TTL(Name.UNDERFS_OSS_CONNECT_TTL, -1),
  UNDERFS_OSS_SOCKET_TIMEOUT(Name.UNDERFS_OSS_SOCKET_TIMEOUT, 50000),
  UNDERFS_S3_ADMIN_THREADS_MAX(Name.UNDERFS_S3_ADMIN_THREADS_MAX, 20),
  UNDERFS_S3_DISABLE_DNS_BUCKETS(Name.UNDERFS_S3_DISABLE_DNS_BUCKETS, false),
  UNDERFS_S3_ENDPOINT(Name.UNDERFS_S3_ENDPOINT, null),
  UNDERFS_S3_ENDPOINT_HTTP_PORT(Name.UNDERFS_S3_ENDPOINT_HTTP_PORT, null),
  UNDERFS_S3_ENDPOINT_HTTPS_PORT(Name.UNDERFS_S3_ENDPOINT_HTTPS_PORT, null),
  UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING(Name.UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING, ""),
  UNDERFS_S3_PROXY_HOST(Name.UNDERFS_S3_PROXY_HOST, null),
  UNDERFS_S3_PROXY_HTTPS_ONLY(Name.UNDERFS_S3_PROXY_HTTPS_ONLY, true),
  UNDERFS_S3_PROXY_PORT(Name.UNDERFS_S3_PROXY_PORT, null),
  UNDERFS_S3_THREADS_MAX(Name.UNDERFS_S3_THREADS_MAX, 40),
  UNDERFS_S3_UPLOAD_THREADS_MAX(Name.UNDERFS_S3_UPLOAD_THREADS_MAX, 20),
  UNDERFS_S3A_CONSISTENCY_TIMEOUT_MS(Name.UNDERFS_S3A_CONSISTENCY_TIMEOUT_MS, 60000),
  UNDERFS_S3A_INHERIT_ACL(Name.UNDERFS_S3A_INHERIT_ACL, true),
  UNDERFS_S3A_REQUEST_TIMEOUT(Name.UNDERFS_S3A_REQUEST_TIMEOUT_MS, 60000),
  UNDERFS_S3A_SECURE_HTTP_ENABLED(Name.UNDERFS_S3A_SECURE_HTTP_ENABLED, false),
  UNDERFS_S3A_SERVER_SIDE_ENCRYPTION_ENABLED(Name.UNDERFS_S3A_SERVER_SIDE_ENCRYPTION_ENABLED,
      false),
  UNDERFS_S3A_SIGNER_ALGORITHM(Name.UNDERFS_S3A_SIGNER_ALGORITHM, null),
  UNDERFS_S3A_SOCKET_TIMEOUT_MS(Name.UNDERFS_S3A_SOCKET_TIMEOUT_MS, 50000),

  //
  // UFS access control related properties
  //
  // Not prefixed with fs, the s3a property names mirror the aws-sdk property names for ease of use
  GCS_ACCESS_KEY(Name.GCS_ACCESS_KEY, null),
  GCS_SECRET_KEY(Name.GCS_SECRET_KEY, null),
  OSS_ACCESS_KEY(Name.OSS_ACCESS_KEY, null),
  OSS_ENDPOINT_KEY(Name.OSS_ENDPOINT_KEY, null),
  OSS_SECRET_KEY(Name.OSS_SECRET_KEY, null),
  S3A_ACCESS_KEY(Name.S3A_ACCESS_KEY, null),
  S3A_SECRET_KEY(Name.S3A_SECRET_KEY, null),
  S3N_ACCESS_KEY(Name.S3N_ACCESS_KEY, null),
  S3N_SECRET_KEY(Name.S3N_SECRET_KEY, null),
  SWIFT_API_KEY(Name.SWIFT_API_KEY, null),
  SWIFT_AUTH_METHOD_KEY(Name.SWIFT_AUTH_METHOD_KEY, null),
  SWIFT_AUTH_URL_KEY(Name.SWIFT_AUTH_URL_KEY, null),
  SWIFT_PASSWORD_KEY(Name.SWIFT_PASSWORD_KEY, null),
  SWIFT_SIMULATION(Name.SWIFT_SIMULATION, null),
  SWIFT_TENANT_KEY(Name.SWIFT_TENANT_KEY, null),
  SWIFT_USE_PUBLIC_URI_KEY(Name.SWIFT_USE_PUBLIC_URI_KEY, null),
  SWIFT_USER_KEY(Name.SWIFT_USER_KEY, null),
  SWIFT_REGION_KEY(Name.SWIFT_REGION_KEY, null),

  //
  // Master related properties
  //
  // deprecated since version 1.3 and will be removed in version 2.0
  // use MASTER_HOSTNAME instead
  MASTER_ADDRESS(Name.MASTER_ADDRESS, null),
  MASTER_BIND_HOST(Name.MASTER_BIND_HOST, "0.0.0.0"),
  MASTER_CONNECTION_TIMEOUT_MS(Name.MASTER_CONNECTION_TIMEOUT_MS, 0),
  MASTER_FILE_ASYNC_PERSIST_HANDLER(Name.MASTER_FILE_ASYNC_PERSIST_HANDLER,
      "alluxio.master.file.async.DefaultAsyncPersistHandler"),
  MASTER_FORMAT_FILE_PREFIX(Name.MASTER_FORMAT_FILE_PREFIX, "_format_"),
  MASTER_HEARTBEAT_INTERVAL_MS(Name.MASTER_HEARTBEAT_INTERVAL_MS, 1000),
  MASTER_HOSTNAME(Name.MASTER_HOSTNAME, null),
  MASTER_JOURNAL_FLUSH_BATCH_TIME_MS(Name.MASTER_JOURNAL_FLUSH_BATCH_TIME_MS, 5),
  MASTER_JOURNAL_FLUSH_TIMEOUT_MS(Name.MASTER_JOURNAL_FLUSH_TIMEOUT_MS, 300000),
  MASTER_JOURNAL_FOLDER(Name.MASTER_JOURNAL_FOLDER, String.format("${%s}/journal", Name.WORK_DIR)),
  // Deprecated since 1.5.0 and will be removed in 2.0.
  MASTER_JOURNAL_FORMATTER_CLASS(Name.MASTER_JOURNAL_FORMATTER_CLASS,
      "alluxio.master.journalv0.ProtoBufJournalFormatter"),
  MASTER_JOURNAL_LOG_SIZE_BYTES_MAX(Name.MASTER_JOURNAL_LOG_SIZE_BYTES_MAX, "10MB"),
{'fraction_non_alphanumeric': 0.0996253642292216, 'fraction_numerical': 0.01789926460385736, 'mean_word_length': 7.51447135262847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 2, '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': '820135', 'n_tokens_mistral': 6217, 'n_tokens_neox': 6021, 'n_words': 666}