<commit_before><?php 
/* Load Libraries */
include '../cfg/cfg.php';
include 'stdlib.php';
include 'session.php';
include 'autoload.php';

if (!empty($_SERVER["HTTPS"]))
	ini_set('session.cookie_secure',1);

ini_set('session.cookie_httponly',1);
session_start();
session_regenerate_id(true);

/* Common Info */
API::add('Lang','getTable');
API::add('Currencies','get');
API::add('User','verifyLogin');
API::add('Settings','get');
$query = API::send();

/* Assign Settings To CFG */
Settings::assign($query['Settings']['get']['results'][0]);

/* Check Login */
User::verifyLogIn($query);
User::logOut(isset($_REQUEST['log_out']));

/* Set Timezone */
date_default_timezone_set($CFG->default_timezone);
$dtz = new DateTimeZone($CFG->default_timezone);
$dtz1 = new DateTime('now', $dtz);
$CFG->timezone_offset = $dtz->getOffset($dtz1);

/* Detect Language */<commit_msg>Using default session handling.<commit_after><?php 
/* Load Libraries */
include '../cfg/cfg.php';
include 'stdlib.php';
//include 'session.php';
include 'autoload.php';

if (!empty($_SERVER["HTTPS"]))
	ini_set('session.cookie_secure',1);

ini_set('session.cookie_httponly',1);
session_start();
session_regenerate_id(true);

/* Common Info */
API::add('Lang','getTable');
API::add('Currencies','get');
API::add('User','verifyLogin');
API::add('Settings','get');
$query = API::send();

/* Assign Settings To CFG */
Settings::assign($query['Settings']['get']['results'][0]);

/* Check Login */
User::verifyLogIn($query);
User::logOut(isset($_REQUEST['log_out']));

/* Set Timezone */
date_default_timezone_set($CFG->default_timezone);
$dtz = new DateTimeZone($CFG->default_timezone);
$dtz1 = new DateTime('now', $dtz);
$CFG->timezone_offset = $dtz->getOffset($dtz1);

/* Detect Language */
{'fraction_non_alphanumeric': 0.2274800456100342, 'fraction_numerical': 0.005701254275940707, 'mean_word_length': 7.645320197044335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7212853', 'n_tokens_mistral': 599, 'n_tokens_neox': 594, 'n_words': 99}