<commit_before><?php

declare(strict_types=1);

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sonata\DoctrineORMAdminBundle\Tests\App\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

/** @ORM\Entity */
class Book
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string")
     * @ORM\GeneratedValue(strategy="NONE")
     */
    private string $id;

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

    /**
     * @ORM\ManyToOne(targetEntity="Author", inversedBy="books")
     */
    private ?Author $author;

    /**
     * @ORM\ManyToMany(targetEntity=Reader::class, cascade={"persist"})
     *
     * @var Collection<array-key, Reader>
     */
    private Collection $readers;

    /**
     * @ORM\ManyToMany(targetEntity="Category")
     *
     * @var Collection<array-key, Category>
     */
    private Collection $categories;

    public function __construct(
        string $id = '',
        string $name = '',
        ?Author $author = null<commit_msg>Fix error for postgress and mysql<commit_after><?php

declare(strict_types=1);

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sonata\DoctrineORMAdminBundle\Tests\App\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

/** @ORM\Entity */
class Book
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string")
     * @ORM\GeneratedValue(strategy="NONE")
     */
    private string $id;

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

    /**
     * @ORM\ManyToOne(targetEntity="Author", inversedBy="books")
     * @ORM\JoinColumn(name="author_id", referencedColumnName="id", onDelete="SET NULL")
     */
    private ?Author $author;

    /**
     * @ORM\ManyToMany(targetEntity=Reader::class, cascade={"persist"})
     *
     * @var Collection<array-key, Reader>
     */
    private Collection $readers;

    /**
     * @ORM\ManyToMany(targetEntity="Category")
     *
     * @var Collection<array-key, Category>
     */
    private Collection $categories;

    public function __construct(
        string $id = '',
        string $name = '',
        ?Author $author = null
{'fraction_non_alphanumeric': 0.14280259641084384, 'fraction_numerical': 0.0007636502481863307, 'mean_word_length': 2.9280359820089954, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '7118248', 'n_tokens_mistral': 815, 'n_tokens_neox': 793, 'n_words': 180}