<commit_before><?php

namespace Fazland\Notifire;

use Fazland\Notifire\EventSubscriber\NotNotifiedEventSubscriber;
use Fazland\Notifire\EventSubscriber\Email\SwiftMailerHandler;
use Fazland\Notifire\Exception\NotificationAlreadyRegisteredException;
use Fazland\Notifire\Exception\UnregisteredNotificationException;
use Fazland\Notifire\Exception\UnsupportedClassException;
use Fazland\Notifire\Notification\Email;
use Fazland\Notifire\Notification\NotificationInterface;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
 * Notifire class is a factory of {@see NotificationInterface}.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @method static NotificationInterface email(array $options = [])
 * @method static NotificationInterface sms(array $options = [])
 */
class Notifire
{
    /**
     * @var EventDispatcherInterface
     */
    protected static $dispatcher;

    /**
     * @var string[]
     */
    public static $notifications;

    /**
     * @param EventDispatcherInterface $dispatcher
     */
    public static function setEventDispatcher(EventDispatcherInterface $dispatcher)
    {
        static::$dispatcher = $dispatcher;
    }

    /**
     * Removes all registered notifications and current {@see EventDispatcherInterface}.
     */
    public static function reset()
    {
        static::$notifications = [];
        static::$dispatcher = null;
    }

    /**<commit_msg>fixed phpdoc for Notifire::email and sms methods<commit_after><?php

namespace Fazland\Notifire;

use Fazland\Notifire\EventSubscriber\NotNotifiedEventSubscriber;
use Fazland\Notifire\EventSubscriber\Email\SwiftMailerHandler;
use Fazland\Notifire\Exception\NotificationAlreadyRegisteredException;
use Fazland\Notifire\Exception\UnregisteredNotificationException;
use Fazland\Notifire\Exception\UnsupportedClassException;
use Fazland\Notifire\Notification\Email;
use Fazland\Notifire\Notification\NotificationInterface;
use Fazland\Notifire\Notification\Sms;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
 * Notifire class is a factory of {@see NotificationInterface}.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @method static Email email(array $options = [])
 * @method static Sms sms(array $options = [])
 */
class Notifire
{
    /**
     * @var EventDispatcherInterface
     */
    protected static $dispatcher;

    /**
     * @var string[]
     */
    public static $notifications;

    /**
     * @param EventDispatcherInterface $dispatcher
     */
    public static function setEventDispatcher(EventDispatcherInterface $dispatcher)
    {
        static::$dispatcher = $dispatcher;
    }

    /**
     * Removes all registered notifications and current {@see EventDispatcherInterface}.
     */
    public static function reset()
    {
        static::$notifications = [];
        static::$dispatcher = null;
    }

    /**
{'fraction_non_alphanumeric': 0.10617120106171202, 'fraction_numerical': 0.0, 'mean_word_length': 4.110169491525424, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '4178532', 'n_tokens_mistral': 872, 'n_tokens_neox': 842, 'n_words': 172}