<commit_before><?php

class societeActions extends sfCredentialActions {

    public function executeFullautocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $json = $this->matchCompte(CompteAllView::getInstance()->findByInterpro($interpro, $q, $limit), $q, $limit);
        return $this->renderText(json_encode($json));
    }

    public function executeActifautocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $json = $this->matchCompte(CompteAllView::getInstance()->findByInterproAndStatut($interpro, $q, $limit, SocieteClient::STATUT_ACTIF), $q, $limit);
        return $this->renderText(json_encode($json));
    }

    public function executeAutocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $societes = SocieteAllView::getInstance()->findByInterproAndStatut($interpro, SocieteClient::STATUT_ACTIF, array(SocieteClient::SUB_TYPE_VITICULTEUR, SocieteClient::SUB_TYPE_NEGOCIANT, SocieteClient::SUB_TYPE_COOPERATIVE), $q, $limit);
        $json = $this->matchSociete($societes, $q, $limit);<commit_msg>Ajout de négociant pour qui était ignoré ici<commit_after><?php

class societeActions extends sfCredentialActions {

    public function executeFullautocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $json = $this->matchCompte(CompteAllView::getInstance()->findByInterpro($interpro, $q, $limit), $q, $limit);
        return $this->renderText(json_encode($json));
    }

    public function executeActifautocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $json = $this->matchCompte(CompteAllView::getInstance()->findByInterproAndStatut($interpro, $q, $limit, SocieteClient::STATUT_ACTIF), $q, $limit);
        return $this->renderText(json_encode($json));
    }

    public function executeAutocomplete(sfWebRequest $request) {
        $interpro = $request->getParameter('interpro_id');
        $q = $request->getParameter('q');
        $limit = $request->getParameter('limit', 100);
        $societes = SocieteAllView::getInstance()->findByInterproAndStatut($interpro, SocieteClient::STATUT_ACTIF, array(SocieteClient::SUB_TYPE_VITICULTEUR, SocieteClient::SUB_TYPE_NEGOCIANT, SocieteClient::SUB_TYPE_NEGOCIANT_PUR, SocieteClient::SUB_TYPE_COOPERATIVE), $q, $limit);
        $json = $this->matchSociete($societes, $q, $limit);
{'fraction_non_alphanumeric': 0.15335570469798657, 'fraction_numerical': 0.006040268456375839, 'mean_word_length': 4.950099800399202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '142049', 'n_tokens_mistral': 954, 'n_tokens_neox': 912, 'n_words': 141}