<commit_before><?php

class etablissementActions extends sfCredentialActions {

 public function executeAjout(sfWebRequest $request) {
        $this->societe = $this->getRoute()->getSociete();
        $this->etablissement = EtablissementClient::getInstance()->createEtablissementFromSociete($this->societe);
        $this->processFormEtablissement($request);        
        $this->setTemplate('modification');    
    }    
    
    public function executeModification(sfWebRequest $request) {
        $this->etablissement = $this->getRoute()->getEtablissement();
        $this->societe = $this->etablissement->getSociete();
        $this->processFormEtablissement($request);
    }
    
     protected function processFormEtablissement(sfWebRequest $request) {<commit_msg>maj protection de la modif des etb par url<commit_after><?php

class etablissementActions extends sfCredentialActions {

 public function executeAjout(sfWebRequest $request) {
        $this->societe = $this->getRoute()->getSociete();
        $this->applyRights();
        if(!($this->modification && !$this->reduct_rights)){
            $this->forward('acVinCompte','forbidden');
        }
        $this->etablissement = EtablissementClient::getInstance()->createEtablissementFromSociete($this->societe);
        $this->processFormEtablissement($request);        
        $this->setTemplate('modification');    
    }    
    
    public function executeModification(sfWebRequest $request) {
        $this->etablissement = $this->getRoute()->getEtablissement();
        $this->societe = $this->etablissement->getSociete();
        $this->applyRights();
        if(!($this->modification && !$this->reduct_rights)){
          $this->forward('acVinCompte','forbidden');
        }
        $this->processFormEtablissement($request);
    }
    
     protected function processFormEtablissement(sfWebRequest $request) {
{'fraction_non_alphanumeric': 0.1389920424403183, 'fraction_numerical': 0.0, 'mean_word_length': 3.633906633906634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '1452782', 'n_tokens_mistral': 550, 'n_tokens_neox': 551, 'n_words': 72}