<commit_before><?php

require_once "ModernCombatResultsTable.php";

class CombatResultsTable extends ModernCombatResultsTable
{
    use divCombatHalfDoubleTerrain;
    public $aggressorId = INDIAN_FORCE;

    function __construct(){
        $this->combatResultsHeader = array("1:1","2:1","3:1","4:1","5:1","6:1");
        $this->combatResultsTable = array(
            array(AE, AE, AR, DR, DR, DR),
            array(AE, AR, DR, DR, DE, DE),
            array(AR, AR, DR, DE, DE, DE),
            array(AR, DR, DR, DR, DE, DE),
            array(DR, DR, EX0, EX0, DE, DE),
            array(EX0, EX0, EX0, EX0, EX0, DE),
        );

        $this->combatResultsTableDetermined = array(
            array(AE,   AE,   AR,   DR,    DE,  DE),
            array(AE,   AR,   DR,   DE,    DE,  DE),
            array(AR,   DR,   DE,   DE,    DE,  DE),
            array(AR,   EX03, EX02, EX02,  DE,  DE),
            array(EX03, EX02, EX0,  EX0,   EX0, DE),
            array(EX02, EX0,  EX0,  EX0,   EX0, EX0),
        );

        $this->combatOddsTable = array(
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
        );

        $this->combatIndexCount = 11;
        $this->maxCombatIndex = $this->combatIndexCount - 1;
        $this->dieSideCount = 6;
        $this->combatResultCount = 10;

        $this->setCombatOddsTable();
    }

    function getCombatResults($Die, $index, $combat)
    {
        if($combat->useDetermined){
            return $this->combatResultsTableDetermined[$Die][$index];
        }
        return $this->combatResultsTable[$Die][$index];
    }
}<commit_msg>MaxCombatIndex fix<commit_after><?php

require_once "ModernCombatResultsTable.php";

class CombatResultsTable extends ModernCombatResultsTable
{
    use divCombatHalfDoubleTerrain;
    public $aggressorId = INDIAN_FORCE;

    function __construct(){
        $this->combatResultsHeader = array("1:1","2:1","3:1","4:1","5:1","6:1");
        $this->combatResultsTable = array(
            array(AE, AE, AR, DR, DR, DR),
            array(AE, AR, DR, DR, DE, DE),
            array(AR, AR, DR, DE, DE, DE),
            array(AR, DR, DR, DR, DE, DE),
            array(DR, DR, EX0, EX0, DE, DE),
            array(EX0, EX0, EX0, EX0, EX0, DE),
        );

        $this->combatResultsTableDetermined = array(
            array(AE,   AE,   AR,   DR,    DE,  DE),
            array(AE,   AR,   DR,   DE,    DE,  DE),
            array(AR,   DR,   DE,   DE,    DE,  DE),
            array(AR,   EX03, EX02, EX02,  DE,  DE),
            array(EX03, EX02, EX0,  EX0,   EX0, DE),
            array(EX02, EX0,  EX0,  EX0,   EX0, EX0),
        );

        $this->combatOddsTable = array(
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
            array(),
        );

        $this->combatIndexCount = 6;
        $this->maxCombatIndex = $this->combatIndexCount - 1;
        $this->dieSideCount = 6;
        $this->combatResultCount = 5;

        $this->setCombatOddsTable();
    }

    function getCombatResults($Die, $index, $combat)
    {
        if($combat->useDetermined){
            return $this->combatResultsTableDetermined[$Die][$index];
        }
        return $this->combatResultsTable[$Die][$index];
    }
}
{'fraction_non_alphanumeric': 0.14984450098953916, 'fraction_numerical': 0.024879841673734804, 'mean_word_length': 1.7511664074650077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7358400', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1159, 'n_words': 249}