<commit_before><?php declare(strict_types=1);
ini_set('date.timezone', 'UTC');
error_reporting(E_ALL);

// Repository paths
const ROOT = __DIR__ . '/../';
const LIB = ROOT . 'src/lib/';
const ENGINE = ROOT . 'src/engine/';
const WWW = ROOT . 'src/htdocs/';
const UPLOAD = WWW . 'upload/';
const ADMIN = ROOT . 'src/admin/';
const TOOLS = ROOT . 'src/tools/';
const CONFIG = ROOT . 'config/';
const TEMPLATES = ROOT . 'src/templates/';

// Define server-specific constants
require_once(CONFIG . 'config.specific.php');

if (ENABLE_BETA && !ENABLE_DEBUG) {
	// Everything raises an exception in beta mode (for e-mail notifications).
	// However, in debug mode, we prefer to use xdebug's handler.
	set_error_handler('exception_error_handler');
}

// Change the browser title based on the server config
const PAGE_PREFIX = ENABLE_DEBUG ? 'DEV: ' : (ENABLE_BETA ? 'BETA: ' : '');
const PAGE_TITLE = PAGE_PREFIX . 'Space Merchant Realms';

/*
 * Special account IDs
 */
const ACCOUNT_ID_PORT = 65535;
const ACCOUNT_ID_ADMIN = 65534;
const ACCOUNT_ID_PLANET = 65533;
const ACCOUNT_ID_ALLIANCE_AMBASSADOR = 65532;
const ACCOUNT_ID_CASINO = 65531;
const ACCOUNT_ID_BANK_REPORTER = 65530;
const ACCOUNT_ID_FED_CLERK = 65529;
const ACCOUNT_ID_OP_ANNOUNCE = 65528;
const ACCOUNT_ID_ALLIANCE_COMMAND = 65527;
const ACCOUNT_ID_GROUP_RACES = 65500;
const ACCOUNT_ID_NHL = 36;

/*
 * Special durations
 */
const TIME_FOR_RAIDER_UNLOCK = 1209600; // 2 weeks
const TIME_FOR_RACE_CHANGE = 172800; // 2 days
const TIME_BETWEEN_VOTING = 84600; //23 1/2 hours
const TIME_BEFORE_INACTIVE = 259200; // 3 days
const TIME_BEFORE_NEWBIE_TIME = 3600; //1 hour
const TIME_FOR_COUNCIL_VOTE = 172800; //2 days
const TIME_FOR_WAR_VOTE_FED_SAFETY = 259200; //3 days
const TIME_MAP_BUY_WAIT = 259200; //3 days
const TIME_FOR_BREAKING_NEWS = 86400; //1 day
const VOTE_BONUS_TURNS_TIME = 1800; //30 mins
const BOND_TIME = 172800; //48 hours
const TIME_LOTTO = 172800; //2 days

/*
 * Ship image restrictions
 */
const MAX_IMAGE_SIZE = 30; //in kb
const MAX_IMAGE_WIDTH = 200;
const MAX_IMAGE_HEIGHT = 30;

/*
 * Miscellaneous external resources
 */
const MULTI_CHECKING_COOKIE_VERSION = 'v3';
const SMR_FILE_VERSION = '1.07';<commit_msg>Increase race change window from 2 -> 3 days<commit_after><?php declare(strict_types=1);
ini_set('date.timezone', 'UTC');
error_reporting(E_ALL);

// Repository paths
const ROOT = __DIR__ . '/../';
const LIB = ROOT . 'src/lib/';
const ENGINE = ROOT . 'src/engine/';
const WWW = ROOT . 'src/htdocs/';
const UPLOAD = WWW . 'upload/';
const ADMIN = ROOT . 'src/admin/';
const TOOLS = ROOT . 'src/tools/';
const CONFIG = ROOT . 'config/';
const TEMPLATES = ROOT . 'src/templates/';

// Define server-specific constants
require_once(CONFIG . 'config.specific.php');

if (ENABLE_BETA && !ENABLE_DEBUG) {
	// Everything raises an exception in beta mode (for e-mail notifications).
	// However, in debug mode, we prefer to use xdebug's handler.
	set_error_handler('exception_error_handler');
}

// Change the browser title based on the server config
const PAGE_PREFIX = ENABLE_DEBUG ? 'DEV: ' : (ENABLE_BETA ? 'BETA: ' : '');
const PAGE_TITLE = PAGE_PREFIX . 'Space Merchant Realms';

/*
 * Special account IDs
 */
const ACCOUNT_ID_PORT = 65535;
const ACCOUNT_ID_ADMIN = 65534;
const ACCOUNT_ID_PLANET = 65533;
const ACCOUNT_ID_ALLIANCE_AMBASSADOR = 65532;
const ACCOUNT_ID_CASINO = 65531;
const ACCOUNT_ID_BANK_REPORTER = 65530;
const ACCOUNT_ID_FED_CLERK = 65529;
const ACCOUNT_ID_OP_ANNOUNCE = 65528;
const ACCOUNT_ID_ALLIANCE_COMMAND = 65527;
const ACCOUNT_ID_GROUP_RACES = 65500;
const ACCOUNT_ID_NHL = 36;

/*
 * Special durations
 */
const TIME_FOR_RAIDER_UNLOCK = 1209600; // 2 weeks
const TIME_FOR_RACE_CHANGE = 259200; // 3 days
const TIME_BETWEEN_VOTING = 84600; //23 1/2 hours
const TIME_BEFORE_INACTIVE = 259200; // 3 days
const TIME_BEFORE_NEWBIE_TIME = 3600; //1 hour
const TIME_FOR_COUNCIL_VOTE = 172800; //2 days
const TIME_FOR_WAR_VOTE_FED_SAFETY = 259200; //3 days
const TIME_MAP_BUY_WAIT = 259200; //3 days
const TIME_FOR_BREAKING_NEWS = 86400; //1 day
const VOTE_BONUS_TURNS_TIME = 1800; //30 mins
const BOND_TIME = 172800; //48 hours
const TIME_LOTTO = 172800; //2 days

/*
 * Ship image restrictions
 */
const MAX_IMAGE_SIZE = 30; //in kb
const MAX_IMAGE_WIDTH = 200;
const MAX_IMAGE_HEIGHT = 30;

/*
 * Miscellaneous external resources
 */
const MULTI_CHECKING_COOKIE_VERSION = 'v3';
const SMR_FILE_VERSION = '1.07';
{'fraction_non_alphanumeric': 0.1141439205955335, 'fraction_numerical': 0.06722309948116399, 'mean_word_length': 4.5425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7269863', 'n_tokens_mistral': 1903, 'n_tokens_neox': 1651, 'n_words': 434}