<commit_before><?php

/*
 * This file is part of the php-gelf package.
 *
 * (c) <NAME> <http://benjamin-zikarsky.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Gelf\Transport;

use Gelf\MessageInterface as Message;
use Gelf\Encoder\CompressedJsonEncoder as DefaultEncoder;
use Gelf\MessageInterface;
use RuntimeException;

/**
 * UdpTransport allows the transfer of GELF-messages to an compatible
 * GELF-UDP-backend as described in
 * https://github.com/Graylog2/graylog2-docs/wiki/GELF
 *
 * It can also act as a direct publisher
 *
 * @author <NAME> <<EMAIL>>
 */
class UdpTransport extends AbstractTransport
{
    const CHUNK_GELF_ID = "\x1e\x0f";
    const CHUNK_MAX_COUNT = 256; // sequence-size is stored in a CHAR
    const CHUNK_SIZE_LAN = 8154;
    const CHUNK_SIZE_WAN = 1420;<commit_msg>Remove unused import<commit_after><?php

/*
 * This file is part of the php-gelf package.
 *
 * (c) <NAME> <http://benjamin-zikarsky.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Gelf\Transport;

use Gelf\MessageInterface as Message;
use Gelf\Encoder\CompressedJsonEncoder as DefaultEncoder;
use RuntimeException;

/**
 * UdpTransport allows the transfer of GELF-messages to an compatible
 * GELF-UDP-backend as described in
 * https://github.com/Graylog2/graylog2-docs/wiki/GELF
 *
 * It can also act as a direct publisher
 *
 * @author <NAME> <<EMAIL>>
 */
class UdpTransport extends AbstractTransport
{
    const CHUNK_GELF_ID = "\x1e\x0f";
    const CHUNK_MAX_COUNT = 256; // sequence-size is stored in a CHAR
    const CHUNK_SIZE_LAN = 8154;
    const CHUNK_SIZE_WAN = 1420;
{'fraction_non_alphanumeric': 0.09641255605381166, 'fraction_numerical': 0.016816143497757848, 'mean_word_length': 3.930939226519337, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '6701410', 'n_tokens_mistral': 595, 'n_tokens_neox': 579, 'n_words': 183}