<commit_before><?php

namespace DMA\Friends;

use Illuminate\Support\ServiceProvider;
use DMA\Friends\Classes\ActivityCode;
use DMA\Friends\Classes\BadgeProcessor;
use DMA\Friends\Classes\FriendsLog;
use DMA\Friends\Classes\Notifications\ChannelManager;

/**
 * Register service providers for Friends
 *
 * @package DMA\Friends
 * @author <NAME>, <NAME>
 */
class FriendsServiceProvider extends ServiceProvider
{
    /**
     * Register the available services in this plugin
     *
     * @return void
     */
    public function register()
    {
        $this->registerFriendsLog();
        $this->registerNotifications();
    }

    /**
     * Setup the ActivityCode service
     *
     * @return void
     */
    public function registerFriendsLog()
    {
        $this->app['FriendsLog'] = $this->app->share(function($app) {
            return new FriendsLog;
        });

        $this->createAlias('FriendsLog', 'DMA\Friends\Classes\FriendsLog');
    }

    
    public function registerNotifications()
    {
        // Register notification system
        $this->app['postman'] = $this->app->share(function($app)
        {
        	$channelManager = new ChannelManager;
        	$channelManager->registerChannels([
        		'\DMA\Friends\Classes\Notifications\Channels\ChannelKiosk',
        	    '\DMA\Friends\Classes\Notifications\Channels\ChannelFlash',
        	    '\DMA\Friends\Classes\Notifications\Channels\ChannelEmail',
        		'\DMA\Friends\Classes\Notifications\Channels\ChannelSMS',
        	    '\DMA\Friends\Classes\Notifications\Channels\ChannelDummy',
        	    /*    
        		'\DMA\Friends\Classes\Notifications\Channels\ChannelTwitter',
        	    */<commit_msg>Unregistered Notification channel Dummy. This is only for testing<commit_after><?php

namespace DMA\Friends;

use Illuminate\Support\ServiceProvider;
use DMA\Friends\Classes\ActivityCode;
use DMA\Friends\Classes\BadgeProcessor;
use DMA\Friends\Classes\FriendsLog;
use DMA\Friends\Classes\Notifications\ChannelManager;

/**
 * Register service providers for Friends
 *
 * @package DMA\Friends
 * @author <NAME>, <NAME>
 */
class FriendsServiceProvider extends ServiceProvider
{
    /**
     * Register the available services in this plugin
     *
     * @return void
     */
    public function register()
    {
        $this->registerFriendsLog();
        $this->registerNotifications();
    }

    /**
     * Setup the ActivityCode service
     *
     * @return void
     */
    public function registerFriendsLog()
    {
        $this->app['FriendsLog'] = $this->app->share(function($app) {
            return new FriendsLog;
        });

        $this->createAlias('FriendsLog', 'DMA\Friends\Classes\FriendsLog');
    }

    
    public function registerNotifications()
    {
        // Register notification system
        $this->app['postman'] = $this->app->share(function($app)
        {
        	$channelManager = new ChannelManager;
        	$channelManager->registerChannels([
        		'\DMA\Friends\Classes\Notifications\Channels\ChannelKiosk',
        	    '\DMA\Friends\Classes\Notifications\Channels\ChannelFlash',
        	    '\DMA\Friends\Classes\Notifications\Channels\ChannelEmail',
        		'\DMA\Friends\Classes\Notifications\Channels\ChannelSMS',
        	    //'\DMA\Friends\Classes\Notifications\Channels\ChannelDummy',    
        		//'\DMA\Friends\Classes\Notifications\Channels\ChannelTwitter',
{'fraction_non_alphanumeric': 0.12192982456140351, 'fraction_numerical': 0.0, 'mean_word_length': 2.7023809523809526, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, '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': '4707784', 'n_tokens_mistral': 978, 'n_tokens_neox': 971, 'n_words': 158}