<commit_before><?php

/**
 * Cheryl 4.0
 *
 * 2003 - 2016 <NAME>
 * https://github.com/arzynik/cheryl
 *
 * Cheryl is a web based file manager for the modern web using
 * PHP5 and AngularJS.
 *
 */

namespace Cheryl;


ignore_user_abort(false);
set_time_limit(10);
date_default_timezone_set('UTC');

ini_set('zlib.output_compression','On');
ini_set('zlib.output_compression_level', 9);


if (!defined('CHERYL_SALT')) {
	// password salt. make something random
	define('CHERYL_SALT', 'SOMETHING/NOT/COOL/AND/RANDOM');
}

class Cheryl {
	private static $_cheryl;

	private $defaultConfig = array(
		// the admin username nad password to access all features. if set to blank, all users will have access to all enabled features
		// array of users. this can be overwridden by custom user clases
		'users' => array(
			array(
				'username' => 'admin',
				'password' => '',
				'permissions' => 'all' // if set to all, all permissions are enabled. even new features addedd in the future
			)
		),
		'authentication' => array(
			'type' => 'simple'  // simple: users are stored in the users array. mysql: uses a mysqli interface. pdo: uses pdo interface. see examples
		),
		'useSha1' => true, // if true, passwords will be hashed client side for security.
		'root' => 'files', // the folder you want users to browse
		'includes' => 'Cheryl', // path to look for additional libraries. leave blank if you dont know
		'templateName' => 'cheryl', // name of the template to look for. leave alone if you dont know
		'readonly' => false, // if true, disables all write features, and doesnt require authentication
		'features' => array(
			'snooping' => false, // if true, a user can browse filters behind the root directory, posibly exposing secure files. not reccomended
			'recursiveBrowsing' => true, // if true, allows a simplified view that shows all files recursivly in a directory. with lots of files this can slow it down
		),
		// files to hide from view
		'hiddenFiles' => array(<commit_msg>remove old code<commit_after><?php

/**
 * Cheryl 4.0
 *
 * 2003 - 2016 <NAME>
 * https://github.com/arzynik/cheryl
 *
 * Cheryl is a web based file manager for the modern web using
 * PHP5 and AngularJS.
 *
 */

namespace Cheryl;


ignore_user_abort(false);
set_time_limit(10);
date_default_timezone_set('UTC');

ini_set('zlib.output_compression','On');
ini_set('zlib.output_compression_level', 9);

class Cheryl {
	private static $_cheryl;

	private $defaultConfig = array(
		// the admin username nad password to access all features. if set to blank, all users will have access to all enabled features
		// array of users. this can be overwridden by custom user clases
		'users' => array(
			array(
				'username' => 'admin',
				'password' => '',
				'permissions' => 'all' // if set to all, all permissions are enabled. even new features addedd in the future
			)
		),
		'authentication' => array(
			'type' => 'simple'  // simple: users are stored in the users array. mysql: uses a mysqli interface. pdo: uses pdo interface. see examples
		),
		'useSha1' => true, // if true, passwords will be hashed client side for security.
		'root' => 'files', // the folder you want users to browse
		'includes' => 'Cheryl', // path to look for additional libraries. leave blank if you dont know
		'templateName' => 'cheryl', // name of the template to look for. leave alone if you dont know
		'readonly' => false, // if true, disables all write features, and doesnt require authentication
		'features' => array(
			'snooping' => false, // if true, a user can browse filters behind the root directory, posibly exposing secure files. not reccomended
			'recursiveBrowsing' => true, // if true, allows a simplified view that shows all files recursivly in a directory. with lots of files this can slow it down
		),
		// files to hide from view
		'hiddenFiles' => array(
{'fraction_non_alphanumeric': 0.11217865489483252, 'fraction_numerical': 0.007790184367696702, 'mean_word_length': 3.674757281553398, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 35, 'https://': 2, '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': '4373230', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1146, 'n_words': 474}