<commit_before><?php

namespace Schuppo\PasswordStrength;

class PasswordStrength
{
    public function validateLetters($value)
    {
        return preg_match('/\pL/', $value);
    }

    public function validateNumbers($value)
    {
        return preg_match('/\pN/', $value);
    }

    public function validateCaseDiff($value)
    {
        return preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value);
    }

    public function validateSymbols($value)
    {
        return preg_match('/[!@#$%^&*?()\-_=+{};:,<.>]/', $value);
    }
}<commit_msg>Add slash to symbol characters<commit_after><?php

namespace Schuppo\PasswordStrength;

class PasswordStrength
{
    public function validateLetters($value)
    {
        return preg_match('/\pL/', $value);
    }

    public function validateNumbers($value)
    {
        return preg_match('/\pN/', $value);
    }

    public function validateCaseDiff($value)
    {
        return preg_match('/(\p{Ll}+.*\p{Lu})|(\p{Lu}+.*\p{Ll})/u', $value);
    }

    public function validateSymbols($value)
    {
        return preg_match('/[!@#$%^&*?()\-_=+{};:,<.>\/]/', $value);
    }
}
{'fraction_non_alphanumeric': 0.20476610767872905, 'fraction_numerical': 0.0, 'mean_word_length': 2.8703071672354947, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1079436', 'n_tokens_mistral': 411, 'n_tokens_neox': 390, 'n_words': 62}