<commit_before><?php namespace Orchestra\Memory;

use Closure,
	InvalidArgumentException,
	Illuminate\Support\Facades\Config,
	Orchestra\Support\Manager;

class MemoryManager extends Manager {
	
	/**
	 * Create Fluent Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Fluent
	 */
	protected function createFluentDriver($name)
	{
		return new Drivers\Fluent($this->app, $name);
	}

	/**
	 * Create Eloquent Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Eloquent
	 */
	protected function createEloquentDriver($name)
	{
		return new Drivers\Eloquent($this->app, $name);
	}

	/**
	 * Create Cache Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Cache
	 */
	protected function createCacheDriver($name)
	{
		return new Drivers\Cache($this->app, $name);
	}

	/**
	 * Create Runtime Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Runtime
	 */
	protected function createRuntimeDriver($name)
	{
		return new Drivers\Runtime($this->app, $name);
	}

	/**
	 * Create Default driver.
	 * 
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Widget\Drivers\Placeholder
	 */
	protected function getDefaultDriver()
	{
		return $this->app['config']['orchestra/memory::driver'];
	}

	/**
	 * Loop every instance and execute shutdown method (if available)
	 *
	 * @access  public
	 * @return  void
	 */
	public function shutdown()
	{
		foreach ($this->drivers as $class) $class->shutdown();

		$this->drivers = array();
	}<commit_msg>Fixed fetching default config information<commit_after><?php namespace Orchestra\Memory;

use Closure,
	InvalidArgumentException,
	Illuminate\Support\Facades\Config,
	Orchestra\Support\Manager;

class MemoryManager extends Manager {
	
	/**
	 * Create Fluent Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Fluent
	 */
	protected function createFluentDriver($name)
	{
		return new Drivers\Fluent($this->app, $name);
	}

	/**
	 * Create Eloquent Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Eloquent
	 */
	protected function createEloquentDriver($name)
	{
		return new Drivers\Eloquent($this->app, $name);
	}

	/**
	 * Create Cache Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Cache
	 */
	protected function createCacheDriver($name)
	{
		return new Drivers\Cache($this->app, $name);
	}

	/**
	 * Create Runtime Driver
	 *
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Memory\Drivers\Runtime
	 */
	protected function createRuntimeDriver($name)
	{
		return new Drivers\Runtime($this->app, $name);
	}

	/**
	 * Create Default driver.
	 * 
	 * @access protected
	 * @param  string   $name
	 * @return Orchestra\Widget\Drivers\Placeholder
	 */
	protected function getDefaultDriver()
	{
		return $this->app['config']->get('orchestra/memory::driver');
	}

	/**
	 * Loop every instance and execute shutdown method (if available)
	 *
	 * @access  public
	 * @return  void
	 */
	public function shutdown()
	{
		foreach ($this->drivers as $class) $class->shutdown();

		$this->drivers = array();
	}
{'fraction_non_alphanumeric': 0.13058001822046766, 'fraction_numerical': 0.0, 'mean_word_length': 3.5623268698060944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '6945415', 'n_tokens_mistral': 1127, 'n_tokens_neox': 999, 'n_words': 240}