<commit_before>

MORTAR_TARGETS = [];

private "_targetAge";
private "_targetAgeMax";
private "_nShells";
private "_spread";
private "_pos";
private "_iShell";

_targetAgeMax = 5/60; // hours

while {true} do {

    {
        if (!isNil "_x") then {
        
            _targetAge = daytime - (_x select 0);
            
            if (_targetAge < _targetAgeMax) then {
                _spread = 50 + (_targetAge/_targetAgeMax) * 200;
                _nShells = 5 + random 2;
                for "_iShell" from 0 to (_nShells - 1) do {
                    
                    _pos = [(_x select 1 select 0) - _spread/2 + random _spread, (_x select 1 select 1) - _spread/2 + random _spread, 20];
                    
                    mortarGunner doArtilleryFire [_pos,"8Rnd_82mm_Mo_Flare_white",1];  
                    mortar1 addMagazine ["8Rnd_82mm_Mo_Flare_white",1];
                    sleep 2;
                };
            };
        };
    } forEach MORTAR_TARGETS;
    sleep (10 + random 20);
};<commit_msg>mortar should now fire only during the daytime<commit_after>

MORTAR_TARGETS = [];

private "_targetAge";
private "_targetAgeMax";
private "_nShells";
private "_spread";
private "_pos";
private "_iShell";

_targetAgeMax = 5/60; // hours

while {true} do {

    {
        if (!isNil "_x") then {
        
            _targetAge = daytime - (_x select 0);
            
            if (_targetAge < _targetAgeMax) then {
                _spread = 50 + (_targetAge/_targetAgeMax) * 200;
                _nShells = 5 + random 2;
                for "_iShell" from 0 to (_nShells - 1) do {
                    
                    _pos = [(_x select 1 select 0) - _spread/2 + random _spread, (_x select 1 select 1) - _spread/2 + random _spread, 20];
                    
                    mortarGunner doArtilleryFire [_pos,"8Rnd_82mm_Mo_Flare_white",1];  
                    if (daytime < 5.75 OR daytime > 20.0) then {
                        mortar1 addMagazine ["8Rnd_82mm_Mo_Flare_white",1];
                    };
                    sleep 2;
                };
            };
        };
    } forEach MORTAR_TARGETS;
    sleep (10 + random 20);
};
{'fraction_non_alphanumeric': 0.10427193385392743, 'fraction_numerical': 0.03491042719338539, 'mean_word_length': 1.529616724738676, 'pattern_counts': {'":': 0, '<': 6, '<?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': '3951890', 'n_tokens_mistral': 760, 'n_tokens_neox': 646, 'n_words': 176}