<commit_before><?php
namespace Server;
class Formulas
{
    public static function dmg($weaponLevel, $armorLevel)
    {
        $dealt = $weaponLevel * rand(5, 10);
        $absorbed = $armorLevel * rand(1, 3);
        $dmg =  $dealt - $absorbed;
        
        if($dmg <= 0) {
            return rand(0, 3);
        } else {
            return dmg;<commit_msg>fix $this->attackCallback<commit_after><?php
namespace Server;
class Formulas
{
    public static function dmg($weaponLevel, $armorLevel)
    {
        $dealt = $weaponLevel * rand(5, 10);
        $absorbed = $armorLevel * rand(1, 3);
        $dmg =  $dealt - $absorbed;
        
        if($dmg <= 0) {
            return rand(0, 3);
        } else {
            return $dmg;
{'fraction_non_alphanumeric': 0.13531799729364005, 'fraction_numerical': 0.02165087956698241, 'mean_word_length': 1.9718875502008033, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6097916', 'n_tokens_mistral': 262, 'n_tokens_neox': 247, 'n_words': 58}