<commit_before><?php

namespace water\api;


class Aylien {
    public static function call_api($endpoint, $parameters) {
        $ch = curl_init('https://api.aylien.com/api/v1/' . $endpoint);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array(
            'Accept: application/json',
            'X-AYLIEN-TextAPI-Application-Key: <KEY>',
            'X-AYLIEN-TextAPI-Application-ID: 7dce084d'
        ));
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
        $response = curl_exec($ch);
        if($response === false){
            return curl_error($ch);
        }else {
            return json_decode($response, true);
        }
    }
} <commit_msg>Update API<commit_after><?php

namespace water\api;


class Aylien {
    public static function call_api($endpoint, $parameters) {
        $ch = curl_init('https://api.aylien.com/api/v1/' . $endpoint);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array(
            'Accept: application/json',
            'X-AYLIEN-TextAPI-Application-Key: ad04ec13da667f7236466e8f4c4d2a71',
            'X-AYLIEN-TextAPI-Application-ID: 1c72c12a'
        ));
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
        $response = curl_exec($ch);
        if($response === false){
            return curl_error($ch);
        }else {
            return json_decode($response, true);
        }
    }
} 
{'fraction_non_alphanumeric': 0.13365155131264916, 'fraction_numerical': 0.018496420047732696, 'mean_word_length': 2.5987124463519313, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '2926610', 'n_tokens_mistral': 585, 'n_tokens_neox': 553, 'n_words': 89}