<commit_before>#!/opt/local/bin/php56
<?php
	$input = stream_get_contents(STDIN);

	$data = yaml_parse($input);

	if($data !== FALSE) {
		print_r($data);
		echo "\n";
	}
	else {
		echo "invalid YAML document\n";
	}
?><commit_msg>Add line numbers to yams output<commit_after>#!/opt/local/bin/php56
<?php
	$input = stream_get_contents(STDIN);
	$line = explode("\n", $input);

	$i = 0;
	foreach($line as $l) {
		printf("%4d: %s\n", $i, $l);
		$i++;
	}

	$data = yaml_parse($input);

	if($data !== FALSE) {
		print_r($data);
		echo "\n";
	}
	else {
		echo "invalid YAML document\n";
	}
?>
{'fraction_non_alphanumeric': 0.2191780821917808, 'fraction_numerical': 0.010273972602739725, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4782501', 'n_tokens_mistral': 270, 'n_tokens_neox': 245, 'n_words': 50}