<commit_before><?php
namespace Jasekz\Laradrop;

use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Jasekz\Laradrop\Services\File as FileService;
use Config;
use File;
use Storage;

class LaradropServiceProvider extends ServiceProvider {

    /**
     * The event handler mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'Jasekz\Laradrop\Events\FileWasDeleted' => [
            'Jasekz\Laradrop\Handlers\Events\DeleteFile',
        ],
    ];

    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot(DispatcherContract $events)
    {
        // different constructor signature for 5.3+
        if(\App::version() >= '5.3.0') {            
            parent::boot();
        }        
        else {            
            parent::boot($events);
        }
        
        if (! $this->app->routesAreCached()) {
            require __DIR__ . '/Http/routes.php';
        }
        
        $this->publishes([
            __DIR__ . '/config/config.php' => config_path('laradrop.php')
        ]);
        
        $this->publishes([
            __DIR__ . '/database/migrations/' => database_path('migrations')
        ], 'migrations');
        
        $this->publishes([
            __DIR__ . '/resources/assets' => public_path('vendor/jasekz/laradrop')
        ], 'public');
        
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'laradrop');
        
        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'laradrop');
    }<commit_msg>Fixed service provider for Laravel 5.3 support<commit_after><?php
namespace Jasekz\Laradrop;

use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Jasekz\Laradrop\Services\File as FileService;
use Config;
use File;
use Storage;

class LaradropServiceProvider extends ServiceProvider {

    /**
     * The event handler mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'Jasekz\Laradrop\Events\FileWasDeleted' => [
            'Jasekz\Laradrop\Handlers\Events\DeleteFile',
        ],
    ];

    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot(DispatcherContract $events = null)
    {
        // different constructor signature for 5.3+
        if(\App::version() >= '5.3.0') {            
            parent::boot();
        }        
        else {            
            parent::boot($events);
        }
        
        if (! $this->app->routesAreCached()) {
            require __DIR__ . '/Http/routes.php';
        }
        
        $this->publishes([
            __DIR__ . '/config/config.php' => config_path('laradrop.php')
        ]);
        
        $this->publishes([
            __DIR__ . '/database/migrations/' => database_path('migrations')
        ], 'migrations');
        
        $this->publishes([
            __DIR__ . '/resources/assets' => public_path('vendor/jasekz/laradrop')
        ], 'public');
        
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'laradrop');
        
        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'laradrop');
    }
{'fraction_non_alphanumeric': 0.1298932384341637, 'fraction_numerical': 0.0035587188612099642, 'mean_word_length': 1.9796819787985867, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4661917', 'n_tokens_mistral': 985, 'n_tokens_neox': 964, 'n_words': 173}