<commit_before>package com.bennavetta.vetinari.cli;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.google.common.base.Strings;

/**
 * Main class for Vetinari.
 */
public class VetinariMain
{
	/*
	Parameters
	 */

	@Parameter(names = {"-v", "--version"}, description = "Display version information")
	private boolean displayVersion = false;

	@Parameter(names = {"-h", "--help"}, help = true)
	private boolean help;

	@Parameter(names = "--verbose", description = "Enable verbose log output")
	private boolean verbose = false;

	@Parameter(names = "--debug", description = "Enable debug log output")
	private boolean debug = false;

	/*
	Commands
	 */

	VersionCommand versionCommand = new VersionCommand();
	BuildCommand buildCommand = new BuildCommand();

	public void run(String[] args)
	{
		JCommander jc = new JCommander(this);
		jc.setProgramName("vetinari");
		jc.addCommand("version", versionCommand);
		jc.addCommand("build", buildCommand);

		jc.parse(args);

		if(verbose)
		{
			System.setProperty("vetinari.verbosity", "verbose");
		}
		else if(debug)
		{
			System.setProperty("vetinari.verbosity", "debug");
		}
		else
		{
			System.setProperty("vetinari.verbosity", "normal");
		}

		if(help)
		{
			jc.usage();
		}

		if("version".equals(jc.getParsedCommand()) || displayVersion)
		{
			versionCommand.run();
		}
		else if(Strings.isNullOrEmpty(jc.getParsedCommand()) || "build".equals(jc.getParsedCommand()))
		{
			buildCommand.run();
		}
	}

	public static void main(String[] args)
	{
		new VetinariMain().run(args);
	}


}
<commit_msg>don't run commands if displaying help<commit_after>package com.bennavetta.vetinari.cli;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.google.common.base.Strings;

/**
 * Main class for Vetinari.
 */
public class VetinariMain
{
	/*
	Parameters
	 */

	@Parameter(names = {"-v", "--version"}, description = "Display version information")
	private boolean displayVersion = false;

	@Parameter(names = {"-h", "--help"}, help = true)
	private boolean help;

	@Parameter(names = "--verbose", description = "Enable verbose log output")
	private boolean verbose = false;

	@Parameter(names = "--debug", description = "Enable debug log output")
	private boolean debug = false;

	/*
	Commands
	 */

	VersionCommand versionCommand = new VersionCommand();
	BuildCommand buildCommand = new BuildCommand();

	public void run(String[] args)
	{
		JCommander jc = new JCommander(this);
		jc.setProgramName("vetinari");
		jc.addCommand("version", versionCommand);
		jc.addCommand("build", buildCommand);

		jc.parse(args);

		if(verbose)
		{
			System.setProperty("vetinari.verbosity", "verbose");
		}
		else if(debug)
		{
			System.setProperty("vetinari.verbosity", "debug");
		}
		else
		{
			System.setProperty("vetinari.verbosity", "normal");
		}

		if(help)
		{
			jc.usage();
		}
		else
		{
			if("version".equals(jc.getParsedCommand()) || displayVersion)
			{
				versionCommand.run();
			}
			else if(Strings.isNullOrEmpty(jc.getParsedCommand()) || "build".equals(jc.getParsedCommand()))
			{
				buildCommand.run();
			}
		}
	}

	public static void main(String[] args)
	{
		new VetinariMain().run(args);
	}


}

{'fraction_non_alphanumeric': 0.15249537892791126, 'fraction_numerical': 0.0, 'mean_word_length': 4.137658227848101, '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': '1220896', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1053, 'n_words': 218}