<commit_before>/**
 * This file is part of the Harmony package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
package com.tactfactory.harmony.utils;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.List;

import com.google.common.base.Strings;

import print.color.Ansi.Attribute;
import print.color.Ansi.BColor;
import print.color.Ansi.FColor;
import print.color.ColoredPrinter;

/**
 * Utility class for console.
 */
public abstract class ConsoleUtils {

	/** Debug state. */
	private static boolean isDebug;

	/** Quiet state. */
	private static boolean isQuiet;

	/** ANSI state (used for colors in console or not). */
	private static boolean isAnsi = true;

	/** Console state. */
	private static boolean isConsole;

	/** Newline character. */
	private static final char NEWLINE = '\n';

	/** Tab character. */
	private static final char TAB = '\t';

	/** Sleep Time for bridge threads. */
	private static final int SLEEP_TIME = 200;

	/** Printer for colors. */
	private static ColoredPrinter cp =
			new ColoredPrinter.Builder(0, false).build();

	// Getter/Setter

	/** Is application in debug mode ?
	 * @return true if application is in debug mode
	 */
	public static boolean isDebug() {
		return isDebug;
	}

	/**
	 * Set application in debug mode.
	 * @param debug Debug mode
	 */
	public static void setDebug(final boolean debug) {
		ConsoleUtils.isDebug = debug;
	}

	/** Is application in quiet mode ?
	 * @return true if application is in quiet mode
	 */
	public static boolean isQuiet() {
		return isQuiet;
	}

	/**
	 * Set application in quiet mode.<commit_msg>Fix #1220<commit_after>/**
 * This file is part of the Harmony package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
package com.tactfactory.harmony.utils;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.util.List;

import com.google.common.base.Strings;

import print.color.Ansi.Attribute;
import print.color.Ansi.BColor;
import print.color.Ansi.FColor;
import print.color.ColoredPrinter;
import print.color.ColoredPrinterWIN;

/**
 * Utility class for console.
 */
public abstract class ConsoleUtils {

	/** Debug state. */
	private static boolean isDebug;

	/** Quiet state. */
	private static boolean isQuiet;

	/** ANSI state (used for colors in console or not). */
	private static boolean isAnsi = true;

	/** Console state. */
	private static boolean isConsole;

	/** Newline character. */
	private static final char NEWLINE = '\n';

	/** Tab character. */
	private static final char TAB = '\t';

	/** Sleep Time for bridge threads. */
	private static final int SLEEP_TIME = 200;

	/** Printer for colors. */
	private static ColoredPrinter cp =
			new ColoredPrinter(new ColoredPrinterWIN.Builder(0, false).build());

	// Getter/Setter

	/** Is application in debug mode ?
	 * @return true if application is in debug mode
	 */
	public static boolean isDebug() {
		return isDebug;
	}

	/**
	 * Set application in debug mode.
	 * @param debug Debug mode
	 */
	public static void setDebug(final boolean debug) {
		ConsoleUtils.isDebug = debug;
	}

	/** Is application in quiet mode ?
	 * @return true if application is in quiet mode
	 */
	public static boolean isQuiet() {
		return isQuiet;
	}

	/**
	 * Set application in quiet mode.
{'fraction_non_alphanumeric': 0.1096319498825372, 'fraction_numerical': 0.0031323414252153485, 'mean_word_length': 3.633615477629988, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2489928', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1115, 'n_words': 397}