<commit_before><?php
declare(strict_types=1);

/**
 * Check for server availability
 *
 * @param string $domain
 * @param int $port
 * @return int|null Ping to the server in ms
 */
function check(string $domain, int $port): ?int
{
    $startTime = microtime(true);
    $file = @fsockopen($domain, $port, $errno, $errstr, 10);
    $stopTime = microtime(true);
    $status = null;

    if (false === $file) {
        return null; // Website is offline
    }

    fclose($file);<commit_msg>Cleared from debug data<commit_after><?php
declare(strict_types=1);

/**
 * Check for server availability
 *
 * @param string $domain
 * @param int $port
 * @return int|null Ping to the server in ms
 */
function check(string $domain, int $port): ?int
{
    $startTime = microtime(true);
    $file = @fsockopen($domain, $port, $errno, $errstr, 1);
    $stopTime = microtime(true);
    $status = null;

    if (false === $file) {
        return null; // Website is offline
    }

    fclose($file);
{'fraction_non_alphanumeric': 0.1525940996948118, 'fraction_numerical': 0.00508646998982706, 'mean_word_length': 3.353982300884956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2677385', 'n_tokens_mistral': 331, 'n_tokens_neox': 320, 'n_words': 96}