<commit_before><?php

class BMSkillKonstant extends BMSkill {
    public static $hooked_methods = array('attack_list',
                                          'add_skill',
                                          'attack_values',
                                          'hit_table');

    public static function attack_list($args) {
        if (!is_array($args)) {
            return;
        }

        $attackTypeArray = &$args['attackTypeArray'];

        if (array_key_exists('Power', $attackTypeArray)) {
            unset($attackTypeArray['Power']);
        }
    }

    public static function add_skill($args) {
        if (!array_key_exists('die', $args)) {
            return;
        }

        $args['die']->doesReroll = FALSE;
    }

    public static function attack_values($args) {
        if (!is_array($args) ||
            !array_key_exists('attackType', $args) ||
            !array_key_exists('attackValues', $args)) {
            return;
        }

        if ('Skill' != $args['attackType']) {
            return;
        }

        $initialAttackValues = $args['attackValues'];
        $negativeAttackValues = array_map(function ($val) {return (-$val);},
                                          $initialAttackValues);

        $args['attackValues'] = array_values(
                                    array_unique(<commit_msg>* address last remaining checkstyle "ContentBefore" warning<commit_after><?php

class BMSkillKonstant extends BMSkill {
    public static $hooked_methods = array('attack_list',
                                          'add_skill',
                                          'attack_values',
                                          'hit_table');

    public static function attack_list($args) {
        if (!is_array($args)) {
            return;
        }

        $attackTypeArray = &$args['attackTypeArray'];

        if (array_key_exists('Power', $attackTypeArray)) {
            unset($attackTypeArray['Power']);
        }
    }

    public static function add_skill($args) {
        if (!array_key_exists('die', $args)) {
            return;
        }

        $args['die']->doesReroll = FALSE;
    }

    public static function attack_values($args) {
        if (!is_array($args) ||
            !array_key_exists('attackType', $args) ||
            !array_key_exists('attackValues', $args)) {
            return;
        }

        if ('Skill' != $args['attackType']) {
            return;
        }

        $initialAttackValues = $args['attackValues'];
        $negativeAttackValues = array_map(
            function ($val) {
                return (-$val);
            },
            $initialAttackValues
        );

        $args['attackValues'] = array_values(
                                    array_unique(
{'fraction_non_alphanumeric': 0.12131029517638589, 'fraction_numerical': 0.0, 'mean_word_length': 1.5565777368905245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '753227', 'n_tokens_mistral': 737, 'n_tokens_neox': 698, 'n_words': 128}