<commit_before><?php
require('htmLawed/htmLawed.php');

$content = htmLawed($_POST['mytextarea']);

$file = getcwd().'/content.html';
if (!file_put_contents($file, $content)) {
	header('Location: index.php?success=no');
}else{
	header('Location: index.php?success=yes');
}
?><commit_msg>Safe mode<commit_after><?php
require('htmLawed/htmLawed.php');

$config = array('safe'=>1);
$content = htmLawed($_POST['mytextarea']);

$file = getcwd().'/content.html';
if (!file_put_contents($file, $content)) {
	header('Location: index.php?success=no');
}else{
	header('Location: index.php?success=yes');
}
?>
{'fraction_non_alphanumeric': 0.22909698996655517, 'fraction_numerical': 0.0016722408026755853, 'mean_word_length': 8.507936507936508, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1402151', 'n_tokens_mistral': 230, 'n_tokens_neox': 217, 'n_words': 31}