<commit_before><?php
namespace Tenet\Type;

use SplFileInfo;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;

/**
 * A file data type for doctrine DBs
 */
class FileType extends Type
{
    const FILE = 'file';

    /**
     *
     */
    public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        return new SplFileInfo($value);
    }

    /**
     *
     */
    public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        return $value->getPath();
    }

    /**
     *
     */
    public function getName()
    {
        return self::FILE;
    }

    /**
     *
     */
    public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
    {
        return 'VARCHAR';
    }
}<commit_msg>FileType now extends StringType<commit_after><?php
namespace Tenet\Type;

use SplFileInfo;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;

/**
 * A file data type for doctrine DBs
 */
class FileType extends StringType
{
    const FILE = 'file';

    /**
     *
     */
    public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        return new SplFileInfo($value);
    }

    /**
     *
     */
    public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        return $value->getPath();
    }

    /**
     *
     */
    public function getName()
    {
        return self::FILE;
    }
}
{'fraction_non_alphanumeric': 0.11619958988380041, 'fraction_numerical': 0.0, 'mean_word_length': 2.3424657534246576, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7519140', 'n_tokens_mistral': 442, 'n_tokens_neox': 430, 'n_words': 97}