<commit_before>BOOTSTRAP = bootstrap.py
BUILDOUT_DEPLOY = buildout_deploy.cfg

build:
	npm install
	npm run build
	pip install -r requirements.txt

run:
	FLASK_APP=src/server.py flask run

tests:
	npm test<commit_msg>Adding index rule<commit_after>ES_URI=http://172.16.31.10:9200/
BOOTSTRAP = bootstrap.py
BUILDOUT_DEPLOY = buildout_deploy.cfg

# if possible have a virtualenv setup first
build:
	npm install
	npm run build
	pip install -r requirements.txt

run:
	FLASK_APP=src/server.py flask run

tests:
	npm test

index:
	cd scripts/elastic_search && ES_URI=$(ES_URI) python index.py
{'fraction_non_alphanumeric': 0.08361774744027303, 'fraction_numerical': 0.02218430034129693, 'mean_word_length': 4.811881188118812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5137751', 'n_tokens_mistral': 241, 'n_tokens_neox': 211, 'n_words': 57}