<commit_before><?php

// Path to data folder from SimpleSignUp root
$data_path = '../../server_data/ssu/';

// Set timezone for timestamps (default = UTC)
date_default_timezone_set('UTC');

function cleanInputVariables() {
  foreach ($_REQUEST as $key=>$value) {
    $_REQUEST[$key] = str_replace(array('"', ',' , ':', ';', '{', '}', '[', ']', '=' ), '', str_replace("'", '’', trim($value)));
  }
}

?><commit_msg>Filter the special characters & and ~<commit_after><?php

// Path to data folder from SimpleSignUp root
$data_path = '../../server_data/ssu/';

// Set timezone for timestamps (default = UTC)
date_default_timezone_set('UTC');

function cleanInputVariables() {
  foreach ($_REQUEST as $key=>$value) {
    $_REQUEST[$key] = str_replace(array('"', ',' , '~', ';', '{', '}', '[', ']', '=', '&'), '', str_replace("'", '’', trim($value)));
  }
}

?>
{'fraction_non_alphanumeric': 0.2570093457943925, 'fraction_numerical': 0.0, 'mean_word_length': 4.675496688741722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4844047', 'n_tokens_mistral': 296, 'n_tokens_neox': 302, 'n_words': 59}