<commit_before>/*
 * Copyright 2014-2015 The DevMine Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style
 * license that can be found in the LICENSE file.
 */
package ch.devmine.javaparser;

import ch.devmine.javaparser.structures.Language;
import ch.devmine.javaparser.structures.Package;
import ch.devmine.javaparser.structures.Project;
import ch.devmine.javaparser.structures.SourceFile;
import ch.devmine.javaparser.utils.FileTypeFinder;
import ch.devmine.javaparser.utils.FileWalkerUtils;
import ch.devmine.javaparser.utils.GsonFactory;
import ch.devmine.javaparser.utils.Log;
import com.github.javaparser.ParseException;
import com.google.gson.Gson;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;

/**
 * Main class of the parser
 *
 * @author lweingart
 */
public class Main {

    /**
     * class tag
     */
    public static final String TAG = "Main class::";

    /**
     * language
     */
    private static final String JAVA = "java";

    /**
     * paradigms
     */
    private static final String OOP = "object-oriented";
    private static final String STRUCTURED = "structured";
    private static final String IMPERATIVE = "imperative";
    private static final String GENERIC = "generic";
    private static final String REFLECTIVE = "reflective";
    private static final String CONCURRENT = "concurrent";

    /**
     * Main function
     * @param args
     *      the path of the repository to parse
     */
    public static void main(String[] args) {

        // parse one repository
        if (args.length != 1) {
            System.out.println("usage : javaparser <path>\n" +
                               "path : the path to the folder or the tar archive to parse");
            return;<commit_msg>java parser : main class, fix output of help message<commit_after>/*
 * Copyright 2014-2015 The DevMine Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style
 * license that can be found in the LICENSE file.
 */
package ch.devmine.javaparser;

import ch.devmine.javaparser.structures.Language;
import ch.devmine.javaparser.structures.Package;
import ch.devmine.javaparser.structures.Project;
import ch.devmine.javaparser.structures.SourceFile;
import ch.devmine.javaparser.utils.FileTypeFinder;
import ch.devmine.javaparser.utils.FileWalkerUtils;
import ch.devmine.javaparser.utils.GsonFactory;
import ch.devmine.javaparser.utils.Log;
import com.github.javaparser.ParseException;
import com.google.gson.Gson;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;

/**
 * Main class of the parser
 *
 * @author lweingart
 */
public class Main {

    /**
     * class tag
     */
    public static final String TAG = "Main class::";

    /**
     * language
     */
    private static final String JAVA = "java";

    /**
     * paradigms
     */
    private static final String OOP = "object-oriented";
    private static final String STRUCTURED = "structured";
    private static final String IMPERATIVE = "imperative";
    private static final String GENERIC = "generic";
    private static final String REFLECTIVE = "reflective";
    private static final String CONCURRENT = "concurrent";

    /**
     * Main function
     * @param args
     *      the path of the repository to parse
     */
    public static void main(String[] args) {

        // parse one repository
        if (args.length != 1) {
            System.err.println("usage : javaparser <path>\n" +
                               "path : the path to the folder or the tar archive to parse");
            return;
{'fraction_non_alphanumeric': 0.0992240771220315, 'fraction_numerical': 0.00423230660710087, 'mean_word_length': 3.211881188118812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2553373', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1217, 'n_words': 353}