<commit_before><?php

/**
 * This file is part of the Drago Framework
 * Copyright (c) 2015, <NAME>
 */
namespace Drago;

use Nette;
use Nette\Utils;
use Nette\Caching;

/**
 * DI container generator.
 * @author <NAME>
 */
class Configurator extends Nette\Configurator
{
	// Name cache for storing configuration files.
	const Caching = 'Drago.CacheConf';

	public function __construct()
	{
		parent::__construct();
		$this->parameters = $this->parameters();
		$this->defaultExtensions += [
			'dirs' => 'Drago\Directory\Dirs\DirsExtension'
		];
	}

	/**
	 * Directory structure.
	 * @return array
	 */
	private function parameters()
	{
		$parms = $this->parameters;
		$trace = debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE);
		$parms['appDir'] = isset($trace[1]['file']) ? dirname($trace[1]['file']) : NULL;
		$parms['wwwDir'] = $parms['wwwDir'] . DIRECTORY_SEPARATOR . 'www';
		return $parms;
	}

	/**
	 * Autoload classes.
	 * @param string|array
	 */
	public function addAutoload($dirs)<commit_msg>Update Configurator.php<commit_after><?php

/**
 * This file is part of the Drago Framework
 * Copyright (c) 2015, <NAME>
 */
namespace Drago;

use Nette;
use Nette\Utils;
use Nette\Caching;

/**
 * DI container generator.
 * @author <NAME>
 */
class Configurator extends Nette\Configurator
{
	// Name cache for storing configuration files.
	const Caching = 'Drago.CacheConf';

	public function __construct()
	{
		parent::__construct();
		$this->parameters = $this->parameters();
		$this->defaultExtensions += [
			'dirs' => 'Drago\Directory\DirsExtension'
		];
	}

	/**
	 * Directory structure.
	 * @return array
	 */
	private function parameters()
	{
		$parms = $this->parameters;
		$trace = debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE);
		$parms['appDir'] = isset($trace[1]['file']) ? dirname($trace[1]['file']) : NULL;
		$parms['wwwDir'] = $parms['wwwDir'] . DIRECTORY_SEPARATOR . 'www';
		return $parms;
	}

	/**
	 * Autoload classes.
	 * @param string|array
	 */
	public function addAutoload($dirs)
{'fraction_non_alphanumeric': 0.16030902945436987, 'fraction_numerical': 0.010622887493964268, 'mean_word_length': 4.154228855721393, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '211056', 'n_tokens_mistral': 763, 'n_tokens_neox': 697, 'n_words': 158}