<commit_before>.PHONY: docs uiclean uibuild template initnpm uicopy

all: init ui
	
init:
	pip install --upgrade -r requirements.txt
	pyxbgen --binding-root=. -m __init__ --schema-root=./ebu_tt_live/xsd/ -r -u ebutt_all.xsd --module-prefix=ebu_tt_live.bindings

initnpm:
ifeq ("$(wildcard node_modules)","")
	npm install nunjucks@3.2.0
else 
	npm update nunjucks@3.2.0
endif

test:
	python setup.py test<commit_msg>Revert to latest nunjucks now bug fixed<commit_after>.PHONY: docs uiclean uibuild template initnpm uicopy

all: init ui
	
init:
	pip install --upgrade -r requirements.txt
	pyxbgen --binding-root=. -m __init__ --schema-root=./ebu_tt_live/xsd/ -r -u ebutt_all.xsd --module-prefix=ebu_tt_live.bindings

initnpm:
ifeq ("$(wildcard node_modules)","")
	npm install nunjucks
else 
	npm update nunjucks
endif

test:
	python setup.py test
{'fraction_non_alphanumeric': 0.11611374407582939, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 4.184049079754601, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2413310', 'n_tokens_mistral': 345, 'n_tokens_neox': 318, 'n_words': 87}