<commit_before><?php

	function miniAutoloader($class) {
	    require __DIR__ . '/../src/' . $class . '.php';
	}

	spl_autoload_register('miniAutoloader');

    $term = isset($_POST['term']) ? $_POST['term'] : null;

?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>StringCalc Demo</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/framy/latest/css/framy.min.css">
</head>
<body>
    <h1>StringCalc Demo</h1>

	<form method="POST">
		Term:
		<input id="term" name="term" type="text" value="<?php echo $term !== null ? $term : '1+(2+3)' ?>">
		<input type="submit" value="Calc">
	</form>

	<?php

		if ($term) {
			$stringCalc = new ChrisKonnertz\StringCalc\StringCalc();

			$result = $stringCalc->calculate($term);

			echo 'Result: '.$result. ' (Type: '.gettype($result).')';
		}

	?>
</body>
</html><commit_msg>New default example term<commit_after><?php

	function miniAutoloader($class) {
	    require __DIR__ . '/../src/' . $class . '.php';
	}

	spl_autoload_register('miniAutoloader');

    $term = isset($_POST['term']) ? $_POST['term'] : null;

?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>StringCalc Demo</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/framy/latest/css/framy.min.css">
</head>
<body>
    <h1>StringCalc Demo</h1>

	<form method="POST">
		Term:
		<input id="term" name="term" type="text" value="<?php echo $term !== null ? $term : '1+(2+max(-3,3))' ?>">
		<input type="submit" value="Calc">
	</form>

	<?php

		if ($term) {
			$stringCalc = new ChrisKonnertz\StringCalc\StringCalc();

			$result = $stringCalc->calculate($term);

			echo 'Result: '.$result. ' (Type: '.gettype($result).')';
		}

	?>
</body>
</html>
{'fraction_non_alphanumeric': 0.22883829538820782, 'fraction_numerical': 0.007589025102159953, 'mean_word_length': 4.056047197640118, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 45, 'https://': 2, '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': '1114407', 'n_tokens_mistral': 718, 'n_tokens_neox': 669, 'n_words': 122}