<commit_before><?php

define('INSIDE', true);

$_DontCheckPolls = TRUE;
$_AllowInVacationMode = true;

$_EnginePath = './';
include($_EnginePath.'common.php');

include($_EnginePath . 'modules/messages/_includes.php');

use UniEngine\Engine\Modules\Messages;

loggedCheck();

includeLang('messages');
includeLang('messageSystem');
includeLang('spyReport');
includeLang('FleetMission_MissileAttack');

$parse = &$_Lang;
$parse['Insert_Styles'] = '';
$parse['Insert_CategoryList'] = '';
$CreateSimForms = '';
$SetTitle = $_Lang['mess_pagetitle_read'];

$Now = time();

$MessageType = array(100, 0, 1, 2, 3, 4, 5, 15, 50, 70, 80);
foreach($MessageType as $TypeID)
{
    $MsgCounter['total'][$TypeID] = 0;
    $MsgCounter['threaded'][$TypeID] = 0;
    $MsgCounter['unread'][$TypeID] = 0;
}
$_CanBeThreaded = array(1, 80, 100);
$TitleColor = array
(
    0 => '#FFFF00', 1 => '#FF6699', 2 => '#FF3300', 3 => '#FF9900', 4 => '#9540BF', 5 => '#009933',
    15 => '#6661FF', 80 => 'white', 50 => 'skyblue', 70 => '#75F121', 100 => '#ABABAB'
);
$MsgColors = array(0 => 'c0', 1 => 'c1', 2 => 'c2', 3 => 'c3', 4 => 'c4', 5 => 'c5', 15 => 'c15', 80 => 'c80', 50 => 'c50', 70 => 'c70', 100 => 'c100');
$SimTechs = array(109, 110, 111, 120, 121, 122, 125, 126, 199);
$SimTechsRep = array(109 => 1, 110 => 2, 111 => 3, 120 => 4, 121 => 5, 122 => 6, 125 => 7, 126 => 8, 199 => 9);
$_MaxLength_Subject = 100;
$_MaxLength_Text = 5000;

$_UseThreads = ($_User['settings_UseMsgThreads'] == 1 ? true : false);

$_ThisCategory = (isset($_GET['messcat']) ? intval($_GET['messcat']) : 0);
$DeleteWhat = (isset($_POST['deletemessages']) ? $_POST['deletemessages'] : '');
if(!empty($DeleteWhat) || (isset($_POST['delid']) && $_POST['delid'] > 0))
{
    $_GET['mode'] = 'delete';
    if(isset($_POST['delid']) && $_POST['delid'] > 0)
    {
        $_POST['deletemessages'] = '';
    }<commit_msg>GH-126 Remove unused consts map<commit_after><?php

define('INSIDE', true);

$_DontCheckPolls = TRUE;
$_AllowInVacationMode = true;

$_EnginePath = './';
include($_EnginePath.'common.php');

include($_EnginePath . 'modules/messages/_includes.php');

use UniEngine\Engine\Modules\Messages;

loggedCheck();

includeLang('messages');
includeLang('messageSystem');
includeLang('spyReport');
includeLang('FleetMission_MissileAttack');

$parse = &$_Lang;
$parse['Insert_Styles'] = '';
$parse['Insert_CategoryList'] = '';
$CreateSimForms = '';
$SetTitle = $_Lang['mess_pagetitle_read'];

$Now = time();

$MessageType = array(100, 0, 1, 2, 3, 4, 5, 15, 50, 70, 80);
foreach($MessageType as $TypeID)
{
    $MsgCounter['total'][$TypeID] = 0;
    $MsgCounter['threaded'][$TypeID] = 0;
    $MsgCounter['unread'][$TypeID] = 0;
}
$_CanBeThreaded = array(1, 80, 100);
$TitleColor = array
(
    0 => '#FFFF00', 1 => '#FF6699', 2 => '#FF3300', 3 => '#FF9900', 4 => '#9540BF', 5 => '#009933',
    15 => '#6661FF', 80 => 'white', 50 => 'skyblue', 70 => '#75F121', 100 => '#ABABAB'
);
$MsgColors = array(0 => 'c0', 1 => 'c1', 2 => 'c2', 3 => 'c3', 4 => 'c4', 5 => 'c5', 15 => 'c15', 80 => 'c80', 50 => 'c50', 70 => 'c70', 100 => 'c100');

$_MaxLength_Subject = 100;
$_MaxLength_Text = 5000;

$_UseThreads = ($_User['settings_UseMsgThreads'] == 1 ? true : false);

$_ThisCategory = (isset($_GET['messcat']) ? intval($_GET['messcat']) : 0);
$DeleteWhat = (isset($_POST['deletemessages']) ? $_POST['deletemessages'] : '');
if(!empty($DeleteWhat) || (isset($_POST['delid']) && $_POST['delid'] > 0))
{
    $_GET['mode'] = 'delete';
    if(isset($_POST['delid']) && $_POST['delid'] > 0)
    {
        $_POST['deletemessages'] = '';
    }
{'fraction_non_alphanumeric': 0.24727577535624476, 'fraction_numerical': 0.08605755797708857, 'mean_word_length': 5.26970227670753, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 60, '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': '3653191', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1348, 'n_words': 283}