<commit_before>.PHONY: all fetch unpack patch build install clean distclean

PREFIX?=/usr
DESTDIR?=
VERSION?=2.41
FETCH?=curl

all: build

fetch: XML-Parser-$(VERSION).tar.gz
unpack: XML-Parser-$(VERSION)/
patch: unpack
prepare: XML-Parser-$(VERSION)/

configure: prepare
	cd XML-Parser-$(VERSION); \
		perl Makefile.PL INSTALLDIRS=vendor
	@touch $@

build: configure
	$(MAKE) -C XML-Parser-$(VERSION)

install: build
	$(MAKE) -C XML-Parser-$(VERSION) install DESTDIR=$(DESTDIR)

clean:
	$(RM) configure
	$(RM) -r XML-Parser-$(VERSION)/

distclean: clean
	$(RM) XML-Parser-$(VERSION).tar.gz

XML-Parser-$(VERSION).tar.gz:
	$(FETCH) http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-$(VERSION).tar.gz > $@

XML-Parser-$(VERSION)/: XML-Parser-$(VERSION).tar.gz
	tar xzf $<

<commit_msg>perl/xml-parser: Fixes #9: Add -L flag to curl call<commit_after>.PHONY: all fetch unpack patch build install clean distclean

PREFIX?=/usr
DESTDIR?=
VERSION?=2.41
FETCH?=curl -L

all: build

fetch: XML-Parser-$(VERSION).tar.gz
unpack: | XML-Parser-$(VERSION)/
patch: unpack
prepare: | XML-Parser-$(VERSION)/

configure: prepare
	cd XML-Parser-$(VERSION); \
		perl Makefile.PL INSTALLDIRS=vendor
	@touch $@

build: configure
	$(MAKE) -C XML-Parser-$(VERSION)

install: build
	$(MAKE) -C XML-Parser-$(VERSION) install DESTDIR=$(DESTDIR)

clean:
	$(RM) configure
	$(RM) -r XML-Parser-$(VERSION)/

distclean: clean
	$(RM) XML-Parser-$(VERSION).tar.gz

XML-Parser-$(VERSION).tar.gz:
	$(FETCH) http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-$(VERSION).tar.gz > $@

XML-Parser-$(VERSION)/: XML-Parser-$(VERSION).tar.gz
	tar xzf $<


{'fraction_non_alphanumeric': 0.1889908256880734, 'fraction_numerical': 0.004281345565749235, 'mean_word_length': 4.381578947368421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '779661', 'n_tokens_mistral': 655, 'n_tokens_neox': 620, 'n_words': 129}