<commit_before><?php

namespace A1comms\GaeSupportLaravel\Integration\Guzzle;

use GuzzleHttp\Exception\ConnectException;
use Illuminate\Support\Facades\Log;

class Tools
{
    private static function isConnectionError($ex, $timeout = 2)
    {
        if ($ex instanceof ConnectException) {
            $regex = "/Operation timed out after " . (string)$timeout . "[0-9]{3} milliseconds/";
            if ($timeout < 1) {
                $regex = "/Operation timed out after [0-9]{3} milliseconds/";    
            }

            if (preg_match($regex, (string)$ex)) {
                return true;
            }

            return false;
        }

        return false;
    }
}<commit_msg>HTTP ExponentialBackoff: Fix private -> public<commit_after><?php

namespace A1comms\GaeSupportLaravel\Integration\Guzzle;

use GuzzleHttp\Exception\ConnectException;
use Illuminate\Support\Facades\Log;

class Tools
{
    public static function isConnectionError($ex, $timeout = 2)
    {
        if ($ex instanceof ConnectException) {
            $regex = "/Operation timed out after " . (string)$timeout . "[0-9]{3} milliseconds/";
            if ($timeout < 1) {
                $regex = "/Operation timed out after [0-9]{3} milliseconds/";    
            }

            if (preg_match($regex, (string)$ex)) {
                return true;
            }

            return false;
        }

        return false;
    }
}
{'fraction_non_alphanumeric': 0.1181046676096181, 'fraction_numerical': 0.01272984441301273, 'mean_word_length': 2.0561555075593954, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '2766233', 'n_tokens_mistral': 418, 'n_tokens_neox': 394, 'n_words': 96}