<commit_before>/**
 * 
 */
package edu.psu.swe.scim.compliance.server.configuration;

import com.eclipsesource.restfuse.Destination;

/**
 * Allows the Restfuse Destination to be specified via environment variables
 * or JVM properties so that tests can be executed against different
 * environments (dev, test, acc, sb, prod).
 * 
 * @author <NAME> &lt;<EMAIL>&gt;
 */
public class Configuration {

  public static String DEFAULT_DESTINATION = "http://localhost:8080/scim/v2";
  public static String DEFAULT_PROXY_HOST = "";
  public static String DEFAULT_PROXY_PORT = "";

  public static String ENV_DESTINATION = "RESTFUSE_DESTINATION";
  public static String ENV_PROXY_HOST = "RESTFUSE_PROXY_HOST";
  public static String ENV_PROXY_PORT = "RESTFUSE_PROXY_PORT";

  public static String PROPERTY_DESTINATION = "restfuse.destination";
  public static String PROPERTY_PROXY_HOST = "restfuse.proxy.host";
  public static String PROPERTY_PROXY_PORT = "restfuse.proxy.port";

  static String destinationUrl;
  static String proxyHost;
  static Integer proxyPort;

  /*
  * Processes the environment variables and JVM properties statically so that
  * this processing only happens once per test run.
  */
  static {
    destinationUrl = getValue(DEFAULT_DESTINATION, ENV_DESTINATION, PROPERTY_DESTINATION);
    proxyHost = getValue(DEFAULT_PROXY_HOST, ENV_PROXY_HOST, PROPERTY_PROXY_HOST);
    String proxyPortString = getValue(DEFAULT_PROXY_PORT, ENV_PROXY_HOST, PROPERTY_PROXY_PORT);
    
    if (proxyPortString != null && !proxyPortString.isEmpty()) {<commit_msg>Made constants final as suggested by Sonar (duh!).<commit_after>/**
 * 
 */
package edu.psu.swe.scim.compliance.server.configuration;

import com.eclipsesource.restfuse.Destination;

/**
 * Allows the Restfuse Destination to be specified via environment variables
 * or JVM properties so that tests can be executed against different
 * environments (dev, test, acc, sb, prod).
 * 
 * @author <NAME> &lt;<EMAIL>&gt;
 */
public final class Configuration {

  public static final String DEFAULT_DESTINATION = "http://localhost:8080/scim/v2";
  public static final String DEFAULT_PROXY_HOST = "";
  public static final String DEFAULT_PROXY_PORT = "";

  public static final String ENV_DESTINATION = "RESTFUSE_DESTINATION";
  public static final String ENV_PROXY_HOST = "RESTFUSE_PROXY_HOST";
  public static final String ENV_PROXY_PORT = "RESTFUSE_PROXY_PORT";

  public static final String PROPERTY_DESTINATION = "restfuse.destination";
  public static final String PROPERTY_PROXY_HOST = "restfuse.proxy.host";
  public static final String PROPERTY_PROXY_PORT = "restfuse.proxy.port";

  static String destinationUrl;
  static String proxyHost;
  static Integer proxyPort;

  /*
  * Processes the environment variables and JVM properties statically so that
  * this processing only happens once per test run.
  */
  static {
    destinationUrl = getValue(DEFAULT_DESTINATION, ENV_DESTINATION, PROPERTY_DESTINATION);
    proxyHost = getValue(DEFAULT_PROXY_HOST, ENV_PROXY_HOST, PROPERTY_PROXY_HOST);
    String proxyPortString = getValue(DEFAULT_PROXY_PORT, ENV_PROXY_HOST, PROPERTY_PROXY_PORT);
    
    if (proxyPortString != null && !proxyPortString.isEmpty()) {
{'fraction_non_alphanumeric': 0.08434108527131783, 'fraction_numerical': 0.0031007751937984496, 'mean_word_length': 5.0753295668549905, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '425978', 'n_tokens_mistral': 1014, 'n_tokens_neox': 1005, 'n_words': 269}