<commit_before><?php
/**
 * Usage
 *
 *     Register event as anonymous function
 * \G4\Events\PubSub::on('event_name', function($arg1, $arg2) { echo $arg1; echo $arg2; });
 *
 *     Register event as class method
 * \G4\Events\PubSub::on('event_name', [new \G4\Events\Test(), 'test']);
 *
 *     Unregister all subscribers
 * \G4\Events\PubSub::clear();
 *
 *     Unregister all subscribers based on event name
 * \G4\Events\PubSub::off('event_name');
 *
 *     Unregister one single subscriber
 * \G4\Events\PubSub::off('event_name', [new \G4\Events\Test(), 'test']);
 *
 *     Get all events and subscribers
 * \G4\Events\PubSub::getEvents();
 *
 *     Check if event is registered
 * \G4\Events\PubSub::has('event_name');
 *
 *     Check if subscriber is registered
 * \G4\Events\PubSub::has('event_name', [new \G4\Events\Test(), 'test']);
 *
 *     Trigger event with arguments
 * \G4\Events\PubSub::trigger('event_name', [12345, 987]);
 *
 *     Trigger event without arguments
 * \G4\Events\PubSub::trigger('event_name');
 *
 */
namespace G4\Events;<commit_msg>Removed usage from class<commit_after><?php

namespace G4\Events;
{'fraction_non_alphanumeric': 0.17299205648720212, 'fraction_numerical': 0.02383053839364519, 'mean_word_length': 3.805084745762712, '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': '5061728', 'n_tokens_mistral': 393, 'n_tokens_neox': 376, 'n_words': 83}