<commit_before><?php
require_once(dirname(__FILE__).'/global.php');
UserConfig::setDB(new mysqli( $host, $user, $pass, $db));

if ($facebookAPIKey) {
	require_once(dirname(__FILE__).'/users/modules/facebook/index.php');
	UserConfig::$modules[] = new FacebookAuthenticationModule($facebookAPIKey, $facebookSecret);
}

if ($googleFriendConnectSiteID) {
	require_once(dirname(__FILE__).'/users/modules/google/index.php');
	UserConfig::$modules[] = new GoogleAuthenticationModule($googleFriendConnectSiteID);
}

require_once(dirname(__FILE__).'/users/modules/usernamepass/index.php');
UserConfig::$modules[] = new UsernamePasswordAuthenticationModule();

// TODO - implement accounts and then switch it to true.
UserConfig::$useAccounts = false;

UserConfig::$SESSION_SECRET = $sessionSecret;

UserConfig::$header = dirname(__FILE__).'/header.php';
UserConfig::$footer = dirname(__FILE__).'/footer.php';

UserConfig::$rememberMeDefault = true;

define('SHOWSLOW_ACTIVITY_ADD_URL', 1);
// array of activities in the system velue is an array of label and value of activity
UserConfig::$activities[SHOWSLOW_ACTIVITY_ADD_URL] = array('Added URL for monitoring', 5);<commit_msg>Using UserBase's own admin authentication.<commit_after><?php
require_once(dirname(__FILE__).'/global.php');
UserConfig::setDB(new mysqli( $host, $user, $pass, $db));

if ($facebookAPIKey) {
	require_once(dirname(__FILE__).'/users/modules/facebook/index.php');
	UserConfig::$modules[] = new FacebookAuthenticationModule($facebookAPIKey, $facebookSecret);
}

if ($googleFriendConnectSiteID) {
	require_once(dirname(__FILE__).'/users/modules/google/index.php');
	UserConfig::$modules[] = new GoogleAuthenticationModule($googleFriendConnectSiteID);
}

require_once(dirname(__FILE__).'/users/modules/usernamepass/index.php');
UserConfig::$modules[] = new UsernamePasswordAuthenticationModule();

// TODO - implement accounts and then switch it to true.
UserConfig::$useAccounts = false;

UserConfig::$SESSION_SECRET = $sessionSecret;

UserConfig::$admins = $instanceAdmins;

UserConfig::$header = dirname(__FILE__).'/header.php';
UserConfig::$footer = dirname(__FILE__).'/footer.php';

UserConfig::$rememberMeDefault = true;

define('SHOWSLOW_ACTIVITY_ADD_URL', 1);
// array of activities in the system velue is an array of label and value of activity
UserConfig::$activities[SHOWSLOW_ACTIVITY_ADD_URL] = array('Added URL for monitoring', 5);
{'fraction_non_alphanumeric': 0.1470710427918571, 'fraction_numerical': 0.0016618196925633569, 'mean_word_length': 8.052631578947368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4846088', 'n_tokens_mistral': 733, 'n_tokens_neox': 731, 'n_words': 141}