<commit_before><?php

/*
 * BMSkill: Used to modify the operation of BMDie
 *
 * @author: <NAME>
 */

class BMSKill
{
	
}

class BMSkillShadow extends BMSkill
{
	public static $name = "Shadow";

    public static $abbrev = "s";

    public static $hooked_methods = array("attack_list");

	public static function attack_list($args)
	{
		$list = $args[0];

		foreach ($list as $i => $att)
		{
			if ($att == "Power")
			{
				unset($list[$i]);
			}
		}

		$list[] = "Shadow";
	}
}

?><commit_msg>Wrote unit tests for Shadow<commit_after><?php

/*
 * BMSkill: Used to modify the operation of BMDie
 *
 * @author: <NAME>
 */

class BMSKill
{
	
}

class BMSkillShadow extends BMSkill
{
	public static $name = "Shadow";

    public static $abbrev = "s";

    public static $hooked_methods = array("attack_list");

	public static function attack_list($args)
	{
		$list = $args[0];

        $redundant = FALSE;

		foreach ($list as $i => $att)
		{
			if ($att == "Power")
			{
				unset($list[$i]);
			}
            if ($att == "Shadow") {
                $redundant = TRUE;
            }
		}

        if (!$redundant) {
            $list[] = "Shadow";
        }
	}
}

?>
{'fraction_non_alphanumeric': 0.16079105760963028, 'fraction_numerical': 0.0017196904557179708, 'mean_word_length': 2.4642857142857144, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '774994', 'n_tokens_mistral': 462, 'n_tokens_neox': 415, 'n_words': 105}