<commit_before>#include <stddef.h>

long atol(const char *nptr)
{
	long x = 0;
	for (size_t i = 0; nptr[i] != '\0'; i++) {
		int digit = nptr[i] - '0';
		x = x * 10 + digit;
	}

	return x;
}<commit_msg>Stop at non-digits in atol.<commit_after>#include <stddef.h>

long atol(const char *nptr)
{
	long x = 0;
	for (size_t i = 0; nptr[i] >= '0' && nptr[i] <= '9'; i++) {
		int digit = nptr[i] - '0';
		x = x * 10 + digit;
	}

	return x;
}
{'fraction_non_alphanumeric': 0.21379310344827587, 'fraction_numerical': 0.029885057471264367, 'mean_word_length': 2.963636363636364, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5846083', 'n_tokens_mistral': 221, 'n_tokens_neox': 205, 'n_words': 58}