<commit_before><?php

namespace ITDoors\HaccpBundle\Entity;

use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;

/**
 * PointGroupCharacteristicRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class PointGroupCharacteristicRepository extends EntityRepository
{
    /**
     * Returns Characteristics by GroupId
     *
     * @param int $groupId
     *
     * @return Query
     */
    public function getCharacteristicsQueryByGroupId($groupId)
    {
        return $this->createQueryBuilder('pgc')
            ->select('pgc')
            ->where('pgc.groupId = :groupId')
            ->setParameter(':groupId', $groupId)
            ->getQuery();
    }

    /**
     * Returns data for backup
     *
     * @return array
     */
    public function getBackupData()
    {
        return $this->createQueryBuilder('obj')
            ->select('obj.id as id')
            ->addSelect('obj.name as name')
            ->addSelect('obj.description as description')
            ->addSelect('obj.unit as unit')
            ->addSelect('obj.dataType as data_type')
            ->addSelect('obj.allowValueMax as allow_value_max')
            ->addSelect('obj.allowValueMin as allow_value_min')
            ->addSelect('obj.criticalValueTop as critical_value_top')
            ->addSelect('obj.criticalValueBottom as critical_value_bottom')
            ->addSelect('obj.criticalColorTop as critical_color_top')
            ->addSelect('obj.criticalColorBottom as critical_color_bottom')
            ->addSelect('obj.criticalColorMiddle as critical_color_middle')
            ->addSelect('obj.inputType as input_type')
            ->getQuery()
            ->getArrayResult();
    }
}<commit_msg>#backup<commit_after><?php

namespace ITDoors\HaccpBundle\Entity;

use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;

/**
 * PointGroupCharacteristicRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class PointGroupCharacteristicRepository extends EntityRepository
{
    /**
     * Returns Characteristics by GroupId
     *
     * @param int $groupId
     *
     * @return Query
     */
    public function getCharacteristicsQueryByGroupId($groupId)
    {
        return $this->createQueryBuilder('pgc')
            ->select('pgc')
            ->where('pgc.groupId = :groupId')
            ->setParameter(':groupId', $groupId)
            ->getQuery();
    }

    /**
     * Returns data for backup
     *
     * @return array
     */
    public function getBackupData()
    {
        return $this->createQueryBuilder('obj')
            ->select('obj.id as id')
            ->addSelect('obj.name as name')
            ->addSelect('obj.groupId as point_group_id')
            ->addSelect('obj.description as description')
            ->addSelect('obj.unit as unit')
            ->addSelect('obj.dataType as data_type')
            ->addSelect('obj.allowValueMax as allow_value_max')
            ->addSelect('obj.allowValueMin as allow_value_min')
            ->addSelect('obj.criticalValueTop as critical_value_top')
            ->addSelect('obj.criticalValueBottom as critical_value_bottom')
            ->addSelect('obj.criticalColorTop as critical_color_top')
            ->addSelect('obj.criticalColorBottom as critical_color_bottom')
            ->addSelect('obj.criticalColorMiddle as critical_color_middle')
            ->addSelect('obj.inputType as input_type')
            ->getQuery()
            ->getArrayResult();
    }
}
{'fraction_non_alphanumeric': 0.1150070126227209, 'fraction_numerical': 0.0, 'mean_word_length': 2.455426356589147, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 46, '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': '3523845', 'n_tokens_mistral': 975, 'n_tokens_neox': 946, 'n_words': 201}