<commit_before><?php
/**
 * @author JKetelaar
 */

namespace Parabot\BDN\BotBundle\Service;

use Doctrine\ORM\EntityManager;
use Parabot\BDN\BotBundle\Entity\Types\Type;

class TypeHelper {

    /**
     * @var string[] $types
     */
    private static $types = [
        'client' => 'BDNBotBundle:Types\Client',
    ];

    private $entityManager;

    /**
     * TypeHelper constructor.
     *
     * @param EntityManager $entityManager
     */
    public function __construct(EntityManager $entityManager)
    {
        $this->entityManager = $entityManager;
    }

    /**
     * @param string $type
     *
     * @return bool
     */<commit_msg>[BUGFIX] Added types to service<commit_after><?php
/**
 * @author JKetelaar
 */

namespace Parabot\BDN\BotBundle\Service;

use Doctrine\ORM\EntityManager;
use Parabot\BDN\BotBundle\Entity\Types\Type;

class TypeHelper {

    /**
     * @var string[] $types
     */
    private static $types = [
        'client' => 'BDNBotBundle:Types\Client',
        'randoms' => 'BDNBotBundle:Types\Randoms',
    ];

    private $entityManager;

    /**
     * TypeHelper constructor.
     *
     * @param EntityManager $entityManager
     */
    public function __construct(EntityManager $entityManager)
    {
        $this->entityManager = $entityManager;
    }

    /**
     * @param string $type
     *
     * @return bool
     */
{'fraction_non_alphanumeric': 0.13202042304886943, 'fraction_numerical': 0.0, 'mean_word_length': 2.4214463840399003, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3947722', 'n_tokens_mistral': 437, 'n_tokens_neox': 429, 'n_words': 80}