<commit_before><?php

class XboxAPI {
    
    function limit($gamertag) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://xboxapi.com/limit');
        curl_setopt($ch, CURLOPT_USERAGENT, 'XboxAPI Bot');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        $output = curl_exec($ch);
        $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        if($status=='200') {
            list($calls,$allowed) = explode('/',$output);
            if($allowed-$calls>0) {
                return true;
            }
        }
        return false;
    }
    
    function profile($gamertag) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://xboxapi.com/profile/' . urlencode($gamertag));
        curl_setopt($ch, CURLOPT_USERAGENT, 'XboxAPI Bot');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        $output = curl_exec($ch);
        $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        return array('code'=>$status,'response'=>$output);
    }
    
}<commit_msg>limit doesn't need a paramater, causing error logs to accumulate...<commit_after><?php

class XboxAPI {

    function limit() {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://xboxapi.com/limit');
        curl_setopt($ch, CURLOPT_USERAGENT, 'XboxAPI Bot');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        $output = curl_exec($ch);
        $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        if($status=='200') {
            list($calls,$allowed) = explode('/',$output);
            if($allowed-$calls>0) {
                return true;
            }
        }
        return false;
    }

    function profile($gamertag) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://xboxapi.com/profile/' . urlencode($gamertag));
        curl_setopt($ch, CURLOPT_USERAGENT, 'XboxAPI Bot');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_SSLVERSION, 3);
        $output = curl_exec($ch);
        $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        return array('code'=>$status,'response'=>$output);
    }

}

{'fraction_non_alphanumeric': 0.14991896272285252, 'fraction_numerical': 0.009724473257698542, 'mean_word_length': 2.6523668639053253, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2089243', 'n_tokens_mistral': 877, 'n_tokens_neox': 817, 'n_words': 137}