<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  Coffee-Graph
//  Copyright(C) 2012 <NAME>
// 
//  Permission is hereby granted, free of charge, to any person obtaining a 
//  copy of this software and associated documentation files (the "Software"), 
//  to deal in the Software without restriction, including without limitation 
//  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
//  and/or sell copies of the Software, and to permit persons to whom the  
//  Software is furnished to do so, subject to the following conditions:
// 
//  The above copyright notice and this permission notice shall be included in 
//  all copies or substantial portions of the Software.
// 
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
//  THE SOFTWARE.
// 
////////////////////////////////////////////////////////////////////////////////

package bolt.web.coffee.command;

import com.beust.jcommander.Parameter;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * This class is used with JCommander annotations to populate the runtime arguments passed to coffee graph.
 *
 * @author <NAME>
 */
public final class CoffeeGraphCommand {

    @Parameter(description = "The .coffee files (or directory) to build the dependency graph for.")
    public List<File> files = new ArrayList<File>();

    @Parameter(names = {"--print", "-p"}, description = "Prints the ordered .coffee files on a single line.")
    public boolean print = false;

    @Parameter(names = {"--println", "-pl"}, description = "Prints the ordered .coffee files, one per line.")
    public boolean println = false;

    @Parameter(names = {"--tree", "-t"}, description = "Prints a dependency tree.")
    public boolean tree = false;

    @Parameter(names = {"--compile", "-c"}, description = "Performs an ordered file join and compilation to CoffeeScript")
    public boolean compile = false;

    @Parameter(names = {"--output, -o" }, description = "The file to output the dependency graph to.")
    public File outputFile = new File("lib/coffee-graph.js");<commit_msg>Just use -o for output.<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  Coffee-Graph
//  Copyright(C) 2012 <NAME>
// 
//  Permission is hereby granted, free of charge, to any person obtaining a 
//  copy of this software and associated documentation files (the "Software"), 
//  to deal in the Software without restriction, including without limitation 
//  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
//  and/or sell copies of the Software, and to permit persons to whom the  
//  Software is furnished to do so, subject to the following conditions:
// 
//  The above copyright notice and this permission notice shall be included in 
//  all copies or substantial portions of the Software.
// 
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
//  THE SOFTWARE.
// 
////////////////////////////////////////////////////////////////////////////////

package bolt.web.coffee.command;

import com.beust.jcommander.Parameter;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * This class is used with JCommander annotations to populate the runtime arguments passed to coffee graph.
 *
 * @author <NAME>
 */
public final class CoffeeGraphCommand {

    @Parameter(description = "The .coffee files (or directory) to build the dependency graph for.")
    public List<File> files = new ArrayList<File>();

    @Parameter(names = {"--print", "-p"}, description = "Prints the ordered .coffee files on a single line.")
    public boolean print = false;

    @Parameter(names = {"--println", "-pl"}, description = "Prints the ordered .coffee files, one per line.")
    public boolean println = false;

    @Parameter(names = {"--tree", "-t"}, description = "Prints a dependency tree.")
    public boolean tree = false;

    @Parameter(names = {"--compile", "-c"}, description = "Performs an ordered file join and compilation to CoffeeScript")
    public boolean compile = false;

    @Parameter(names = {"-o" }, description = "The file to output the dependency graph to.")
    public File outputFile = new File("lib/coffee-graph.js");
{'fraction_non_alphanumeric': 0.15788446526151445, 'fraction_numerical': 0.00156128024980484, 'mean_word_length': 2.7191582002902757, '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': '1216828', 'n_tokens_mistral': 1313, 'n_tokens_neox': 1256, 'n_words': 592}