<commit_before><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace ISL\BlogBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;


/**
 * Description of BlogController
 *
 * @author gberger
 */
class BlogController extends Controller{
    
    public function lireAction($id){
        return new Response('<body>Article '.$id.'</body>');
    }
    
    public function testComplexeAction($mois, $annee, $categorie, $_format){
        $content = '<body>';
        $content .= '<h1>Articles de '.$mois.'/'.$annee.'</h1>';
        $content .= '<p>';
        $content .= 'Contenu de la catégorie <b>'.$categorie.'</b>';
        $content .= ' au format '.$format;
        $content .= '</p>';
        $content .= '</body>';
        
        return new Response($content);
    }
    
}<commit_msg>route complexe avec contraintes et utilisation de paramètres système<commit_after><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace ISL\BlogBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;


/**
 * Description of BlogController
 *
 * @author gberger
 */
class BlogController extends Controller{
    
    public function lireAction($id){
        return new Response('<body>Article '.$id.'</body>');
    }
    
    public function testComplexeAction($mois, $annee, $categorie, $_format){
        $content = '<body>';
        $content .= '<h1>Articles de '.$mois.'/'.$annee.'</h1>';
        $content .= '<p>';
        $content .= 'Contenu de la catégorie <b>'.$categorie.'</b>';
        $content .= ' au format '.$_format;
        $content .= '</p>';
        $content .= '</body>';
        
        return new Response($content);
    }
    
}
{'fraction_non_alphanumeric': 0.14807692307692308, 'fraction_numerical': 0.0019230769230769232, 'mean_word_length': 2.904315196998124, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '4932457', 'n_tokens_mistral': 598, 'n_tokens_neox': 597, 'n_words': 168}