<commit_before>srcdir = src
icons = $(png_icons) $(srcdir)/favicon.ico
png_icons = icon-16.png icon-32.png $(srcdir)/apple-touch-icon-114.png $(srcdir)/apple-touch-icon-144.png
converter = convert
converter_input_flags = -density 288 -background none
converter_output_flags = -format png -colors 256 -depth 8
optimizer = optipng

build:
	jekyll build --config config.yml

server:
	jekyll serve --watch --config config.yml,config.development.yml

init:
	bundle
	npm install -g karma

test:
	karma start --single-run

karma:
	karma start

icons: $(icons)

src/favicon.ico: icon-16.png icon-32.png
	$(converter) $^ $@
	rm -f $^

$(png_icons): $(srcdir)/img/icon.svg
	$(converter) $(converter_input_flags) $^ $(converter_output_flags) -resize $(shell sed -E 's/.*-([0-9]+)\.png/\1x\1/' <<< $@) $@
	$(optimizer) $@

clean:
	rm -f $(icons)

.PHONY: build server init test karma icons clean<commit_msg>Use DEBUG flag for Makefile<commit_after>srcdir = src
ifndef DEBUG
	jekyll_config_files = config.yml
else
	jekyll_config_files = config.yml,config.development.yml
endif
icons = $(png_icons) $(srcdir)/favicon.ico
png_icons = icon-16.png icon-32.png $(srcdir)/apple-touch-icon-114.png $(srcdir)/apple-touch-icon-144.png
converter = convert
converter_input_flags = -density 288 -background none
converter_output_flags = -format png -colors 256 -depth 8
optimizer = optipng

build:
	jekyll build --config $(jekyll_config_files)

server:
	jekyll serve --watch --config $(jekyll_config_files)

init:
	bundle
	npm install -g karma

test:
	karma start --single-run

karma:
	karma start

icons: $(icons)

src/favicon.ico: icon-16.png icon-32.png
	$(converter) $^ $@
	rm -f $^

$(png_icons): $(srcdir)/img/icon.svg
	$(converter) $(converter_input_flags) $^ $(converter_output_flags) -resize $(shell sed -E 's/.*-([0-9]+)\.png/\1x\1/' <<< $@) $@
	$(optimizer) $@

clean:
	rm -f $(icons)

.PHONY: build server init test karma icons clean
{'fraction_non_alphanumeric': 0.15729166666666666, 'fraction_numerical': 0.026041666666666668, 'mean_word_length': 4.23433242506812, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4340005', 'n_tokens_mistral': 769, 'n_tokens_neox': 714, 'n_words': 173}