<commit_before><?php

namespace Mapbender\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Applicaton entity
 *
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table(name="mb_application")
 * @ORM\HasLifecycleCallbacks
 */
class Application {

    const SOURCE_YAML = 1;
    const SOURCE_DB = 2;

    private $preparedElements;
    private $screenshotPath;

    /**
     * @var integer $source
     */
    protected $source;

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=128, unique=true)
     */
    protected $title;

    /**
     * @ORM\Column(type="string", length=255, unique=true)
     */
    protected $slug;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    protected $description;

    /**
     * @ORM\Column(length=1024)
     */
    protected $template;

    /**
     * @ORM\OneToMany(targetEntity="Element", mappedBy="application")
     *     cascade={"persist" })
     */
    protected $elements;

    /**
     * @ORM\OneToMany(targetEntity="Element", mappedBy="application")
     *      cascade={"persist"})
     */
    protected $layersets;

    /**
     * @ORM\ManyToOne(targetEntity="FOM\UserBundle\Entity\User")
     *     cascade={"persist"})
     */
    protected $owner;
<commit_msg>correctly set objectrelationship for layersets<commit_after><?php

namespace Mapbender\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Applicaton entity
 *
 * @author <NAME> <<EMAIL>>
 *
 * @ORM\Entity
 * @ORM\Table(name="mb_application")
 * @ORM\HasLifecycleCallbacks
 */
class Application {

    const SOURCE_YAML = 1;
    const SOURCE_DB = 2;

    private $preparedElements;
    private $screenshotPath;

    /**
     * @var integer $source
     */
    protected $source;

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=128, unique=true)
     */
    protected $title;

    /**
     * @ORM\Column(type="string", length=255, unique=true)
     */
    protected $slug;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    protected $description;

    /**
     * @ORM\Column(length=1024)
     */
    protected $template;

    /**
     * @ORM\OneToMany(targetEntity="Element", mappedBy="application")
     *     cascade={"persist" })
     */
    protected $elements;

    /**
     * @ORM\OneToMany(targetEntity="Layerset", mappedBy="application")
     *      cascade={"persist"})
     */
    protected $layersets;

    /**
     * @ORM\ManyToOne(targetEntity="FOM\UserBundle\Entity\User")
     *     cascade={"persist"})
     */
    protected $owner;

{'fraction_non_alphanumeric': 0.15842924847664183, 'fraction_numerical': 0.008124576844955992, 'mean_word_length': 2.6436498150431564, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '5317743', 'n_tokens_mistral': 997, 'n_tokens_neox': 943, 'n_words': 152}