<commit_before>.PHONY: html run-all test help

EXAMPLES_DEPS = \
		URI \
		Pod::To::HTML \
		LWP::Simple \
		Algorithm::Soundex \
		DBIish \
		File::Temp \
		Text::VimColour \
		HTTP::Easy \
		Web::Request \
		Term::ANSIColor \
		Term::termios

html: install-deps
	@echo "*** Generating HTML pages ***"
	perl6 htmlify.pl

html-nohighlight: install-deps
	@echo "*** Generating HTML pages (without syntax highlighting) ***"
	perl6 htmlify.pl --no-highlight

run-all: install-deps
	perl6 bin/run-examples.pl

web-server:
	perl app.pl daemon

test: install-deps
	prove --exec perl6 -r t

install-deps:
	@echo "*** Installing dependencies ***"
	for dep in $(EXAMPLES_DEPS);\
	do\
	    perl6 -e "use $$dep" 2> /dev/null;\
	    if [ $$? != 0 ];\
	    then\
		${HOME}/.rakudobrew/bin/panda install $$dep;\
	    fi;\
	done

help:
	@echo "Usage: make [html|test]"
	@echo ""
	@echo "Options:"
	@echo "   html:              generate the HTML documentation"
	@echo "   html-nohighlight:  generate HTML without syntax highlighting"
	@echo "   run-all:           run all examples"
	@echo "   test:              test the supporting software"
	@echo "   web-server:        display HTML on localhost:3000"<commit_msg>Don't test dependencies when installing them<commit_after>.PHONY: html run-all test help

EXAMPLES_DEPS = \
		URI \
		Pod::To::HTML \
		LWP::Simple \
		Algorithm::Soundex \
		DBIish \
		File::Temp \
		Text::VimColour \
		HTTP::Easy \
		Web::Request \
		Term::ANSIColor \
		Term::termios

html: install-deps
	@echo "*** Generating HTML pages ***"
	perl6 htmlify.pl

html-nohighlight: install-deps
	@echo "*** Generating HTML pages (without syntax highlighting) ***"
	perl6 htmlify.pl --no-highlight

run-all: install-deps
	perl6 bin/run-examples.pl

web-server:
	perl app.pl daemon

test: install-deps
	prove --exec perl6 -r t

install-deps:
	@echo "*** Installing dependencies ***"
	for dep in $(EXAMPLES_DEPS);\
	do\
	    perl6 -e "use $$dep" 2> /dev/null;\
	    if [ $$? != 0 ];\
	    then\
		panda --notests install $$dep;\
	    fi;\
	done

help:
	@echo "Usage: make [html|test]"
	@echo ""
	@echo "Options:"
	@echo "   html:              generate the HTML documentation"
	@echo "   html-nohighlight:  generate HTML without syntax highlighting"
	@echo "   run-all:           run all examples"
	@echo "   test:              test the supporting software"
	@echo "   web-server:        display HTML on localhost:3000"
{'fraction_non_alphanumeric': 0.13995859213250517, 'fraction_numerical': 0.009109730848861283, 'mean_word_length': 2.804724409448819, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2570082', 'n_tokens_mistral': 928, 'n_tokens_neox': 858, 'n_words': 231}