<commit_before><?php

declare(strict_types=1);

/*
 * This file is part of the Superdesk Web Publisher Core Bundle.
 *
 * Copyright 2018 Sourcefabric z.ú. and contributors.
 *
 * For the full copyright and license information, please see the
 * AUTHORS and LICENSE files distributed with this source code.
 *
 * @copyright 2018 Sourcefabric z.ú.
 * @license http://www.superdesk.org/license
 */

namespace SWP\Bundle\CoreBundle\HttpCache;

use SWP\Bundle\ContentBundle\Model\RouteInterface;

final class HttpCacheRouteTagGenerator implements HttpCacheRouteTagGeneratorInterface
{
    public function generateTags(RouteInterface $route): array
    {
        $tags = [];
        if (null !== ($routeId = $route->getId())) {
            $tags[] = "route-$routeId";
        }

        return $tags;
    }
}<commit_msg>use shorter name for tag<commit_after><?php

declare(strict_types=1);

/*
 * This file is part of the Superdesk Web Publisher Core Bundle.
 *
 * Copyright 2018 Sourcefabric z.ú. and contributors.
 *
 * For the full copyright and license information, please see the
 * AUTHORS and LICENSE files distributed with this source code.
 *
 * @copyright 2018 Sourcefabric z.ú.
 * @license http://www.superdesk.org/license
 */

namespace SWP\Bundle\CoreBundle\HttpCache;

use SWP\Bundle\ContentBundle\Model\RouteInterface;

final class HttpCacheRouteTagGenerator implements HttpCacheRouteTagGeneratorInterface
{
    public function generateTags(RouteInterface $route): array
    {
        $tags = [];
        if (null !== ($routeId = $route->getId())) {
            $tags[] = "r-$routeId";
        }

        return $tags;
    }
}
{'fraction_non_alphanumeric': 0.10642201834862386, 'fraction_numerical': 0.011009174311926606, 'mean_word_length': 3.4097035040431267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2015150', 'n_tokens_mistral': 479, 'n_tokens_neox': 455, 'n_words': 138}