<commit_before>CWD=$(shell pwd)

.PHONY: test

all: install serve

install: cherryepg-init

cherryepg-init: cherryepg-clean cherryepg-install

cherryepg-clean:
	@echo "Cleaning cherryepg"
	rm -rf cherryepg
	rm -f cherryEPG.tgz

cherryepg-get: cherryepg-download cherryepg-deps-download

cherryepg-download:
	@echo "Downloading cherryepg"
	wget http://epg.cherryhill.eu/download/cherryEPG.tgz
	tar xvzf cherryEPG.tgz
	cd $(CWD)/cherryepg/packages/; \
	tar xvzf DVB-Carousel-0.22.tar.gz; \
	tar xvzf DVB-Epg-0.50.tar.gz

cherryepg-install: cherryepg-get cherryepg-mods-install cherryepg-deps-install

cherryepg-deps-download: digest-download sqlite-download

digest-download: 
	@echo "Downloading Digest-CRC"
	cd $(CWD)/cherryepg/packages/; \
	wget http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/Digest-CRC-0.18.tar.gz; \
	tar xvzf Digest-CRC-0.18.tar.gz

sqlite-download: 
	@echo "Downloading SQLite"
	cd $(CWD)/cherryepg/packages/; \
	wget http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-1.42.tar.gz; \
	tar xvzf DBD-SQLite-1.42.tar.gz

cherryepg-deps-install: digest-install sqlite-install

digest-install:
	@echo "Installing Digest-CRC"<commit_msg>Replaced wget with curl<commit_after>CWD=$(shell pwd)

.PHONY: test

all: install serve

install: cherryepg-init

cherryepg-init: cherryepg-clean cherryepg-install

cherryepg-clean:
	@echo "Cleaning cherryepg"
	rm -rf cherryepg
	rm -f cherryEPG.tgz

cherryepg-get: cherryepg-download cherryepg-deps-download

cherryepg-download:
	@echo "Downloading cherryepg"
	curl http://epg.cherryhill.eu/download/cherryEPG.tgz -s -o cherryEPG.tgz; \
	tar xvzf cherryEPG.tgz; \
	cd $(CWD)/cherryepg/packages/; \
	tar xvzf DVB-Carousel-0.22.tar.gz; \
	tar xvzf DVB-Epg-0.50.tar.gz

cherryepg-install: cherryepg-get cherryepg-mods-install cherryepg-deps-install

cherryepg-deps-download: digest-download sqlite-download

digest-download: 
	@echo "Downloading Digest-CRC"
	cd $(CWD)/cherryepg/packages/; \
	curl http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/Digest-CRC-0.18.tar.gz -s -o Digest-CRC-0.18.tar.gz; \
	tar xvzf Digest-CRC-0.18.tar.gz

sqlite-download: 
	@echo "Downloading SQLite"
	cd $(CWD)/cherryepg/packages/; \
	curl http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-1.42.tar.gz -s -o DBD-SQLite-1.42.tar.gz; \
	tar xvzf DBD-SQLite-1.42.tar.gz

cherryepg-deps-install: digest-install sqlite-install

digest-install:
	@echo "Installing Digest-CRC"
{'fraction_non_alphanumeric': 0.14080459770114942, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 4.056016597510373, 'pattern_counts': {'":': 0, '<': 3, '<?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': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1098118', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1062, 'n_words': 167}