<commit_before><?php

namespace Igorw\SocketServer;

use Igorw\SocketServer\EventLoop\StreamSelectLoop;
use Igorw\SocketServer\EventLoop\LibEventLoop;

class Factory
{
    public function create()
    {
        if (function_exists('event_base_new')) {
            return new LibEventLoop();
        }

        return new StreamSelectLoop();
    }
}
<commit_msg>Factory corrections<commit_after><?php

namespace Igorw\SocketServer\EventLoop;

use Igorw\SocketServer\EventLoop\StreamSelectLoop;
use Igorw\SocketServer\EventLoop\LibEventLoop;

class Factory
{
    public static function create()
    {
        if (function_exists('event_base_new')) {
            return new LibEventLoop();
        }

        return new StreamSelectLoop();
    }
}

{'fraction_non_alphanumeric': 0.0953020134228188, 'fraction_numerical': 0.0, 'mean_word_length': 3.2873563218390807, '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': '1450248', 'n_tokens_mistral': 222, 'n_tokens_neox': 221, 'n_words': 42}