<commit_before><?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class SocieteChoiceForm extends baseForm {

    protected $interpro_id;

    public function __construct($interpro_id, $defaults = array(), $options = array(), $CSRFSecret = null) {
        $this->interpro_id = $interpro_id;
        parent::__construct($defaults, $options, $CSRFSecret);
    }

    public function configure() {
        $this->setWidget('identifiant', new WidgetSociete(array('interpro_id' => $this->interpro_id)));
        $this->widgetSchema->setLabel('identifiant', 'Sélectionner une societe&nbsp;:');

        $this->setValidator('identifiant', new ValidatorSociete(array('required' => true)));

        $this->validatorSchema['identifiant']->setMessage('required', 'Le choix d\'une societe est obligatoire');

        $this->widgetSchema->setNameFormat('societe[%s]');
    }

    public function configureTypeSociete($types) {
        $this->getWidget('identifiant')->setOption('type_societe', $types);
        $this->getValidator('identifiant')->setOption('type_societe', $types);
    }

    public function getSociete() {
        return $this->getValidator('identifiant')->getDocument();
    }

}<commit_msg>changement de présentation dans les factures<commit_after><?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class SocieteChoiceForm extends baseForm {

    protected $interpro_id;

    public function __construct($interpro_id, $defaults = array(), $options = array(), $CSRFSecret = null) {
        $this->interpro_id = $interpro_id;
        parent::__construct($defaults, $options, $CSRFSecret);
    }

    public function configure() {
        $this->setWidget('identifiant', new WidgetSociete(array('interpro_id' => $this->interpro_id)));
        $this->widgetSchema->setLabel('identifiant', 'Sélectionner une societe&nbsp;:');
        $this->setValidator('identifiant', new ValidatorSociete(array('required' => true)));

        $this->validatorSchema['identifiant']->setMessage('required', 'Le choix d\'une societe est obligatoire');

        $this->widgetSchema->setNameFormat('societe[%s]');
    }

    public function configureTypeSociete($types) {
        $this->getWidget('identifiant')->setOption('type_societe', $types);
        $this->getValidator('identifiant')->setOption('type_societe', $types);
    }

    public function getSociete() {
        return $this->getValidator('identifiant')->getDocument();
    }
    
}
{'fraction_non_alphanumeric': 0.15251572327044025, 'fraction_numerical': 0.0, 'mean_word_length': 4.2044989775051125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '5611930', 'n_tokens_mistral': 772, 'n_tokens_neox': 752, 'n_words': 145}