<commit_before>package ru.yandex.qatools.allure;

import io.airlift.command.*;
import org.apache.commons.io.IOUtils;
import ru.yandex.qatools.allure.config.AllureConfig;
import ru.yandex.qatools.allure.data.AllureReportGenerator;

import javax.inject.Inject;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

/**
 * @author <NAME> <EMAIL>
 *         Date: 23.05.14
 */
@Command(name = "allure", description = "Allure report generation utility")
public class AllureCli {

    private static final String REPORT_FACE_DIRECTORY = "allure-report-face";

    private static final String DEFAULT_OUTPUT_PATH = "output";

    @Inject
    public HelpOption helpOption;

    @Option(type = OptionType.COMMAND,
            name = {"-o", "--outputPath"},
            description = "Directory to output report files to (default is \"" + DEFAULT_OUTPUT_PATH + "\")")
    public String outputPath = DEFAULT_OUTPUT_PATH;

    @Arguments(title = "input directories",
            description = "A list of input directories to be processed")
    public List<String> inputPaths;

    @Option(name = {"--version"})
    public boolean version;

    @SuppressWarnings("unused")
    @Option(name = {"-v", "--verbose"})
    public boolean verbose;

    public static void main(String[] args) {
        AllureCli allure;
        try {
            allure = SingleCommand.singleCommand(AllureCli.class).parse(args);
        } catch (ParseException e) {
            System.out.println(e.getMessage());<commit_msg>Fixed NPE in AllureCLI<commit_after>package ru.yandex.qatools.allure;

import io.airlift.command.*;
import org.apache.commons.io.IOUtils;
import ru.yandex.qatools.allure.config.AllureConfig;
import ru.yandex.qatools.allure.data.AllureReportGenerator;

import javax.inject.Inject;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

/**
 * @author <NAME> <EMAIL>
 *         Date: 23.05.14
 */
@Command(name = "allure", description = "Allure report generation utility")
public class AllureCli {

    private static final String REPORT_FACE_DIRECTORY = "allure-report-face";

    private static final String DEFAULT_OUTPUT_PATH = "output";

    @Inject
    public HelpOption helpOption;

    @Option(type = OptionType.COMMAND,
            name = {"-o", "--outputPath"},
            description = "Directory to output report files to (default is \"" + DEFAULT_OUTPUT_PATH + "\")")
    public String outputPath = DEFAULT_OUTPUT_PATH;

    @Arguments(title = "input directories",
            description = "A list of input directories to be processed")
    public List<String> inputPaths = new ArrayList<>();

    @Option(name = {"--version"})
    public boolean version;

    @SuppressWarnings("unused")
    @Option(name = {"-v", "--verbose"})
    public boolean verbose;

    public static void main(String[] args) {
        AllureCli allure;
        try {
            allure = SingleCommand.singleCommand(AllureCli.class).parse(args);
        } catch (ParseException e) {
            System.out.println(e.getMessage());
{'fraction_non_alphanumeric': 0.12129221732745962, 'fraction_numerical': 0.003524229074889868, 'mean_word_length': 3.5232403718459495, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '7320435', 'n_tokens_mistral': 1033, 'n_tokens_neox': 1008, 'n_words': 246}