<commit_before><?php
/**
 * This file is part of the Global Trading Technologies Ltd ad-poller package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * (c) fduch <<EMAIL>>
 *
 * Date: 11.08.17
 */

namespace Gtt\ADPoller\Entity;

use DateTime;
use Doctrine\ORM\Mapping as ORM;

/**
 * Active directory poll task
 *
 * @author fduch <<EMAIL>>
 *
 * @ORM\Table(name="poll_task", options={"comment": "Poll task representation"})
 * @ORM\Entity(repositoryClass="Gtt\ADPoller\ORM\Repository\PollTaskRepository")
 */
class PollTask
{
    /**
     * Status for the running state
     */
    const STATUS_RUNNING = 1;

    /**
     * Status for the state when task was successfully finished
     */
    const STATUS_SUCCEED = 2;

    /**
     * Status for the state when task was failed
     */
    const STATUS_FAILED = 3;

    /**
     * @var int
     *
     * @ORM\Id
     * @ORM\Column(type="integer", options={"unsigned"=true})
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * Name of current poller
     *
     * @var string
     *
     * @ORM\Column(name="poller_name", type="string", length=255, nullable=false,
     *     options={"comment": "Name of the poller"})
     */
    private $pollerName;

    /**
     * Invocation ID
     *
     * @var string
     *
     * @ORM\Column(name="invocation_id", type="string", length=40, nullable=false,
     *     options={"comment": "Invocation ID of current poll task"})
     */
    private $invocationId;

    /**
     * Maximum value of uSNChanged attribute of the AD entities being processed during current task
     *
     * @var integer
     *
     * @ORM\Column(name="max_usnchanged_value", type="integer", nullable=false,
     *     options={"comment": "Max usnChanged value for current poll run", "unsigned"=true})
     */
    private $maxUSNChangedValue;

    /**
     * Root DSE DNS host name used to perform the sync
     *
     * @var string
     *
     * @ORM\Column(name="root_dse_dns_host_name", type="string", length=255, nullable=false,
     *     options={"comment": "Root DSE DNS host name used to perform the sync"})
     */
    private $rootDseDnsHostName;

    /**
     * Flag holds information about full/partial sync provided by current task
     *
     * @ORM\Column(type="boolean", name="is_full_sync", options={"comment": "Type of current poll task: full or incremental sync"})
     *
     * @var boolean<commit_msg>change base table name and max_usnchanged_value type<commit_after><?php
/**
 * This file is part of the Global Trading Technologies Ltd ad-poller package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * (c) fduch <<EMAIL>>
 *
 * Date: 11.08.17
 */

namespace Gtt\ADPoller\Entity;

use DateTime;
use Doctrine\ORM\Mapping as ORM;

/**
 * Active directory poll task
 *
 * @author fduch <<EMAIL>>
 *
 * @ORM\Table(name="active_directory_poll_task", options={"comment": "Poll task representation"})
 * @ORM\Entity(repositoryClass="Gtt\ADPoller\ORM\Repository\PollTaskRepository")
 */
class PollTask
{
    /**
     * Status for the running state
     */
    const STATUS_RUNNING = 1;

    /**
     * Status for the state when task was successfully finished
     */
    const STATUS_SUCCEED = 2;

    /**
     * Status for the state when task was failed
     */
    const STATUS_FAILED = 3;

    /**
     * @var int
     *
     * @ORM\Id
     * @ORM\Column(type="integer", options={"unsigned"=true})
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * Name of current poller
     *
     * @var string
     *
     * @ORM\Column(name="poller_name", type="string", length=255, nullable=false,
     *     options={"comment": "Name of the poller"})
     */
    private $pollerName;

    /**
     * Invocation ID
     *
     * @var string
     *
     * @ORM\Column(name="invocation_id", type="string", length=40, nullable=false,
     *     options={"comment": "Invocation ID of current poll task"})
     */
    private $invocationId;

    /**
     * Maximum value of uSNChanged attribute of the AD entities being processed during current task
     *
     * @var integer
     *
     * @ORM\Column(name="max_usnchanged_value", type="bigint", nullable=false,
     *     options={"comment": "Max usnChanged value for current poll run", "unsigned"=true})
     */
    private $maxUSNChangedValue;

    /**
     * Root DSE DNS host name used to perform the sync
     *
     * @var string
     *
     * @ORM\Column(name="root_dse_dns_host_name", type="string", length=255, nullable=false,
     *     options={"comment": "Root DSE DNS host name used to perform the sync"})
     */
    private $rootDseDnsHostName;

    /**
     * Flag holds information about full/partial sync provided by current task
     *
     * @ORM\Column(type="boolean", name="is_full_sync", options={"comment": "Type of current poll task: full or incremental sync"})
     *
     * @var boolean
{'fraction_non_alphanumeric': 0.12881623005712034, 'fraction_numerical': 0.006696868229269254, 'mean_word_length': 2.758697261287935, 'pattern_counts': {'":': 12, '<': 13, '<?xml version=': 0, '>': 11, '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': '5289591', 'n_tokens_mistral': 1610, 'n_tokens_neox': 1551, 'n_words': 437}