<commit_before><?php

namespace Bllim\Laravalid\Converter\JqueryValidation;

use Bllim\Laravalid\Helper;
use Lang;

class Message extends \Bllim\Laravalid\Converter\Base\Message
{
    public function ip($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);

        return ['data-msg-ipv4' => $message];
    }

    public function same($parsedRule, $attribute, $type)
    {
        $message = Lang::get('validation.'.$parsedRule['name'], ['attribute' => $attribute]);

        return ['data-msg-equalto' => $message];
    }

    public function alpha($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);

        return ['data-msg-regex' => $message];
    }

    public function alphanum($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);
<commit_msg>Corrected validation rule gathering for same rule<commit_after><?php

namespace Bllim\Laravalid\Converter\JqueryValidation;

use Bllim\Laravalid\Helper;
use Lang;

class Message extends \Bllim\Laravalid\Converter\Base\Message
{
    public function ip($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);

        return ['data-msg-ipv4' => $message];
    }

    public function same($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name'], ['other' => $parsedRule['parameters'][0]]);

        return ['data-msg-equalto' => $message];
    }

    public function alpha($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);

        return ['data-msg-regex' => $message];
    }

    public function alphanum($parsedRule, $attribute, $type)
    {
        $message = Helper::getValidationMessage($attribute, $parsedRule['name']);

{'fraction_non_alphanumeric': 0.15408008109477953, 'fraction_numerical': 0.0015205271160669033, 'mean_word_length': 3.959798994974874, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7389266', 'n_tokens_mistral': 588, 'n_tokens_neox': 590, 'n_words': 113}