<commit_before><?php

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sonata\CoreBundle\Component;

@trigger_error('The '.__NAMESPACE__.'\NativeSlugify class is deprecated since version 2.3 and will be removed in 4.0.', E_USER_DEPRECATED);

/**
 * Do not use this class, it is only here to be BC.
 *
 * NEXT_MAJOR: remove this class.
 *
 * @deprecated
 *
 * @author <NAME> <<EMAIL>>
 */
class NativeSlugify
{
    /**
     * @param $text
     *
     * @return mixed|string
     *
     * @deprecated
     */
    public function slugify($text)
    {
        $text = preg_replace('~[^\\pL\d]+~u', '-', $text);

        // trim
        $text = trim($text, '-');

        // transliterate
        if (function_exists('iconv')) {
            $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
        }
<commit_msg>added versions for @deprecated PHPDoc tag (#379)<commit_after><?php

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sonata\CoreBundle\Component;

@trigger_error('The '.__NAMESPACE__.'\NativeSlugify class is deprecated since version 2.3 and will be removed in 4.0.', E_USER_DEPRECATED);

/**
 * Do not use this class, it is only here to be BC.
 *
 * NEXT_MAJOR: remove this class.
 *
 * @deprecated since 2.3, to be removed in 4.0.
 *
 * @author <NAME> <th<EMAIL>>
 */
class NativeSlugify
{
    /**
     * @param $text
     *
     * @return mixed|string
     *
     * @deprecated since 2.3, to be removed in 4.0.
     */
    public function slugify($text)
    {
        $text = preg_replace('~[^\\pL\d]+~u', '-', $text);

        // trim
        $text = trim($text, '-');

        // transliterate
        if (function_exists('iconv')) {
            $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
        }

{'fraction_non_alphanumeric': 0.14800576645843344, 'fraction_numerical': 0.010091302258529554, 'mean_word_length': 2.534804753820034, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '7191067', 'n_tokens_mistral': 697, 'n_tokens_neox': 681, 'n_words': 204}