<commit_before><?php

namespace Ojs\JournalBundle\Entity;

use APY\DataGridBundle\Grid\Mapping as GRID;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use JMS\Serializer\Annotation as JMS;
use Ojs\AnalyticsBundle\Entity\JournalStatistic;
use Ojs\CoreBundle\Annotation\Display;
use Ojs\CoreBundle\Entity\AnalyticsTrait;
use Ojs\CoreBundle\Entity\GenericEntityTrait;
use Ojs\CoreBundle\Params\JournalStatuses;
use Ojs\UserBundle\Entity\User;
use OkulBilisim\LocationBundle\Entity\Country;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Prezent\Doctrine\Translatable\Entity\AbstractTranslatable;

/**
 * Journal
 * @JMS\ExclusionPolicy("all")
 * @GRID\Source(columns="id,title,issn,eissn,status,publisher.name")
 */
class Journal extends AbstractTranslatable
{
    use GenericEntityTrait;
    use AnalyticsTrait;
    /**
     * List of Journal Status
     * @var array
     */
    public static $statuses = [
        JournalStatuses::STATUS_REJECTED     => 'status.rejected',
        JournalStatuses::STATUS_NAME_CHANGED => 'status.name_changed',
        JournalStatuses::STATUS_HOLD         => 'status.hold',
        JournalStatuses::STATUS_PREPARING    => 'status.preparing',
        JournalStatuses::STATUS_PUBLISHED    => 'status.published',
    ];
    /** @var  boolean */
    protected $setupFinished;
    /** @var  string */
    protected $footerText;
    /** @var  string */
    protected $note;
    /**
     * @var integer
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    protected $id;
    /**
     * @Prezent\Translations(targetEntity="Ojs\JournalBundle\Entity\JournalTranslation")
     */
    protected $translations;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     * @Grid\Column(title="Title")
     */
    private $title;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $titleAbbr;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $titleTransliterated;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $subtitle;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $path;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $domain;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    private $issn;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    private $eissn;
    /**
     * @var \DateTime
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $founded;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $url;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $address;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $phone;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $email;
    /**
     * @var Country
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $country;
    /**
     * @var boolean
     * @JMS\Expose
     */
    private $published = false;
    /**
     * @var integer
     * @JMS\Expose
     * @Grid\Column(field="status", title="status",type="text")
     */
    private $status = 0;
    /**
     * @var integer
     */
    private $accessModal;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     * @Display\Image(filter="journal_cover")
     */
    private $image;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     * @Display\Image(filter="journal_header")
     */
    private $header;
    /**
     * @var string
     */
    private $journalIndexesBag;
    /**<commit_msg>disable status and journal title filterable feature, already not works<commit_after><?php

namespace Ojs\JournalBundle\Entity;

use APY\DataGridBundle\Grid\Mapping as GRID;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use JMS\Serializer\Annotation as JMS;
use Ojs\AnalyticsBundle\Entity\JournalStatistic;
use Ojs\CoreBundle\Annotation\Display;
use Ojs\CoreBundle\Entity\AnalyticsTrait;
use Ojs\CoreBundle\Entity\GenericEntityTrait;
use Ojs\CoreBundle\Params\JournalStatuses;
use Ojs\UserBundle\Entity\User;
use OkulBilisim\LocationBundle\Entity\Country;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Prezent\Doctrine\Translatable\Entity\AbstractTranslatable;

/**
 * Journal
 * @JMS\ExclusionPolicy("all")
 * @GRID\Source(columns="id,title,issn,eissn,status,publisher.name")
 */
class Journal extends AbstractTranslatable
{
    use GenericEntityTrait;
    use AnalyticsTrait;
    /**
     * List of Journal Status
     * @var array
     */
    public static $statuses = [
        JournalStatuses::STATUS_REJECTED     => 'status.rejected',
        JournalStatuses::STATUS_NAME_CHANGED => 'status.name_changed',
        JournalStatuses::STATUS_HOLD         => 'status.hold',
        JournalStatuses::STATUS_PREPARING    => 'status.preparing',
        JournalStatuses::STATUS_PUBLISHED    => 'status.published',
    ];
    /** @var  boolean */
    protected $setupFinished;
    /** @var  string */
    protected $footerText;
    /** @var  string */
    protected $note;
    /**
     * @var integer
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    protected $id;
    /**
     * @Prezent\Translations(targetEntity="Ojs\JournalBundle\Entity\JournalTranslation")
     */
    protected $translations;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     * @Grid\Column(title="Title", filterable=false)
     */
    private $title;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $titleAbbr;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $titleTransliterated;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $subtitle;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $path;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $domain;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    private $issn;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail","IssueDetail"})
     */
    private $eissn;
    /**
     * @var \DateTime
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $founded;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $url;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $address;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $phone;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $email;
    /**
     * @var Country
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     */
    private $country;
    /**
     * @var boolean
     * @JMS\Expose
     */
    private $published = false;
    /**
     * @var integer
     * @JMS\Expose
     * @Grid\Column(field="status", title="status",type="text", filterable=false)
     */
    private $status = 0;
    /**
     * @var integer
     */
    private $accessModal;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     * @Display\Image(filter="journal_cover")
     */
    private $image;
    /**
     * @var string
     * @JMS\Expose
     * @JMS\Groups({"JournalDetail"})
     * @Display\Image(filter="journal_header")
     */
    private $header;
    /**
     * @var string
     */
    private $journalIndexesBag;
    /**
{'fraction_non_alphanumeric': 0.1557703927492447, 'fraction_numerical': 0.00024169184290030211, 'mean_word_length': 2.389025389025389, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5204083', 'n_tokens_mistral': 2776, 'n_tokens_neox': 2721, 'n_words': 425}