<commit_before><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Api_Talent
 *
 * @author Gaëtan
 */
namespace App\Model;
class Api_Talent extends \PoireauFramework\Arch\Model{ 
    
}<commit_msg>Update Api_Talent.php<commit_after><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Api_Talent
 *
 * @author Gaëtan
 */
namespace App\Model;
class Api_Talent extends \PoireauFramework\Arch\Model{ 
    public function getTypeById($id){
        $query = $this->database->prepare('SELECT TALENT_NAME,TALENT_FIGHT_EFFECT,TALENT_FIELD_EFFECT FROM TALENT WHERE TALENT_ID = :id');
        $query->bindValue('id', $id, \PDO::PARAM_INT);
        $query->execute();
        $data = $query->fetchAll();
        if(!$data)
            return null;
        return $data;
    }

    public function getTypeByName($name){
        $query = $this->database->prepare('SELECT TALENT_NAME,TALENT_FIGHT_EFFECT,TALENT_FIELD_EFFECT FROM TALENT WHERE TALENT_NAME = :name');
        $query->bindValue('name', $name, \PDO::PARAM_STR);
        $query->execute();
        $data = $query->fetchAll();
        if(!$data)
            return null;
      
}
{'fraction_non_alphanumeric': 0.12129565816678153, 'fraction_numerical': 0.0, 'mean_word_length': 3.2580645161290325, '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': '3375130', 'n_tokens_mistral': 452, 'n_tokens_neox': 454, 'n_words': 119}