<commit_before>.PHONY: all paths supervisord

SHELL=/bin/bash

# Supervisord only runs under Python 2, but that is no problem, even
# if everything else runs under Python 3.
SUPERVISORD=supervisord

all: supervisord

paths:
	mkdir -p log run
	mkdir -p log/sv_child

supervisord: paths
	$(SUPERVISORD) -c supervisord.conf

logs:
	rm -f log/*.log
	touch `cat supervisord.conf | grep "\.log" | cut -d '=' -f 2`
	tail -F log/*.log 2>/dev/null &

monitor: | logs supervisord<commit_msg>Create log directories prior to monitoring logs<commit_after>.PHONY: all paths supervisord

SHELL=/bin/bash

# Supervisord only runs under Python 2, but that is no problem, even
# if everything else runs under Python 3.
SUPERVISORD=supervisord

all: supervisord

paths:
	mkdir -p log run
	mkdir -p log/sv_child

supervisord: paths
	$(SUPERVISORD) -c supervisord.conf

logs: paths
	rm -f log/*.log
	touch `cat supervisord.conf | grep "\.log" | cut -d '=' -f 2`
	tail -F log/*.log 2>/dev/null &

monitor: | logs supervisord
{'fraction_non_alphanumeric': 0.10778443113772455, 'fraction_numerical': 0.007984031936127744, 'mean_word_length': 3.776190476190476, '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': '1415750', 'n_tokens_mistral': 381, 'n_tokens_neox': 361, 'n_words': 126}