<commit_before><?php
/**
 * Created by PhpStorm.
 * User: alexander
 * Date: 12/12/14
 * Time: 1:24 PM
 */

namespace Media\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Media\Service\Audio;
use Media\Service\Image;
use Media\Service\Video;
use Media\Service\File as FileService;
use Zend\Form\Annotation;

/**
 * Files
 *
 * @ORM\Entity(repositoryClass="Media\Repository\File")
 * @ORM\Table(name="files")
 * @Annotation\Name("file")
 */
class File
{
    const IMAGE_FILETYPE = 'image';
    const AUDIO_FILETYPE = 'audio';
    const VIDEO_FILETYPE = 'video';

    /**
     * @var string
     *
     * @ORM\Column(name="extension", type="string", length=5, nullable=true)
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Attributes({"type":"text"})
     * @Annotation\Options({"label":"Extension:"})
     */
    private $extension;

    /**<commit_msg>Fixed image uploading bug<commit_after><?php
/**
 * Created by PhpStorm.
 * User: alexander
 * Date: 12/12/14
 * Time: 1:24 PM
 */

namespace Media\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Media\Service\Audio;
use Media\Service\Image;
use Media\Service\Video;
use Media\Service\File as FileService;
use Zend\Form\Annotation;

/**
 * Files
 *
 * @ORM\Entity(repositoryClass="Media\Repository\File")
 * @ORM\Table(name="files")
 * @ORM\HasLifecycleCallbacks
 * @Annotation\Name("file")
 */
class File
{
    const IMAGE_FILETYPE = 'image';
    const AUDIO_FILETYPE = 'audio';
    const VIDEO_FILETYPE = 'video';

    /**
     * @var string
     *
     * @ORM\Column(name="extension", type="string", length=5, nullable=true)
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Attributes({"type":"text"})
     * @Annotation\Options({"label":"Extension:"})
     */
    private $extension;

    /**
{'fraction_non_alphanumeric': 0.16737513283740701, 'fraction_numerical': 0.010626992561105207, 'mean_word_length': 3.8035714285714284, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 3, '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': '235280', 'n_tokens_mistral': 637, 'n_tokens_neox': 613, 'n_words': 118}