<commit_before><?php
//Récupération et assainissement de $_GET et $_POST
$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
$args = array(
    'intervention' => FILTER_SANITIZE_STRING,
    'description' => FILTER_SANITIZE_STRING,
    'date' => FILTER_SANITIZE_STRING,
    'vehicule_FK' => FILTER_VALIDATE_INT
);
$post = filter_input_array(INPUT_POST, $args);

//Connexion à la DB
include_once './modeles/modele_db.php';
$database = new Db();
$database->connect();

//Si données saisies dans le formulaire
if(!is_null($post)){
    //Verification des données et update dans la DB
    foreach ($post as $key => $value) {<commit_msg>sanitize int instead of validating<commit_after><?php
//Récupération et assainissement de $_GET et $_POST
$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
$args = array(
    'intervention' => FILTER_SANITIZE_STRING,
    'description' => FILTER_SANITIZE_STRING,
    'date' => FILTER_SANITIZE_STRING,
    'vehicule_FK' => FILTER_SANITIZE_NUMBER_INT
);
$post = filter_input_array(INPUT_POST, $args);

//Connexion à la DB
include_once './modeles/modele_db.php';
$database = new Db();
$database->connect();

//Si données saisies dans le formulaire
if(!is_null($post)){
    //Verification des données et update dans la DB
    foreach ($post as $key => $value) {
{'fraction_non_alphanumeric': 0.1339421613394216, 'fraction_numerical': 0.0, 'mean_word_length': 5.173708920187793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2134193', 'n_tokens_mistral': 490, 'n_tokens_neox': 475, 'n_words': 114}