<commit_before>
import os 
import sys 
from fractions import Fraction 


# ======== 
# global variables 
# ========
FPT_CFG_FIRST   = "__first.cfg" 
FPT_CFG_VERIFY  = "__verify.cfg" 
FPT_CFG_VERIFY_DETAIL_GELPIA = "__verify.detail.gelpia.cfg" 
FPT_CFG_VERIFY_DETAIL_BB     = "__verify.detail.bb.cfg"

N_MAX_CASTINGS  = None

FPTUNER_VERBOSE = False
FPTUNER_DEBUG   = False 

FIX_CONST_TYPE  = False

USE_COLOR_TEXT  = True 

NO_M2_CHECK     = False 



# ========
# The following color printing code is provided by <NAME>.
# Thanks to his support!
# ========
def color_text(color_code, text):
    assert(type(color_code) is str and
           type(text) is str)
    
    if (USE_COLOR_TEXT): 
        return "{}{}{}".format(color_code, text, "\x1b[0m")
    else:<commit_msg>Decide if output can support color<commit_after>
import os 
import sys 
from fractions import Fraction 


# ======== 
# global variables 
# ========
FPT_CFG_FIRST   = "__first.cfg" 
FPT_CFG_VERIFY  = "__verify.cfg" 
FPT_CFG_VERIFY_DETAIL_GELPIA = "__verify.detail.gelpia.cfg" 
FPT_CFG_VERIFY_DETAIL_BB     = "__verify.detail.bb.cfg"

N_MAX_CASTINGS  = None

FPTUNER_VERBOSE = False
FPTUNER_DEBUG   = False 

FIX_CONST_TYPE  = False

if sys.stdout.isatty():
    USE_COLOR_TEXT  = True
else:
    USE_COLOR_TEXT  = False

NO_M2_CHECK     = False 



# ========
# The following color printing code is provided by <NAME>.
# Thanks to his support!
# ========
def color_text(color_code, text):
    assert(type(color_code) is str and
           type(text) is str)
    
    if (USE_COLOR_TEXT): 
        return "{}{}{}".format(color_code, text, "\x1b[0m")
    else:
{'fraction_non_alphanumeric': 0.13067484662576687, 'fraction_numerical': 0.0036809815950920245, 'mean_word_length': 3.6073446327683616, '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': '1599885', 'n_tokens_mistral': 638, 'n_tokens_neox': 616, 'n_words': 131}