<commit_before><?php
class Recoltant extends BaseRecoltant {
	protected $_tiers_extend = null;

    public function __toString() {
        return $this->getNom() . " - Récoltant";
    }

    public function isDeclarantDR() {

        return true;
    }

    public function isDeclarantStock() {

        return true;
    }

    public function isDeclarantStockPropriete() {
        if(parent::isDeclarantStockPropriete()) {

            return true;
        }

        $met = $this->getMetteurEnMarche();
        if($met && $this->isCategoriePropriete($met->categorie)) {

            return true;
        }

        return false;
    }

    public function isDeclarantStockNegoce() { 

        return false;
    }

    public function isDeclarantContratForSignature() {

        return true;
    }
    <commit_msg>Fixe bug si met inactif<commit_after><?php
class Recoltant extends BaseRecoltant {
	protected $_tiers_extend = null;

    public function __toString() {
        return $this->getNom() . " - Récoltant";
    }

    public function isDeclarantDR() {

        return true;
    }

    public function isDeclarantStock() {

        return true;
    }

    public function isDeclarantStockPropriete() {
        if(parent::isDeclarantStockPropriete()) {

            return true;
        }

        $met = $this->getMetteurEnMarche();
        if($met && $met->isActif() && $this->isCategoriePropriete($met->categorie)) {

            return true;
        }

        return false;
    }

    public function isDeclarantStockNegoce() { 

        return false;
    }

    public function isDeclarantContratForSignature() {

        return true;
    }
    
{'fraction_non_alphanumeric': 0.10186859553948162, 'fraction_numerical': 0.0, 'mean_word_length': 2.1800766283524906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '6739854', 'n_tokens_mistral': 532, 'n_tokens_neox': 479, 'n_words': 101}