<commit_before><?php
namespace Neos\Flow\ResourceManagement;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Doctrine\ORM\Mapping as ORM;
use Neos\Flow\Annotations as Flow;
use Neos\Cache\CacheAwareInterface;
use Neos\Flow\Log\SystemLoggerInterface;
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
use Neos\Flow\Utility\Environment;
use Neos\Utility;
use Neos\Utility\Unicode\Functions as UnicodeFunctions;
use Neos\Flow\ResourceManagement\Exception as ResourceException;

/**
 * Model representing a persistable resource
 *
 * @Flow\Entity
 * @ORM\Table(indexes={@ORM\Index(columns={"sha1"})})
 */
class PersistentResource implements ResourceMetaDataInterface, CacheAwareInterface
{
    /**
     * Name of a collection whose storage is used for storing this resource and whose
     * target is used for publishing.
     *
     * @var string
     */
    protected $collectionName = ResourceManager::DEFAULT_PERSISTENT_COLLECTION_NAME;

    /**
     * Filename which is used when the data of this resource is downloaded as a file or acting as a label
     *
     * @var string
     * @Flow\Validate(type="StringLength", options={ "maximum"=255 })
     * @ORM\Column(length=255)
     */
    protected $filename = '';<commit_msg>TASK: Fix name of index on PersistentResource.sha1<commit_after><?php
namespace Neos\Flow\ResourceManagement;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Doctrine\ORM\Mapping as ORM;
use Neos\Flow\Annotations as Flow;
use Neos\Cache\CacheAwareInterface;
use Neos\Flow\Log\SystemLoggerInterface;
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
use Neos\Flow\Utility\Environment;
use Neos\Utility;
use Neos\Utility\Unicode\Functions as UnicodeFunctions;
use Neos\Flow\ResourceManagement\Exception as ResourceException;

/**
 * Model representing a persistable resource
 *
 * @Flow\Entity
 * @ORM\Table(indexes={@ORM\Index(name="IDX_35DC14F03332102A",columns={"sha1"})})
 */
class PersistentResource implements ResourceMetaDataInterface, CacheAwareInterface
{
    /**
     * Name of a collection whose storage is used for storing this resource and whose
     * target is used for publishing.
     *
     * @var string
     */
    protected $collectionName = ResourceManager::DEFAULT_PERSISTENT_COLLECTION_NAME;

    /**
     * Filename which is used when the data of this resource is downloaded as a file or acting as a label
     *
     * @var string
     * @Flow\Validate(type="StringLength", options={ "maximum"=255 })
     * @ORM\Column(length=255)
     */
    protected $filename = '';
{'fraction_non_alphanumeric': 0.0949220046465317, 'fraction_numerical': 0.008961168270826419, 'mean_word_length': 3.9735973597359737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4262102', 'n_tokens_mistral': 873, 'n_tokens_neox': 857, 'n_words': 272}