<commit_before><?php declare(strict_types=1);
/**
 * @author hollodotme
 */

namespace hollodotme\PHPMQ;

require __DIR__ . '/../vendor/autoload.php';

$socket = fsockopen( 'unix:///tmp/phpmq.sock', -1 );

sleep( 1 );

fwrite( $socket, 'Woot' );

sleep( 1 );

fwrite( $socket, 'Woot' );

sleep( 1 );

fclose( $socket );
<commit_msg>Updates test script to socket functions<commit_after><?php declare(strict_types=1);
/**
 * @author hollodotme
 */

namespace hollodotme\PHPMQ;

require __DIR__ . '/../vendor/autoload.php';

$socket = socket_create( AF_UNIX, SOCK_STREAM, 0 );
socket_connect( $socket, '/tmp/phpmq.sock' );
socket_set_nonblock( $socket );

sleep( 1 );

socket_write( $socket, 'Woot' );

sleep( 1 );

socket_write( $socket, 'Woot' );

sleep( 1 );

socket_shutdown( $socket );
socket_close( $socket );

{'fraction_non_alphanumeric': 0.18450184501845018, 'fraction_numerical': 0.012300123001230012, 'mean_word_length': 4.575342465753424, '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': '7410453', 'n_tokens_mistral': 321, 'n_tokens_neox': 317, 'n_words': 67}