<commit_before><?php
	if(($_GET['action'] === "off" || $_GET['action'] === "on") && is_numeric($_GET['switch'])){
		exec("tdtool --".escapeshellcmd($_GET['action'])." ".escapeshellcmd($_GET['switch'])." && tdtool --list > tdtool-new.txt && mv tdtool-new.txt tdtool.txt");
	}
?><commit_msg>Update action.php<commit_after><?php
	if(is_numeric($_GET['switch'])){
		$switch = escapeshellcmd($_GET['switch']);
		
		switch ($_GET['action']) {
			case "off":
			$action = "f";
			break;
			
			case "on":
			$action = "n";
			break;
			
			case "dim":
			if(is_numeric($_GET['dimlevel'])){
				$dimlevel = escapeshellcmd($_GET['dimlevel']);
			}
			$action = "v ".$dimlevel." -d";
			break;
		}
		exec("tdtool -".$action." ".$switch." && tdtool --list-devices > tdtool-devices-new.txt && mv tdtool-devices-new.txt tdtool-devices.txt");
	}
?>
{'fraction_non_alphanumeric': 0.25059952038369304, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 3, '<': 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': '1613223', 'n_tokens_mistral': 348, 'n_tokens_neox': 304, 'n_words': 51}