<commit_before><?php

declare(strict_types=1);

namespace App\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Pack
 *
 * @ORM\Table(name="pack")
 * @ORM\Entity(repositoryClass="App\Repository\PackRepository")
 */
class Pack
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private int $id;

    /**
     * @ORM\Column(name="name", type="string", length=150)
     * @Assert\Length(min="2", max="150")
     */
    private string $name;

    /**
     * @ORM\Column(name="storagePath", type="string", length=255)
     */
    private string $storagePath;

    /**
     * @ORM\Column(name="status", type="integer")
     */
    private int $status;

    /**
     * @ORM\Column(name="views", type="integer", options={"unsigned"=true})
     */
    private int $views = 0;

    /**
     * @var Collection<int, Picture>
     *
     * @ORM\ManyToMany(targetEntity="Picture")
     */
    private Collection $pictures;

    /**
     * @var Collection<int, Tag>
     *
     * @ORM\ManyToMany(targetEntity="Tag")
     */
    private Collection $tags;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     */
    private ?UserInterface $creator;

    /**
     * @ORM\Column(name="created", type="datetime")
     */
    private \DateTime $created;

    /**
     * @Gedmo\Timestampable(on="update")
     * @ORM\Column(name="updated", type="datetime")
     */
    private \DateTime $updated;

    /**
     * @Assert\File(mimeTypes={"application/zip", "application/x-rar-compressed", "application/gzip", "application/x-tar"})
     */
    private ?File $file;

    /**
     * Constructor
     */
    public function __construct()<commit_msg>Add missing MIME type for pack<commit_after><?php

declare(strict_types=1);

namespace App\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Pack
 *
 * @ORM\Table(name="pack")
 * @ORM\Entity(repositoryClass="App\Repository\PackRepository")
 */
class Pack
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private int $id;

    /**
     * @ORM\Column(name="name", type="string", length=150)
     * @Assert\Length(min="2", max="150")
     */
    private string $name;

    /**
     * @ORM\Column(name="storagePath", type="string", length=255)
     */
    private string $storagePath;

    /**
     * @ORM\Column(name="status", type="integer")
     */
    private int $status;

    /**
     * @ORM\Column(name="views", type="integer", options={"unsigned"=true})
     */
    private int $views = 0;

    /**
     * @var Collection<int, Picture>
     *
     * @ORM\ManyToMany(targetEntity="Picture")
     */
    private Collection $pictures;

    /**
     * @var Collection<int, Tag>
     *
     * @ORM\ManyToMany(targetEntity="Tag")
     */
    private Collection $tags;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     */
    private ?UserInterface $creator;

    /**
     * @ORM\Column(name="created", type="datetime")
     */
    private \DateTime $created;

    /**
     * @Gedmo\Timestampable(on="update")
     * @ORM\Column(name="updated", type="datetime")
     */
    private \DateTime $updated;

    /**
     * @Assert\File(mimeTypes={"application/zip", "application/x-rar-compressed", "application/x-rar", "application/gzip", "application/x-tar"})
     */
    private ?File $file;

    /**
     * Constructor
     */
    public function __construct()
{'fraction_non_alphanumeric': 0.17221669980119284, 'fraction_numerical': 0.005964214711729622, 'mean_word_length': 2.942213516160627, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '2315275', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1269, 'n_words': 209}