<commit_before>CSS 		:= theme/app.scss

IMAGES 	:= $(wildcard theme/img/*)

SCRIPTS := theme/js/lib/jquery.js \
					 $(wildcard theme/js/*.js) \
					 $(wildcard theme/js/lib/*.js) \
					 $(wildcard theme/js/lib/ace/*.js)

SCRIPTS_OUT	:= static/lib/app.min.js

IMAGES_OUT 	:= $(patsubst theme/img/%,static/img/%,$(IMAGES))

CSS_OUT			:= $(patsubst theme/%.scss,static/lib/%.css,$(CSS))

.PHONY: test all static syncdb

all: static syncdb

static: scss images scripts

syncdb:
	./manage.py db syncdb

test:
	nosetests --with-coverage

docker_test:
	pip install nose
	nosetests --with-coverage

lint:
	pylint -f html *.py | tee linter.html

submodules:
	git submodule update --init

clean:
	rm -f $(CSS_OUT) $(IMAGES_OUT) $(SCRIPTS_OUT)

scss: $(CSS_OUT)

images: static/img $(IMAGES_OUT)

static/img static/lib:
	mkdir -p $@

scripts: $(SCRIPTS_OUT)

static/img/%.png: theme/img/%.png
	pngcrush $< $@

static/img/%.gif: theme/img/%.gif
	gifsicle < $< > $@<commit_msg>makefile: add check as alias for test<commit_after>CSS 		:= theme/app.scss

IMAGES 	:= $(wildcard theme/img/*)

SCRIPTS := theme/js/lib/jquery.js \
					 $(wildcard theme/js/*.js) \
					 $(wildcard theme/js/lib/*.js) \
					 $(wildcard theme/js/lib/ace/*.js)

SCRIPTS_OUT	:= static/lib/app.min.js

IMAGES_OUT 	:= $(patsubst theme/img/%,static/img/%,$(IMAGES))

CSS_OUT			:= $(patsubst theme/%.scss,static/lib/%.css,$(CSS))

.PHONY: test all static syncdb

all: static syncdb

static: scss images scripts

syncdb:
	./manage.py db syncdb

check: test

test:
	nosetests --with-coverage

docker_test:
	pip install nose
	nosetests --with-coverage

lint:
	pylint -f html *.py | tee linter.html

submodules:
	git submodule update --init

clean:
	rm -f $(CSS_OUT) $(IMAGES_OUT) $(SCRIPTS_OUT)

scss: $(CSS_OUT)

images: static/img $(IMAGES_OUT)

static/img static/lib:
	mkdir -p $@

scripts: $(SCRIPTS_OUT)

static/img/%.png: theme/img/%.png
	pngcrush $< $@

static/img/%.gif: theme/img/%.gif
	gifsicle < $< > $@
{'fraction_non_alphanumeric': 0.17334009123162697, 'fraction_numerical': 0.0, 'mean_word_length': 3.40625, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5403584', 'n_tokens_mistral': 878, 'n_tokens_neox': 821, 'n_words': 170}