<commit_before><?php

class chgtdenomComponents extends sfComponents {

    public function executeMonEspace(sfWebRequest $request) {
        $this->campagne = $request->getParameter('campagne',ConfigurationClient::getInstance()->getCampagneManager()->getCurrent());
        $this->enCours = null;
        $chgts = ChgtDenomClient::getInstance()->getHistory($this->etablissement->identifiant);
        foreach($chgts as $chgt) {
            if (!$chgt->isValide() && $chgt->campagne == $this->campagne) {
                $this->enCours = $chgt;
                break;
            }<commit_msg>component de chgtDenom pour avoir comme campagne par defaut AAAA-AAAA<commit_after><?php

class chgtdenomComponents extends sfComponents {

    public function executeMonEspace(sfWebRequest $request) {
        $defaultCampagne = ConfigurationClient::getInstance()->getCampagneManager()->getCurrent().'-'.(ConfigurationClient::getInstance()->getCampagneManager()->getCurrent()+1);
        $this->campagne = $request->getParameter('campagne',$defaultCampagne);

        $this->enCours = null;
        $chgts = ChgtDenomClient::getInstance()->getHistory($this->etablissement->identifiant);
        foreach($chgts as $chgt) {

            if (!$chgt->isValide() && $chgt->campagne == $this->campagne) {
                $this->enCours = $chgt;
                break;
            }
{'fraction_non_alphanumeric': 0.14692982456140352, 'fraction_numerical': 0.0007309941520467836, 'mean_word_length': 3.401929260450161, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '2501285', 'n_tokens_mistral': 382, 'n_tokens_neox': 385, 'n_words': 61}