<commit_before>.PHONY: all clean

include ../conf.mk

K=31
tree=tree.nw
match=index_match.txt
CPP_ASS=$(PROP_DIR)/prophyle_assignment/prophyle_assignment
PY_ASS=$(PROP_DIR)/prophyle_assignment.py

all:
	$(CPP_ASS) -f sam -m h1 -A $tree $K $match | sort -k 3 | sort >_test_c.sam
	$(PY_ASS) -f sam -m h1 -A $tree $K $match | sort -k 3 | sort >_test_py.sam
	diff _test_c.sam _test_py.sam > diff_sam
	$(C_ASS) -k kraken -m c1 -D $tree $K $match | sort -k 3 | sort -k 2 >_test_c.kra
	$(PY_ASS) -k kraken -m c1 -D $tree $K $match | sort -k 3 | sort -k 2 >_test_py.kra
	diff _test_c.kra _test_py.kra > diff_kra
	# CHECK DIFF
	@for f in diff_*.txt ; do test `wc -c < $$f` -eq 0 || (echo "file $$f is not empty" && exit 1) ; done

clean:
	rm -f _test_* diff_*.txt<commit_msg>Typo<commit_after>.PHONY: all clean

include ../conf.mk

K=31
tree=tree.nw
match=index_match.txt
CPP_ASS=$(PROP_DIR)/prophyle_assignment/prophyle_assignment
PY_ASS=$(PROP_DIR)/prophyle_assignment.py

all:
	$(CPP_ASS) -f sam -m h1 -A $(tree) $(K) $(match) | sort -k 3 | sort >_test_c.sam
	$(PY_ASS) -f sam -m h1 -A $(tree) $(K) $(match) | sort -k 3 | sort >_test_py.sam
	diff _test_c.sam _test_py.sam > diff_sam.txt
	$(CPP_ASS) -f kraken -m c1 -D $(tree) $(K) $(match) | sort -k 3 | sort -k 2 >_test_c.kra
	$(PY_ASS) -f kraken -m c1 -D $(tree) $(K) $(match) | sort -k 3 | sort -k 2 >_test_py.kra
	diff _test_c.kra _test_py.kra > diff_kra.txt
	# CHECK DIFF
	@for f in diff_*.txt ; do test `wc -c < $$f` -eq 0 || (echo "file $$f is not empty" && exit 1) ; done

clean:
	rm -f _test_* diff_*.txt
{'fraction_non_alphanumeric': 0.16955684007707128, 'fraction_numerical': 0.01798330122029544, 'mean_word_length': 3.388732394366197, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7041027', 'n_tokens_mistral': 722, 'n_tokens_neox': 703, 'n_words': 211}