<commit_before><?php
namespace richweber\alpha\sms;

class AlphaSms
{
    public $login = 'login';
    public $password = 'password';

    public function test()
    {
        echo '<br>';
        echo $this->login;
        echo '<br>';
        echo $this->password;
        echo '<br>';
    }
}<commit_msg>test request<commit_after><?php
namespace richweber\alpha\sms;

class AlphaSms
{
    public $login = 'login';
    public $password = 'password';
    public $key = '';

    private $service = 'https://alphasms.com.ua/api/xml.php';

    public function test()
    {
        echo '<br>';
        echo $this->login;
        echo '<br>';
        echo $this->password;
        echo '<br>';
    }

    public function balance()
    {
        if (!$this->key) {
            # code...
        }

        $data = [
            'login' => $this->login,
            'password' => $<PASSWORD>,
            'balance' => '',
        ];

        return $this->request($data);
    }

    private function request($data)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $this->service);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 20);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($ch, CURLOPT_POST, 1);
        $result = curl_exec($ch);
        curl_close($ch);

        return $result;
    }
}
{'fraction_non_alphanumeric': 0.15812274368231047, 'fraction_numerical': 0.002888086642599278, 'mean_word_length': 1.967880085653105, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 21, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '1912460', 'n_tokens_mistral': 456, 'n_tokens_neox': 435, 'n_words': 93}