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

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

all: build

fetch: less-$(VERSION).tar.gz
unpack: less-$(VERSION)/
patch: unpack
prepare: less-$(VERSION)/
	mkdir build/
	@touch $@

configure: prepare
	cd build && ../less-$(VERSION)/configure --prefix=$(PREFIX)
	@touch $@

build: configure
	$(MAKE) -C build

install: build
	$(MAKE) -C build install DESTDIR=$(DESTDIR)

clean:
	$(RM) prepare configure
	$(RM) -r build/
	$(RM) -r less-$(VERSION)/

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

less-$(VERSION).tar.gz:
	wget ftp://ftp.gnu.org/gnu/less/less-$(VERSION).tar.gz

less-$(VERSION)/: less-$(VERSION).tar.gz
	tar xzf $<
<commit_msg>Use FETCH instead of wget in base/less<commit_after>.PHONY: all fetch unpack patch build install clean distclean

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

all: build

fetch: less-$(VERSION).tar.gz
unpack: less-$(VERSION)/
patch: unpack
prepare: less-$(VERSION)/
	mkdir build/
	@touch $@

configure: prepare
	cd build && ../less-$(VERSION)/configure --prefix=$(PREFIX)
	@touch $@

build: configure
	$(MAKE) -C build

install: build
	$(MAKE) -C build install DESTDIR=$(DESTDIR)

clean:
	$(RM) prepare configure
	$(RM) -r build/
	$(RM) -r less-$(VERSION)/

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

less-$(VERSION).tar.gz:
	$(FETCH) ftp://ftp.gnu.org/gnu/less/less-$(VERSION).tar.gz > $@

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

{'fraction_non_alphanumeric': 0.18953804347826086, 'fraction_numerical': 0.004076086956521739, 'mean_word_length': 4.186619718309859, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6229101', 'n_tokens_mistral': 578, 'n_tokens_neox': 545, 'n_words': 138}