<commit_before>#!/usr/bin/env python3

from yandex_translate import YandexTranslate #importing Translator class for translations.

# Your Yandex API credentials here
translator = YandexTranslate('')

def translate_en_pt(message):
    phrase_translated = translator.translate(message, 'pt') 
    return phrase_translated
def translate_en_persian(message):
    phrase_translated = translator.translate(message, 'fa')
    return phrase_translated<commit_msg>I will read the API documentation before commiting<commit_after>#!/usr/bin/env python3

from yandex_translate import YandexTranslate #importing Translator class for translations.

# Your Yandex API credentials here
translator = YandexTranslate('')

def translate_en_pt(message):
    phrase_translated = translator.translate(message, 'pt')
    str = "".join(phrase_translated.get('text'))
    return str
def translate_en_persian(message):
    phrase_translated = translator.translate(message, 'fa')
    str = "".join(phrase_translated.get('text'))
    return str
{'fraction_non_alphanumeric': 0.09251968503937008, 'fraction_numerical': 0.001968503937007874, 'mean_word_length': 5.918367346938775, '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': '4687947', 'n_tokens_mistral': 306, 'n_tokens_neox': 286, 'n_words': 74}