<commit_before><?php
/**
 * User: <NAME>
 * Date: 6/21/13
 * Time: 4:14 PM
 */

namespace Cms\CoreBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
 * Class Theme
 * @package Cms\CoreBundle\Document
 * @MongoDB\EmbeddedDocument
 */
class Theme extends Base {

    /**
     * @MongoDB\String
     */
    private $parentId;

    /**
     * @MongoDB\String
     */
    private $name;

    /**
     * @MongoDB\String
     */
    private $description;

    /**
     * @MongoDB\Boolean
     */
    private $hasComponents;

    /**
     * @MongoDB\Collection
     */
    private $layouts;

    /**
     * @MongoDB\Collection
     */
    private $images;

    public function __construct()
    {
        $this->setState('draft');
        $this->setHasComponents(false);
        $this->layouts = array();
    }

    /**
     * Set parentId
     *
     * @param string $parentId
     * @return self
     */
    public function setParentId($parentId)
    {
        $this->parentId = $parentId;
        return $this;
    }

    /**
     * Get parentId
     *<commit_msg>set theme constructor to include Single, Loop and Static layouts<commit_after><?php
/**
 * User: <NAME>
 * Date: 6/21/13
 * Time: 4:14 PM
 */

namespace Cms\CoreBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
 * Class Theme
 * @package Cms\CoreBundle\Document
 * @MongoDB\EmbeddedDocument
 */
class Theme extends Base {

    /**
     * @MongoDB\String
     */
    private $parentId;

    /**
     * @MongoDB\String
     */
    private $name;

    /**
     * @MongoDB\String
     */
    private $description;

    /**
     * @MongoDB\Boolean
     */
    private $hasComponents;

    /**
     * @MongoDB\Collection
     */
    private $layouts;

    /**
     * @MongoDB\Collection
     */
    private $images;

    public function __construct()
    {
        $this->setState('draft');
        $this->setHasComponents(false);
        $this->layouts = array('Single', 'Loop', 'Static');
    }

    /**
     * Set parentId
     *
     * @param string $parentId
     * @return self
     */
    public function setParentId($parentId)
    {
        $this->parentId = $parentId;
        return $this;
    }

    /**
     * Get parentId
     *
{'fraction_non_alphanumeric': 0.1442521083000444, 'fraction_numerical': 0.007101642254771416, 'mean_word_length': 1.9046391752577319, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4424754', 'n_tokens_mistral': 762, 'n_tokens_neox': 730, 'n_words': 139}