<commit_before><?php

namespace Plank\Mediable;

use Plank\Mediable\SourceAdapters\SourceAdapterFactory;
use Plank\Mediable\UrlGenerators\UrlGeneratorFactory;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Container\Container;

/**
 * Mediable Service Provider.
 *
 * Registers Laravel-Mediable package functionality
 *
 * @author <NAME> <<EMAIL>>
 */
class MediableServiceProvider extends ServiceProvider
{
    /**
     * Boot the service provider.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/mediable.php' => config_path('mediable.php'),
        ], 'config');

        $this->publishes([
            __DIR__.'/../migrations/2016_06_27_000000_create_mediable_tables.php' => database_path('migrations/2016_06_27_000000_create_mediable_tables.php'),
        ], 'migrations');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/mediable.php', 'mediable'
        );

        $this->registerSourceAdapterFactory();
        $this->registerUploader();
        $this->registerMover();
        $this->registerUrlGeneratorFactory();
        $this->registerConsoleCommands();
    }

    /**
     * Bind an instance of the Source Adapter Factory to the container.
     *
     * Attaches the default adapter types
     * @return void
     */<commit_msg>Migration: add dynamic date<commit_after><?php

namespace Plank\Mediable;

use Plank\Mediable\SourceAdapters\SourceAdapterFactory;
use Plank\Mediable\UrlGenerators\UrlGeneratorFactory;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Container\Container;

/**
 * Mediable Service Provider.
 *
 * Registers Laravel-Mediable package functionality
 *
 * @author <NAME> <<EMAIL>>
 */
class MediableServiceProvider extends ServiceProvider
{
    /**
     * Boot the service provider.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/mediable.php' => config_path('mediable.php'),
        ], 'config');

        $this->publishes([
            __DIR__.'/../migrations/2016_06_27_000000_create_mediable_tables.php' => database_path('migrations/'.date("Y_m_d_His").'_create_mediable_tables.php'),
        ], 'migrations');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/mediable.php', 'mediable'
        );

        $this->registerSourceAdapterFactory();
        $this->registerUploader();
        $this->registerMover();
        $this->registerUrlGeneratorFactory();
        $this->registerConsoleCommands();
    }

    /**
     * Bind an instance of the Source Adapter Factory to the container.
     *
     * Attaches the default adapter types
     * @return void
     */
{'fraction_non_alphanumeric': 0.1279382135661518, 'fraction_numerical': 0.014103425117528543, 'mean_word_length': 2.6597051597051595, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, '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': '2340065', 'n_tokens_mistral': 887, 'n_tokens_neox': 859, 'n_words': 157}