<commit_before># REGEX
REGEX_VERSION := 0.13
REGEX_URL := $(CONTRIB_VIDEOLAN)/regex-$(REGEX_VERSION).tar.gz

ifndef HAVE_WIN32
# Part of POSIX.2001
PKGS_FOUND += regex
endif

$(TARBALLS)/regex-$(REGEX_VERSION).tar.gz:
	$(call download,$(REGEX_URL))

.sum-regex: regex-$(REGEX_VERSION).tar.gz

regex: regex-$(REGEX_VERSION).tar.gz .sum-regex
	$(UNPACK)
	$(MOVE)

.regex: regex
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
	cd $< && $(MAKE) subirs=
	cd $< && $(AR) rcvu libregex.a regex.o && $(RANLIB) libregex.a && cp -v regex.h $(PREFIX)/include && cp -v libregex.a $(PREFIX)/lib
	touch $@<commit_msg>contrib: fix regex installation<commit_after># REGEX
REGEX_VERSION := 0.13
REGEX_URL := $(CONTRIB_VIDEOLAN)/regex-$(REGEX_VERSION).tar.gz

ifndef HAVE_WIN32
# Part of POSIX.2001
PKGS_FOUND += regex
endif

$(TARBALLS)/regex-$(REGEX_VERSION).tar.gz:
	$(call download,$(REGEX_URL))

.sum-regex: regex-$(REGEX_VERSION).tar.gz

regex: regex-$(REGEX_VERSION).tar.gz .sum-regex
	$(UNPACK)
	$(MOVE)

.regex: regex
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
	cd $< && $(MAKE) subirs=
	cd $< && $(AR) rcvu libregex.a regex.o && $(RANLIB) libregex.a
	mkdir -p $(PREFIX)/include/ && cp $</regex.h $(PREFIX)/include/
	mkdir -p $(PREFIX)/lib/ && cp $</libregex.a $(PREFIX)/lib/
	touch $@
{'fraction_non_alphanumeric': 0.202660406885759, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 4.560869565217391, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2855246', 'n_tokens_mistral': 531, 'n_tokens_neox': 508, 'n_words': 105}