<commit_before><?php

namespace IBazaar\DataModelBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * App
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="IBazaar\DataModelBundle\Repository\AppRepository")
 */
class App
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
	 * @ORM\Column(type="string")
	 */
	protected $name;

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

	/**
	 * @ORM\Column(type="float")
	 */
	protected $price;

	/**
	 * @ORM\Column(type="string")
	 */
	protected $logoUrl;

	/**
	 * @ORM\Column(type="integer")
	 */
	protected $downloads;

	/**
	 * @ORM\Column(type="datetime")
	 */
	protected $createdAt;

    /**
     * @ORM\Column(type="string")
     */
    protected $marketUrl;

    /**
     * @ORM\ManyToMany(targetEntity="Category", inversedBy="apps", cascade={"all"})
     * @ORM\JoinTable(name="categories_apps",
     *      joinColumns={@ORM\JoinColumn(name="app_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="category_id", referencedColumnName="id")}
     * )
     */
    protected $categories;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return App
     */<commit_msg>Optimizing queries removing lazy loading for app categories.<commit_after><?php

namespace IBazaar\DataModelBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * App
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="IBazaar\DataModelBundle\Repository\AppRepository")
 */
class App
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
	 * @ORM\Column(type="string")
	 */
	protected $name;

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

	/**
	 * @ORM\Column(type="float")
	 */
	protected $price;

	/**
	 * @ORM\Column(type="string")
	 */
	protected $logoUrl;

	/**
	 * @ORM\Column(type="integer")
	 */
	protected $downloads;

	/**
	 * @ORM\Column(type="datetime")
	 */
	protected $createdAt;

    /**
     * @ORM\Column(type="string")
     */
    protected $marketUrl;

    /**
     * @ORM\ManyToMany(targetEntity="Category", inversedBy="apps", cascade={"all"}, fetch="EAGER")
     * @ORM\JoinTable(name="categories_apps",
     *      joinColumns={@ORM\JoinColumn(name="app_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="category_id", referencedColumnName="id")}
     * )
     */
    protected $categories;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return App
     */
{'fraction_non_alphanumeric': 0.1847375690607735, 'fraction_numerical': 0.0, 'mean_word_length': 2.6486146095717884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6635411', 'n_tokens_mistral': 1013, 'n_tokens_neox': 955, 'n_words': 138}