<commit_before>#include <string.h>
#undef strstr

char *
strstr(const char *s1, const char *s2)
{
	const char *p, *q;
	int c;

	c = *s2++;
	if (c == '\0')
		return (char *) s1;

	while (*s1) {
		if (*s1 != c) {
			++s1;
		} else {
			p = s1++;
			for (q = s2; *q && *s1 == *q; ++s1, ++q)
				;
			if (*q == '\0')
				return (char *) p;
		}
	}
	return NULL;
}<commit_msg>[lib/c] Fix strstr()<commit_after>#include <string.h>
#undef strstr

char *
strstr(const char *s1, const char *s2)
{
	const char *p, *q;
	int c0, c;

	c0 = *s2;
	if (c0 == '\0')
		return (char *) s1;
	--s1;
	while ((s1 = strchr(s1 + 1, c0)) != NULL) {
		p = s1;
		q = s2;
		for (;;) {
			if ((c = *++p) == '\0')
				return (char *) s1;
			if (c != *++q)
				break;
		}
	}

	return NULL;
}
{'fraction_non_alphanumeric': 0.24010554089709762, 'fraction_numerical': 0.0395778364116095, 'mean_word_length': 2.388392857142857, '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': '3348369', 'n_tokens_mistral': 412, 'n_tokens_neox': 371, 'n_words': 103}