<commit_before><?php
/**
 * DRAIWIKI
 * Open source wiki software
 *
 * @version     1.0 Alpha 1
 * @author      <NAME>
 * @copyright   DraiWiki, 2017
 * @license     Apache 2.0
 *
 * Class information:
 * This class contains the settings.
 * @since 		1.0 Alpha 1
 * @author 		DraiWiki development team
 */

namespace DraiWiki;

if (!defined('DraiWiki')) {
	header('Location: ../index.php');
	die('You\'re really not supposed to be here.');
}

/**
 * @todo	Turn class into a singleton
 */
class Config {

	private $_settings;

	/**
	 * Creates a new instance of the Config class and adds default settings to the settings array.
	 * @return Config
	 */
	public function __construct() {
		/**
		 * DraiWiki will use the data below to establish a connection to the database.
		 */
		$this->_settings['database'] = [ 
			'DB_SERVER' => '127.0.0.1',
			'DB_USERNAME' => 'pasta',
			'DB_PASSWORD' => '',
			'DB_NAME' => 'draiwiki',
			'DB_PREFIX' => 'drai_',
			'DB_CHARSET' => 'utf8mb4'
		];

		/**
		 * Wiki settings. Note: will probably be moved to the database in the future.
		 */
		$this->_settings['wiki'] = [
			'WIKI_NAME' => 'DraiWiki',
			'WIKI_SLOGAN' => 'Revolutionary wiki software',
			'WIKI_LOCALE' => 'en_US',
			'WIKI_SKIN' => 'default',
			'WIKI_IMAGES' => 'default',
			'WIKI_TEMPLATES' => 'default',
			'WIKI_HOMEPAGE' => 'Home'
		];

		/**
		 * Paths and urls
		 */
		$this->_settings['path'] = [
			'BASE_PATH' => '/var/www/html/DraiWiki/',
			'BASE_URL' => 'http://localhost/DraiWiki/'
		];

		/**<commit_msg>Updated paths<commit_after><?php
/**
 * DRAIWIKI
 * Open source wiki software
 *
 * @version     1.0 Alpha 1
 * @author      <NAME>
 * @copyright   DraiWiki, 2017
 * @license     Apache 2.0
 *
 * Class information:
 * This class contains the settings.
 * @since 		1.0 Alpha 1
 * @author 		DraiWiki development team
 */

namespace DraiWiki;

if (!defined('DraiWiki')) {
	header('Location: ../index.php');
	die('You\'re really not supposed to be here.');
}

/**
 * @todo	Turn class into a singleton
 */
class Config {

	private $_settings;

	/**
	 * Creates a new instance of the Config class and adds default settings to the settings array.
	 * @return Config
	 */
	public function __construct() {
		/**
		 * DraiWiki will use the data below to establish a connection to the database.
		 */
		$this->_settings['database'] = [ 
			'DB_SERVER' => '127.0.0.1',
			'DB_USERNAME' => 'pasta',
			'DB_PASSWORD' => '',
			'DB_NAME' => 'draiwiki',
			'DB_PREFIX' => 'drai_',
			'DB_CHARSET' => 'utf8mb4'
		];

		/**
		 * Wiki settings. Note: will probably be moved to the database in the future.
		 */
		$this->_settings['wiki'] = [
			'WIKI_NAME' => 'DraiWiki',
			'WIKI_SLOGAN' => 'Revolutionary wiki software',
			'WIKI_LOCALE' => 'en_US',
			'WIKI_SKIN' => 'default',
			'WIKI_IMAGES' => 'default',
			'WIKI_TEMPLATES' => 'default',
			'WIKI_HOMEPAGE' => 'Home'
		];

		/**
		 * Paths and urls
		 */
		$this->_settings['path'] = [
			'BASE_PATH' => '/srv/http/DraiWiki/',
			'BASE_URL' => 'http://localhost/DraiWiki/'
		];

		/**
{'fraction_non_alphanumeric': 0.16950819672131148, 'fraction_numerical': 0.013114754098360656, 'mean_word_length': 3.0303830911492735, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 2, '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': '6371398', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1118, 'n_words': 281}