<commit_before><?php

namespace Rcm\Entity;

use Doctrine\ORM\Mapping as ORM;
use Rcm\Exception\InvalidArgumentException;
use Rcm\Tracking\Model\Tracking;
use Zend\Validator\Uri;

/**
 * Site redirects
 *
 * This object contains a list of urls to redirect. For use with the content
 * management system.
 *
 * @category  Reliv
 * @package   Rcm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   Release: 1.0
 * @link      http://github.com/reliv
 *
 * @ORM\Entity (repositoryClass="Rcm\Repository\Redirect")
 * @ORM\HasLifecycleCallbacks()
 * @ORM\Table(name="rcm_redirects",
 *     indexes={
 *         @ORM\Index(name="redirect_request_url_siteId", columns={"requestUrl", "siteId"})
 *     }
 * )
 */
class Redirect extends ApiModelTrackingAbstract implements Tracking
{
    /**
     * @var int Auto-Incremented Primary Key
     *
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    protected $redirectId;

    /**
     * @var string Request URL
     *
     * @ORM\Column(type="string")
     */
    protected $requestUrl;

    /**
     * @var string Redirect URL
     *
     * @ORM\Column(type="string")
     */
    protected $redirectUrl;

    /**
     * @var \Rcm\Entity\Site
     *
     * @ORM\ManyToOne(targetEntity="Site")
     * @ORM\JoinColumn(
     *     name="siteId",
     *     referencedColumnName="siteId",
     *     onDelete="CASCADE"
     * )
     **/
    protected $site;

    /**
     * @var int|null $siteId
     *
     * @ORM\Column(type="integer", nullable=true)
     */
    protected $siteId = null;

    /**
     * <tracking>
     *
     * @var \DateTime Date object was first created
     *
     * @ORM\Column(type="datetime")
     */
    protected $createdDate;

    /**
     * <tracking>
     *
     * @var string User ID of creator
     *
     * @ORM\Column(type="string", length=255, nullable=false)
     */
    protected $createdByUserId;

    /**
     * <tracking>
     *
     * @var string Short description of create reason
     *
     * @ORM\Column(type="string", length=512, nullable=false)
     */
    protected $createdReason = Tracking::UNKNOWN_REASON;

    /**
     * <tracking>
     *
     * @var \DateTime Date object was modified
     *
     * @ORM\Column(type="datetime")
     */
    protected $modifiedDate;

    /**
     * <tracking>
     *
     * @var string User ID of modifier
     *
     * @ORM\Column(type="string", length=255, nullable=false)
     */
    protected $modifiedByUserId;

    /**
     * <tracking>
     *
     * @var string Short description of create reason
     *
     * @ORM\Column(type="string", length=512, nullable=false)
     */
    protected $modifiedReason = Tracking::UNKNOWN_REASON;

    /**<commit_msg>Disable old redirect tracking columns so they don't cause problems for node. We will be using the immutable history system for tracking.<commit_after><?php

namespace Rcm\Entity;

use Doctrine\ORM\Mapping as ORM;
use Rcm\Exception\InvalidArgumentException;
use Rcm\Tracking\Model\Tracking;
use Zend\Validator\Uri;

/**
 * Site redirects
 *
 * This object contains a list of urls to redirect. For use with the content
 * management system.
 *
 * @category  Reliv
 * @package   Rcm
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   Release: 1.0
 * @link      http://github.com/reliv
 *
 * @ORM\Entity (repositoryClass="Rcm\Repository\Redirect")
 * @ORM\HasLifecycleCallbacks()
 * @ORM\Table(name="rcm_redirects",
 *     indexes={
 *         @ORM\Index(name="redirect_request_url_siteId", columns={"requestUrl", "siteId"})
 *     }
 * )
 */
class Redirect extends ApiModelTrackingAbstract implements Tracking
{
    /**
     * @var int Auto-Incremented Primary Key
     *
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    protected $redirectId;

    /**
     * @var string Request URL
     *
     * @ORM\Column(type="string")
     */
    protected $requestUrl;

    /**
     * @var string Redirect URL
     *
     * @ORM\Column(type="string")
     */
    protected $redirectUrl;

    /**
     * @var \Rcm\Entity\Site
     *
     * @ORM\ManyToOne(targetEntity="Site")
     * @ORM\JoinColumn(
     *     name="siteId",
     *     referencedColumnName="siteId",
     *     onDelete="CASCADE"
     * )
     **/
    protected $site;

    /**
     * @var int|null $siteId
     *
     */
    protected $siteId = null;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var \DateTime Date object was first created
     */
    protected $createdDate;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var string User ID of creator
     */
    protected $createdByUserId;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var string Short description of create reason
     */
    protected $createdReason = Tracking::UNKNOWN_REASON;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var \DateTime Date object was modified
     */
    protected $modifiedDate;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var string User ID of modifier
     */
    protected $modifiedByUserId;

    /**
     * @deprecated This will no longer be stored. Tracking will be done via the immutable history system
     * @var string Short description of create reason
     */
    protected $modifiedReason = Tracking::UNKNOWN_REASON;

    /**
{'fraction_non_alphanumeric': 0.12207792207792208, 'fraction_numerical': 0.004155844155844156, 'mean_word_length': 2.4858177429088713, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '3488692', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1735, 'n_words': 455}