<commit_before>#!/usr/bin/python                   
# -*- coding: utf-8 -*-

#from tools import #debug
UNIDADES = (
    '',     
    'UN ',  
    'DOS ', 
    'TRES ',
    'CUATRO ',
    'CINCO ', 
    'SEIS ',  
    'SIETE ', 
    'OCHO ',  
    'NUEVE ', 
    'DIEZ ',  
    'ONCE ',  
    'DOCE ',  
    'TRECE ', 
    'CATORCE ',
    'QUINCE ', 
    'DIECISEIS ',
    'DIECISIETE ',
    'DIECIOCHO ', 
    'DIECINUEVE ',
    'VEINTE '     
)                 
DECENAS = (       
    'VENTI',      
    'TREINTA ',   
    'CUARENTA ',  
    'CINCUENTA ', 
    'SESENTA ',   
    'SETENTA ',   
    'OCHENTA ',   
    'NOVENTA ',   
    'CIEN '       
)                 
CENTENAS = (      
    'CIENTO ',    
    'DOSCIENTOS ',
    'TRESCIENTOS ',
    'CUATROCIENTOS ',
    'QUINIENTOS ',   
    'SEISCIENTOS ',  
    'SETECIENTOS ',  
    'OCHOCIENTOS ',  
    'NOVECIENTOS '   
)                    
                     
def number_to_text_es(number_in,currency,join_dec=' y ',separator=',',decimal_point='.'):
                              
    converted = ''                              
    if currency = False:
        currency = ''

    if type(number_in) != 'str':
      number = str(number_in)   
    else:                       
      number = number_in        
     
    number_str=number
    #if we are using the coma as separator we need to remove them from the string
    try:
      number_str = number_str.replace(separator,'')
    except ValueError:
      print 'The separator used for the thousands its not supported'<commit_msg>[FIX] commented old debug<commit_after>#!/usr/bin/python                   
# -*- coding: utf-8 -*-

#from tools import #debug
UNIDADES = (
    '',     
    'UN ',  
    'DOS ', 
    'TRES ',
    'CUATRO ',
    'CINCO ', 
    'SEIS ',  
    'SIETE ', 
    'OCHO ',  
    'NUEVE ', 
    'DIEZ ',  
    'ONCE ',  
    'DOCE ',  
    'TRECE ', 
    'CATORCE ',
    'QUINCE ', 
    'DIECISEIS ',
    'DIECISIETE ',
    'DIECIOCHO ', 
    'DIECINUEVE ',
    'VEINTE '     
)                 
DECENAS = (       
    'VENTI',      
    'TREINTA ',   
    'CUARENTA ',  
    'CINCUENTA ', 
    'SESENTA ',   
    'SETENTA ',   
    'OCHENTA ',   
    'NOVENTA ',   
    'CIEN '       
)                 
CENTENAS = (      
    'CIENTO ',    
    'DOSCIENTOS ',
    'TRESCIENTOS ',
    'CUATROCIENTOS ',
    'QUINIENTOS ',   
    'SEISCIENTOS ',  
    'SETECIENTOS ',  
    'OCHOCIENTOS ',  
    'NOVECIENTOS '   
)                    
                     
def number_to_text_es(number_in,currency,join_dec=' y ',separator=',',decimal_point='.'):
                              
    converted = ''                              
    if currency == False:
        currency = ''

    if type(number_in) != 'str':
      number = str(number_in)   
    else:                       
      number = number_in        
     
    number_str=number
    #if we are using the coma as separator we need to remove them from the string
    try:
      number_str = number_str.replace(separator,'')
    except ValueError:
      print 'The separator used for the thousands its not supported'
{'fraction_non_alphanumeric': 0.1250401800064288, 'fraction_numerical': 0.0006428801028608164, 'mean_word_length': 1.3086053412462908, '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': '7580849', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1080, 'n_words': 196}