<commit_before><?php

namespace Kunstmaan\AdminBundle\Entity;

use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * @ORM\Entity(repositoryClass="Kunstmaan\AdminBundle\Repository\ExceptionRepository")
 * @ORM\Table(
 *      name="kuma_exception",
 *      indexes={
 *          @ORM\Index(name="idx_exception_is_resolved", columns={"is_resolved"})
 *      }
 * )
 * @UniqueEntity("hash")
 * @ORM\HasLifecycleCallbacks()
 */
class Exception extends AbstractEntity
{
    /**
     * @var string
     *
     * @ORM\Column(type="string", length=3)
     */
    private $code;

    /**
     * @var string
     *
     * @ORM\Column(type="string")
     */
    private $url;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=true)
     */
    private $urlReferer;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=false, unique=true, length=32)
     */
    private $hash;

    /**
     * @var int
     *
     * @ORM\Column(type="integer", nullable=false)
     */
    private $events;

    /**
     * @var bool
     *<commit_msg>Entity field change and update UPGRADE file<commit_after><?php

namespace Kunstmaan\AdminBundle\Entity;

use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * @ORM\Entity(repositoryClass="Kunstmaan\AdminBundle\Repository\ExceptionRepository")
 * @ORM\Table(
 *      name="kuma_exception",
 *      indexes={
 *          @ORM\Index(name="idx_exception_is_resolved", columns={"is_resolved"})
 *      }
 * )
 * @UniqueEntity("hash")
 * @ORM\HasLifecycleCallbacks()
 */
class Exception extends AbstractEntity
{
    /**
     * @var string
     *
     * @ORM\Column(type="string", length=3)
     */
    private $code;

    /**
     * @var string
     *
     * @ORM\Column(type="text")
     */
    private $url;

    /**
     * @var string
     *
     * @ORM\Column(type="text", nullable=true)
     */
    private $urlReferer;

    /**
     * @var string
     *
     * @ORM\Column(type="string", nullable=false, unique=true, length=32)
     */
    private $hash;

    /**
     * @var int
     *
     * @ORM\Column(type="integer", nullable=false)
     */
    private $events;

    /**
     * @var bool
     *
{'fraction_non_alphanumeric': 0.15862068965517243, 'fraction_numerical': 0.002586206896551724, 'mean_word_length': 2.5113464447806355, 'pattern_counts': {'":': 0, '<': 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': '6773045', 'n_tokens_mistral': 772, 'n_tokens_neox': 760, 'n_words': 118}