<commit_before># faad2

FAAD2_VERSION := 2.7
FAAD2_URL := $(SF)/faac/faad2-$(FAAD2_VERSION).tar.gz

PKGS += faad2

$(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
	$(call download,$(FAAD2_URL))

.sum-faad2: faad2-$(FAAD2_VERSION).tar.gz

faad2: faad2-$(FAAD2_VERSION).tar.gz .sum-faad2
	$(UNPACK)
ifndef HAVE_FPU
	(cd $@-$(FAAD2_VERSION) && patch -p1) < $(SRC)/faad2/faad2-fixed.patch
endif
	(cd $@-$(FAAD2_VERSION) && $(CC) -iquote . -E - </dev/null || sed -i 's/-iquote /-I/' libfaad/Makefile.am)
	mv $@-$(FAAD2_VERSION) $@
	touch $@

.faad2: faad2
	cd $< && autoreconf -fiv<commit_msg>contribs: avoid faad2 on ARM<commit_after># faad2

FAAD2_VERSION := 2.7
FAAD2_URL := $(SF)/faac/faad2-$(FAAD2_VERSION).tar.gz

ifeq ($(findstring $(ARCH),arm),)
# FAAD is a lot slower than lavc on ARM. Skip it.
PKGS += faad2
endif

$(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
	$(call download,$(FAAD2_URL))

.sum-faad2: faad2-$(FAAD2_VERSION).tar.gz

faad2: faad2-$(FAAD2_VERSION).tar.gz .sum-faad2
	$(UNPACK)
ifndef HAVE_FPU
	(cd $@-$(FAAD2_VERSION) && patch -p1) < $(SRC)/faad2/faad2-fixed.patch
endif
	(cd $@-$(FAAD2_VERSION) && $(CC) -iquote . -E - </dev/null || sed -i 's/-iquote /-I/' libfaad/Makefile.am)
	mv $@-$(FAAD2_VERSION) $@
	touch $@

.faad2: faad2
	cd $< && autoreconf -fiv
{'fraction_non_alphanumeric': 0.21400472069236823, 'fraction_numerical': 0.041699449252557044, 'mean_word_length': 4.108433734939759, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5871032', 'n_tokens_mistral': 615, 'n_tokens_neox': 597, 'n_words': 106}