<commit_before>package edu.dynamic.dynamiz.parser;

import edu.dynamic.dynamiz.UI.*;
import edu.dynamic.dynamiz.controller.*;
import edu.dynamic.dynamiz.parser.*;
import edu.dynamic.dynamiz.storage.*;
import edu.dynamic.dynamiz.structure.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * A single command-line option. It keeps information of an option
 * such as 
 * 	- short name
 *  - long name (if any)
 *  - number of arguments required (0: none, 1: one, -1: none or many, -2: at least 1)
 *  - self documenting description string
 *  
 * An Option requires at least a short name or a long name.
 * 
 * @author nhan
 *
 * Modelled after CLI library
 */

public class Option{
	/*=========================================================================
	 * Constants
	 * ========================================================================
	 */
	/** constant that specifies if the number of required arguments has not been specified */
	private static final int ARGS_UNINITIALISED = -99;
	
	/** constant that specifies if the required number of arguments is 0 */
	public static final int ARGS_NONE = 0;
	
	/** constant that specifies if the required number of arguments is 1 */
	public static final int ARGS_ONE = 1;
	
	/** constant that specifies if the required number of arguments is 2 */
	public static final int ARGS_TWO = 2;
	
	/** constant that specifies if the number of arguments is at least 1 */
	public static final int ARGS_UNLIMITED = -2;
	
	/** constant that specifies if the number of arguments is none or many */
	public static final int ARGS_OPTIONAL = -1;
	
	/** constant that specifies the default character for delimiter of argument values */
	public static final char DEFAULT_DELIMITER = ' ';
	
	/*=========================================================================
	 * Class attributes
	 * ========================================================================
	 */
	/** option short name */
	private String optName;
	
	/** option long name */
	private String longOptName;
	
	/** option required number of argument */<commit_msg>Reverted the DEFAULT_DELIMITER<commit_after>package edu.dynamic.dynamiz.parser;

import edu.dynamic.dynamiz.UI.*;
import edu.dynamic.dynamiz.controller.*;
import edu.dynamic.dynamiz.parser.*;
import edu.dynamic.dynamiz.storage.*;
import edu.dynamic.dynamiz.structure.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * A single command-line option. It keeps information of an option
 * such as 
 * 	- short name
 *  - long name (if any)
 *  - number of arguments required (0: none, 1: one, -1: none or many, -2: at least 1)
 *  - self documenting description string
 *  
 * An Option requires at least a short name or a long name.
 * 
 * @author nhan
 *
 * Modelled after CLI library
 */

public class Option{
	/*=========================================================================
	 * Constants
	 * ========================================================================
	 */
	/** constant that specifies if the number of required arguments has not been specified */
	private static final int ARGS_UNINITIALISED = -99;
	
	/** constant that specifies if the required number of arguments is 0 */
	public static final int ARGS_NONE = 0;
	
	/** constant that specifies if the required number of arguments is 1 */
	public static final int ARGS_ONE = 1;
	
	/** constant that specifies if the required number of arguments is 2 */
	public static final int ARGS_TWO = 2;
	
	/** constant that specifies if the number of arguments is at least 1 */
	public static final int ARGS_UNLIMITED = -2;
	
	/** constant that specifies if the number of arguments is none or many */
	public static final int ARGS_OPTIONAL = -1;
	
	/** constant that specifies the default character for delimiter of argument values */
	public static final char DEFAULT_DELIMITER = ',';
	
	/*=========================================================================
	 * Class attributes
	 * ========================================================================
	 */
	/** option short name */
	private String optName;
	
	/** option long name */
	private String longOptName;
	
	/** option required number of argument */
{'fraction_non_alphanumeric': 0.21735008295804692, 'fraction_numerical': 0.007584735719364778, 'mean_word_length': 4.035799522673031, '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': '2261952', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1038, 'n_words': 440}