<commit_before><?php

namespace Lychee\Modules;

final class Session extends Module {

	public function init($public) {

		# Call plugins
		Plugins::get()->activate(__METHOD__, 0, func_get_args());

		# Return settings
		$return['config'] = Settings::get();

		# Path to Lychee for the server-import dialog
		$return['config']['location'] = LYCHEE;

		# Remove username and password from response
		unset($return['config']['username']);
		unset($return['config']['password']);

		# Remove identifier from response
		unset($return['config']['identifier']);

		# Check if login credentials exist and login if they don't
		if ($this->noLogin()===true) {
			$public = false;
			$return['config']['login'] = false;
		} else {
			$return['config']['login'] = true;
		}

		if ($public===false) {

			# Logged in<commit_msg>Default param for Session init<commit_after><?php

namespace Lychee\Modules;

final class Session extends Module {

	public function init($public = true) {

		# Call plugins
		Plugins::get()->activate(__METHOD__, 0, func_get_args());

		# Return settings
		$return['config'] = Settings::get();

		# Path to Lychee for the server-import dialog
		$return['config']['location'] = LYCHEE;

		# Remove username and password from response
		unset($return['config']['username']);
		unset($return['config']['password']);

		# Remove identifier from response
		unset($return['config']['identifier']);

		# Check if login credentials exist and login if they don't
		if ($this->noLogin()===true) {
			$public = false;
			$return['config']['login'] = false;
		} else {
			$return['config']['login'] = true;
		}

		if ($public===false) {

			# Logged in
{'fraction_non_alphanumeric': 0.16727053140096618, 'fraction_numerical': 0.0012077294685990338, 'mean_word_length': 4.6552901023890785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7425531', 'n_tokens_mistral': 549, 'n_tokens_neox': 480, 'n_words': 134}