<commit_before><?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return CMap::mergeArray(
	require(dirname(__FILE__).'/database.php'),
	require(dirname(__FILE__).'/facebook.php'),
	require(dirname(__FILE__).'/ldap.php'),
	require(dirname(__FILE__).'/isites.php'),
	array(
		'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
		'name'=>'Quizmo',
		'defaultController' => 'site',


		// preloading 'log' component
		'preload'=>array('log'),

		// autoloading model and component classes
		'import'=>array(
			'application.models.*',
			'application.components.*',
		),

		// need to change this for isites
		'layout'=>"isites",

		'modules'=>array(
			// uncomment the following to enable the Gii tool
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>'<PASSWORD>',
			 	// If removed, Gii defaults to localhost only. Edit carefully to taste.
				'ipFilters'=>array('*'),
			),
		),

		// application components
		'components'=>array(
			'user'=>array(
				'class'=>'WebUser',
				// enable cookie-based authentication
				'allowAutoLogin'=>true,
			),

			// uncomment the following to enable URLs in path-format
			'urlManager'=>array(
				'urlFormat'=>'path',
				'rules'=>array(
					'<controller:\w+>/<id:\d+>'=>'<controller>/view',
					'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>/<id:\d+>/<id2:\d+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>/<cact:\w+>'=>'<controller>/<cact>',
				),
			),


			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
			'errorHandler'=>array(
				// use 'site/error' action to display errors
	            'errorAction'=>'site/error',
	        ),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'trace, info, error, warning',
					),
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'trace',
						'categories'=>'system.db.*',
						'logFile'=>'sql.log',
					),
					// uncomment the following to show log messages on web pages
					/*
					array(
						'class'=>'CWebLogRoute',
					),
					*/
				),
			),


			'viewRenderer'=>array(
		  		'class'=>'ext.smarty-renderer.ESmartyViewRenderer',
		    	'fileExtension' => '.tpl',
		    	'pluginsDir' => 'application.smartyPlugins',
		    	//'configDir' => 'application.smartyConfig',
		    	//'prefilters' => array(array('MyClass','filterMethod')),
		    	//'postfilters' => array(),
		    	//'config'=>array(
		    	//    'force_compile' => YII_DEBUG,
		    	//   ... any Smarty object parameter
		    	//)
			),

			'session' => array (
	    		'autoStart' => true,
				'sessionName' => 'QUIZMO',
	    		//'cookieMode' => 'only',
	    		//'savePath' => '/web/quizmo/var/tmp/',
			),

		),



		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
			// this is used in contact page
			'adminEmail'=>'<EMAIL>',
			//'authMethod'=>'facebook',
			'authMethod'=>'isites',
		),
<commit_msg>changed session settings a little: #53<commit_after><?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return CMap::mergeArray(
	require(dirname(__FILE__).'/database.php'),
	//require(dirname(__FILE__).'/facebook.php'),
	require(dirname(__FILE__).'/ldap.php'),
	require(dirname(__FILE__).'/isites.php'),
	array(
		'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
		'name'=>'Quizmo',
		'defaultController' => 'site',


		// preloading 'log' component
		'preload'=>array('log'),

		// autoloading model and component classes
		'import'=>array(
			'application.models.*',
			'application.components.*',
		),

		// need to change this for isites
		'layout'=>"isites",

		'modules'=>array(
			// uncomment the following to enable the Gii tool
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>'<PASSWORD>',
			 	// If removed, Gii defaults to localhost only. Edit carefully to taste.
				'ipFilters'=>array('*'),
			),
		),

		// application components
		'components'=>array(
			'user'=>array(
				'class'=>'WebUser',
				// enable cookie-based authentication
				'allowAutoLogin'=>true,
			),

			// uncomment the following to enable URLs in path-format
			'urlManager'=>array(
				'urlFormat'=>'path',
				'rules'=>array(
					'<controller:\w+>/<id:\d+>'=>'<controller>/view',
					'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>/<id:\d+>/<id2:\d+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
					'<controller:\w+>/<action:\w+>/<cact:\w+>'=>'<controller>/<cact>',
				),
			),


			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
			'errorHandler'=>array(
				// use 'site/error' action to display errors
	            'errorAction'=>'site/error',
	        ),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'trace, info, error, warning',
					),
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'trace',
						'categories'=>'system.db.*',
						'logFile'=>'sql.log',
					),
					// uncomment the following to show log messages on web pages
					/*
					array(
						'class'=>'CWebLogRoute',
					),
					*/
				),
			),


			'viewRenderer'=>array(
		  		'class'=>'ext.smarty-renderer.ESmartyViewRenderer',
		    	'fileExtension' => '.tpl',
		    	'pluginsDir' => 'application.smartyPlugins',
		    	//'configDir' => 'application.smartyConfig',
		    	//'prefilters' => array(array('MyClass','filterMethod')),
		    	//'postfilters' => array(),
		    	//'config'=>array(
		    	//    'force_compile' => YII_DEBUG,
		    	//   ... any Smarty object parameter
		    	//)
			),

			
			'session' => array (
	    		//'autoStart' => true,
				'sessionName' => 'QUIZMO_SESSION',
	    		//'cookieMode' => 'allow',
	    		'savePath' => '/web/quizmo/var/php/session',
			),
			/*
			'session' => array (
			    'class' => 'system.web.CDbHttpSession',
			    'connectionID' => 'db',
			    'sessionTableName' => 'actual_table_name',
			),
			*/

		),



		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
			// this is used in contact page
			'adminEmail'=>'<EMAIL>',
			//'authMethod'=>'facebook',
			'authMethod'=>'isites',
		),

{'fraction_non_alphanumeric': 0.20939478721837726, 'fraction_numerical': 0.0005890148726255338, 'mean_word_length': 3.0695026962252845, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 169, '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': '2864994', 'n_tokens_mistral': 2718, 'n_tokens_neox': 2254, 'n_words': 387}