<commit_before><?php

/*
 * This file is part of the OpenMiamMiam project.
 *
 * (c) Isics <<EMAIL>>
 *
 * This source file is subject to the AGPL v3 license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Isics\Bundle\OpenMiamMiamBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Comment
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Comment
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

    /**
     * @var boolean
     *
     * @ORM\Column(name="isProcessed", type="boolean")
     */
    private $isProcessed;

    /**
     * @var User $user
     * 
     * @ORM\ManyToOne(targetEntity="Isics\Bundle\openMiamMiamUserBundle\Entity\User", inversedBy="comments")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
     * })
     */
    private $user;

    /**
     * @var User $writer
     * 
     * @ORM\ManyToOne(targetEntity="Isics\Bundle\openMiamMiamUserBundle\Entity\User", inversedBy="writtenComments")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
     * })
     */
    private $writer;


    /**
     * Constructor
     */
    public function __construc()
    {
        $this->writingdate = new \Datetime();
        $this->isProcessed = false;<commit_msg>Fix the relation Comment <-> User<commit_after><?php

/*
 * This file is part of the OpenMiamMiam project.
 *
 * (c) Isics <<EMAIL>>
 *
 * This source file is subject to the AGPL v3 license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Isics\Bundle\OpenMiamMiamBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Comment
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Comment
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

    /**
     * @var boolean
     *
     * @ORM\Column(name="isProcessed", type="boolean")
     */
    private $isProcessed;

    /**
     * @var User $user
     * 
     * @ORM\ManyToOne(targetEntity="Isics\Bundle\OpenMiamMiamUserBundle\Entity\User", inversedBy="comments")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
     * })
     */
    private $user;

    /**
     * @var User $writer
     * 
     * @ORM\ManyToOne(targetEntity="Isics\Bundle\OpenMiamMiamUserBundle\Entity\User", inversedBy="writtenComments")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
     * })
     */
    private $writer;


    /**
     * Constructor
     */
    public function __construc()
    {
        $this->writingdate = new \Datetime();
        $this->isProcessed = false;
{'fraction_non_alphanumeric': 0.15809692671394798, 'fraction_numerical': 0.000591016548463357, 'mean_word_length': 2.450560652395515, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '7483340', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1113, 'n_words': 205}