<commit_before><?php
class Model_Medoc extends CI_Model
{
    public function getAllMedicaments(){
        $sql= $this->db->query("SELECT * FROM medicament");
        return $sql->result();
    }
    public function creerMedicament($depot,$nom,$famille,$compo,$effets,$contreindic,$prix)
            {
                $sql = $this->db->query("INSERT INTO medicament value('".$depot."','".$nom."','".$famille."','".$compo."','".$effets."','".$contreindic."','".$prix."')");
            }
    public function modifMedicament($depot,$nom,$famille,$compo,$effets,$contreindic,$prix)
            {
                $sql = $this->db->query("UPDATE medicament SET MED_DEPOTLEGAL='".$depot."',MED_NOMCOMMERCIAL='".$nom."',FAM_CODE='".$famille."',MED_COMPOSITION='".$compo."',MED_EFFETS='".$effets."',MED_CONTREINDIC='".$contreindic."',MED_PRIXECHANTILLON='".$prix."'");
            }
}


<commit_msg>changement de famille par code dans model_medoc<commit_after><?php
class Model_Medoc extends CI_Model
{
    public function getAllMedicaments(){
        $sql= $this->db->query("SELECT * FROM medicament");
        return $sql->result();
    }
    public function creerMedicament($depot,$nom,$famille,$compo,$effets,$contreindic,$prix)
            {
                $sql = $this->db->query("INSERT INTO medicament value('".$depot."','".$nom."','".$famille."','".$compo."','".$effets."','".$contreindic."','".$prix."')");
            }
    public function modifMedicament($depot,$nom,$famille,$compo,$effets,$contreindic,$prix)
            {
                $sql = $this->db->query("UPDATE medicament SET MED_DEPOTLEGAL='".$depot."',MED_NOMCOMMERCIAL='".$nom."',FAM_CODE='".$code."',MED_COMPOSITION='".$compo."',MED_EFFETS='".$effets."',MED_CONTREINDIC='".$contreindic."',MED_PRIXECHANTILLON='".$prix."'");
            }
}



{'fraction_non_alphanumeric': 0.2283507997793712, 'fraction_numerical': 0.0, 'mean_word_length': 3.7116883116883117, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4103512', 'n_tokens_mistral': 654, 'n_tokens_neox': 639, 'n_words': 66}