<commit_before><?php

abstract class Mouvement extends acCouchdbDocumentTree
{
    /*const TYPE_HASH_CONTRAT_VRAC = 'vrac_details';
    const TYPE_HASH_CONTRAT_RAISIN = VracClient::TYPE_TRANSACTION_RAISINS;
    const TYPE_HASH_CONTRAT_MOUT = VracClient::TYPE_TRANSACTION_MOUTS;*/

    protected $origines = array();

    public function setProduitHash($value) {
        $this->_set('produit_hash',  $value);
        if(!$this->produit_libelle && $this->exist('denomination_complementaire')) {
            $this->produit_libelle = $this->getProduitConfig()->getLibelleFormat($this->denomination_complementaire, "%format_libelle%");
        } elseif(!$this->exist('denomination_complementaire')) {
            $this->produit_libelle = $this->getProduitConfig()->getLibelleFormat(array(), "%format_libelle%");
        }
    }

    public function facturer() {
        if($this->isFacturable()) {
            $this->facture = 1;
        }
    }

    public function defacturer() {
        $this->facture = 0;
    }

    public function getMD5Key() {
        $key = $this->getDocument()->identifiant . $this->produit_hash . $this->type_hash . $this->detail_identifiant;
        $key.= uniqid();<commit_msg>Correction bug<commit_after><?php

abstract class Mouvement extends acCouchdbDocumentTree
{
    /*const TYPE_HASH_CONTRAT_VRAC = 'vrac_details';
    const TYPE_HASH_CONTRAT_RAISIN = VracClient::TYPE_TRANSACTION_RAISINS;
    const TYPE_HASH_CONTRAT_MOUT = VracClient::TYPE_TRANSACTION_MOUTS;*/

    protected $origines = array();

    public function setProduitHash($value) {
        $this->_set('produit_hash',  $value);
        if(!$this->produit_libelle && $this->exist('denomination_complementaire')) {
            $this->produit_libelle = $this->getProduitConfig()->getLibelleFormat($this->denomination_complementaire, "%format_libelle%");
        } elseif(!$this->produit_libelle && !$this->exist('denomination_complementaire')) {
            $this->produit_libelle = $this->getProduitConfig()->getLibelleFormat(array(), "%format_libelle%");
        }
    }

    public function facturer() {
        if($this->isFacturable()) {
            $this->facture = 1;
        }
    }

    public function defacturer() {
        $this->facture = 0;
    }

    public function getMD5Key() {
        $key = $this->getDocument()->identifiant . $this->produit_hash . $this->type_hash . $this->detail_identifiant;
        $key.= uniqid();
{'fraction_non_alphanumeric': 0.1440329218106996, 'fraction_numerical': 0.0024691358024691358, 'mean_word_length': 3.5781544256120528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 42, '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': '6079699', 'n_tokens_mistral': 799, 'n_tokens_neox': 780, 'n_words': 107}