<commit_before><?php namespace Devfactory\Variables;

use Illuminate\Support\ServiceProvider;

use Devfactory\Variables\Models\Variable;

class VariablesServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot() {
    $this->publishConfig();
    $this->publishMigration();
	}

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

    $this->app->bindShared('variables', function ($app) {
      return new Variables(new Variable());
    });
	}

	/**
	 * Get the services provided by the provider.<commit_msg>Fixed call to mergeConfigFrom for multiple config files<commit_after><?php namespace Devfactory\Variables;

use Illuminate\Support\ServiceProvider;

use Devfactory\Variables\Models\Variable;

class VariablesServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot() {
    $this->publishConfig();
    $this->publishMigration();
	}

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

    $this->app->bindShared('variables', function ($app) {
      return new Variables(new Variable());
    });
	}

	/**
	 * Get the services provided by the provider.
{'fraction_non_alphanumeric': 0.13369272237196766, 'fraction_numerical': 0.0, 'mean_word_length': 3.2471395881006866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4018823', 'n_tokens_mistral': 553, 'n_tokens_neox': 514, 'n_words': 137}