<commit_before>package org.uli.util;

import org.junit.Test;
import static org.junit.Assert.*;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
//import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
//import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
//import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser;

public class MyOptionBuilderTest
{
    @Test
    public void testNew() {
	Option option = MyOptionBuilder.init().create("x");
    }

    @Test
    public void testSimpleOption() throws Exception {
	String[] args = new String[] { "-x" };
	Option option = MyOptionBuilder.init().create("x");
	Options options = new Options();
	options.addOption(option);
	CommandLineParser commandLineParser = new PosixParser();
	CommandLine commandLine = commandLineParser.parse(options, args);
	assertTrue(commandLine.hasOption("x"));
	assertFalse(commandLine.hasOption("X"));
    }
}<commit_msg>Fixed indentation<commit_after>package org.uli.util;

import org.junit.Test;
import static org.junit.Assert.*;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
// import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
// import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
// import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser;

public class MyOptionBuilderTest
{

    @Test
    public void testNew() {
        Option option = MyOptionBuilder.init().create("x");
    }

    @Test
    public void testSimpleOption() throws Exception {
        String[] args = new String[] { "-x" };
        Option option = MyOptionBuilder.init().create("x");
        Options options = new Options();
        options.addOption(option);
        CommandLineParser commandLineParser = new PosixParser();
        CommandLine commandLine = commandLineParser.parse(options, args);
        assertTrue(commandLine.hasOption("x"));
        assertFalse(commandLine.hasOption("X"));
    }
}
{'fraction_non_alphanumeric': 0.1285781323322384, 'fraction_numerical': 0.0, 'mean_word_length': 4.316708229426434, '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': '3952605', 'n_tokens_mistral': 612, 'n_tokens_neox': 609, 'n_words': 125}