<commit_before><?php

/*
* This file is part of the Integrated package.
*
* (c) e-Active B.V. <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Integrated\Bundle\ContentBundle\Document\Channel;

use Symfony\Component\Validator\Constraints as Assert;

use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique;

use Integrated\Common\Content\Channel\ChannelInterface;

/**
 * Channel document
 *
 * @author <NAME> <<EMAIL>>
 *
 * @ODM\Document(collection="channels")
 * @MongoDBUnique(fields="id")
 */
class Channel implements ChannelInterface
{
    /**
     * @var string
     * @ODM\Id(strategy="NONE")
     */
    protected $id = null;

    /**
     * @var string the name of the channel
     * @Assert\NotBlank()
     * @ODM\String
     * @ODM\Index
     */
    protected $name;

    /**
     * @var array
     * @ODM\Collection
     */
    protected $domains;

    /**
     * @var mixed[]<commit_msg>INTEGRATED-229 Channel collection name should be singular<commit_after><?php

/*
* This file is part of the Integrated package.
*
* (c) e-Active B.V. <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Integrated\Bundle\ContentBundle\Document\Channel;

use Symfony\Component\Validator\Constraints as Assert;

use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique;

use Integrated\Common\Content\Channel\ChannelInterface;

/**
 * Channel document
 *
 * @author <NAME> <<EMAIL>>
 *
 * @ODM\Document(collection="channel")
 * @MongoDBUnique(fields="id")
 */
class Channel implements ChannelInterface
{
    /**
     * @var string
     * @ODM\Id(strategy="NONE")
     */
    protected $id = null;

    /**
     * @var string the name of the channel
     * @Assert\NotBlank()
     * @ODM\String
     * @ODM\Index
     */
    protected $name;

    /**
     * @var array
     * @ODM\Collection
     */
    protected $domains;

    /**
     * @var mixed[]
{'fraction_non_alphanumeric': 0.12846118928733546, 'fraction_numerical': 0.0013617793917385383, 'mean_word_length': 3.1273408239700373, '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': '5601616', 'n_tokens_mistral': 689, 'n_tokens_neox': 673, 'n_words': 173}