<commit_before><commit_msg>Create function.php<commit_after><?php
function convert_currency(array $from, array $to, $amount){
    require(__DIR__."/../CurrencyConverter.php");
    $CurrencyConverter = new CurrencyConverter($from, $to);
    $CurrencyConverter->setCachable(TRUE);
    $CurrencyConverter->setCacheDirectory(__DIR__."/cache/");
    $CurrencyConverter->setCacheTimeOut(10000);
    return $CurrencyConverter->convert($amount);
}

{'fraction_non_alphanumeric': 0.15227272727272728, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 6.47457627118644, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, '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': '6775509', 'n_tokens_mistral': 128, 'n_tokens_neox': 130, 'n_words': 18}