<commit_before><?php

namespace App\Services;
use Doctrine\DBAL\Connection;
use PDO;

class TechnosService extends BaseService
{

    public function findOneByCode($code)
    {
        return $this->db->fetchAssoc("SELECT * FROM techno WHERE code = ?",array($code));
    }
    
    public function findSeveralByCode($codes)
    {
    	return $this->db->fetchAssoc(
    			"SELECT * FROM techno WHERE code in (:codes)",
    			array('codes' => $codes), 
    			array('codes' => Connection::PARAM_STR_ARRAY));
    }
    <commit_msg>correction service enregistrer event et rechercher events pour avoir gérer les technos<commit_after><?php

namespace App\Services;
use Doctrine\DBAL\Connection;
use PDO;

class TechnosService extends BaseService
{

    public function findOneByCode($code)
    {
        return $this->db->fetchAssoc("SELECT * FROM techno WHERE code = ?",array($code));
    }
    
    public function findSeveralByCode($codes)
    {
    	$techno_list = $this->db->fetchAll(
    			"SELECT * FROM techno WHERE code in ('".implode("','",$codes)."')" );

    	return $techno_list ;
    }
    
{'fraction_non_alphanumeric': 0.12806539509536785, 'fraction_numerical': 0.0, 'mean_word_length': 3.338582677165354, 'pattern_counts': {'":': 0, '<': 5, '<?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': '652617', 'n_tokens_mistral': 357, 'n_tokens_neox': 345, 'n_words': 83}