<commit_before>/*
 * Constants.java
 * 
 * Copyright 2002 <NAME> and <NAME>.
 */
package edu.gatech.cc.jcrasher;

import java.io.File;

/**
 * Project-wide constants.
 * 
 * ALL_CAP members may only be set during application setup.
 * They are user-defined constants.
 * 
 * @author <EMAIL> (<NAME>)
 */
public abstract class Constants {

	/**
	 * Filters plans.
	 */
  public enum PlanFilter {
  	/** null, new A(null), .. */
    ALL,
    
    /** new A(null), .. */
    NON_NULL,
    
    /** .. */
    NON_NULL_TRANS
  }

  
  /**
   * TODO(csallner): align with Java semantics.
   */
  public enum Visibility {  	
  	/** All members visible from anywhere = public (default) */
    GLOBAL,
    
    /** All members visible inside the same package */
    PACKAGE,
    
    /** Any visibility */
    ANY
  }

  
  /**
   * Verbosity levels
   */
  public enum Verbose {  	
  	/** do not print any type-graph */
    DEFAULT,
    
    /** print type-graph used for creating tests */
    VERBOSE,
    
    /** print entire type-graph */
    ALL
  }

  
  /**
   * Maximum number of test cases tried per testee class.
   * This is a soft limit, MAX_NR_TEST_CLASSES is more important.
   */
  public static int MAX_TEST_CASES_TRIED_CLASS = 1000; 
  
	/**
	 * How many test classes should be generated max?
   * Default set to 200 to enable fast compiling.
   * This will result in 100,000 test cases (given the
   * default setting of 500 test cases per test class).
   * The original JCrasher paper talked about two million.
   * You can overwrite this setting with --files.
	 */
  public static int MAX_NR_TEST_CLASSES = 200;
  
	/**
	 * How many test methods per generated test class:
	 * 1000 and junitMultiCL will generate OutOfMemoryError
	 */
  public static int MAX_NR_TEST_METHS_PER_CLASS = 500;
  
  /**
   * How much internal state shown to user.  
   */
  public static Verbose VERBOSE_LEVEL = Verbose.DEFAULT;


  /**
   * Library packages
   */
  public final static String[] LIBRARY_TYPES = new String[]{
    "java.", 
    "javax.", 
    "sun.", 
    "com.sun.", 
    "org.apache.", 
    "org.ietf.",
    "org.omg.", 
    "org.w3c.", <commit_msg>- No longer consider org.apache.* as library type in Constants class.<commit_after>/*
 * Constants.java
 * 
 * Copyright 2002 <NAME> and <NAME>.
 */
package edu.gatech.cc.jcrasher;

import java.io.File;

/**
 * Project-wide constants.
 * 
 * ALL_CAP members may only be set during application setup.
 * They are user-defined constants.
 * 
 * @author <EMAIL> (<NAME>)
 */
public abstract class Constants {

	/**
	 * Filters plans.
	 */
  public enum PlanFilter {
  	/** null, new A(null), .. */
    ALL,
    
    /** new A(null), .. */
    NON_NULL,
    
    /** .. */
    NON_NULL_TRANS
  }

  
  /**
   * TODO(csallner): align with Java semantics.
   */
  public enum Visibility {  	
  	/** All members visible from anywhere = public (default) */
    GLOBAL,
    
    /** All members visible inside the same package */
    PACKAGE,
    
    /** Any visibility */
    ANY
  }

  
  /**
   * Verbosity levels
   */
  public enum Verbose {  	
  	/** do not print any type-graph */
    DEFAULT,
    
    /** print type-graph used for creating tests */
    VERBOSE,
    
    /** print entire type-graph */
    ALL
  }

  
  /**
   * Maximum number of test cases tried per testee class.
   * This is a soft limit, MAX_NR_TEST_CLASSES is more important.
   */
  public static int MAX_TEST_CASES_TRIED_CLASS = 1000; 
  
	/**
	 * How many test classes should be generated max?
   * Default set to 200 to enable fast compiling.
   * This will result in 100,000 test cases (given the
   * default setting of 500 test cases per test class).
   * The original JCrasher paper talked about two million.
   * You can overwrite this setting with --files.
	 */
  public static int MAX_NR_TEST_CLASSES = 200;
  
	/**
	 * How many test methods per generated test class:
	 * 1000 and junitMultiCL will generate OutOfMemoryError
	 */
  public static int MAX_NR_TEST_METHS_PER_CLASS = 500;
  
  /**
   * How much internal state shown to user.  
   */
  public static Verbose VERBOSE_LEVEL = Verbose.DEFAULT;


  /**
   * Library packages
   */
  public final static String[] LIBRARY_TYPES = new String[]{
    "java.", 
    "javax.", 
    "sun.", 
    "com.sun.", 
    //"org.apache.",  //TODO: Why did we consider these library types? 
    "org.ietf.",
    "org.omg.", 
    "org.w3c.", 
{'fraction_non_alphanumeric': 0.11555857078245138, 'fraction_numerical': 0.014020805065581185, 'mean_word_length': 2.2617994100294987, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7654290', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1388, 'n_words': 458}