<commit_before>N := 1
SPECIMENS := $(addprefix specimen_,$(shell seq -f '%03.0f' $(N)))

database: $(SPECIMENS)
	cp specimen_001/part.yaml ${XRAY_PART}.yaml

$(SPECIMENS): Makefile.specimen
	mkdir -p $@
	$(MAKE) -C $@ -f ../Makefile.specimen

pushdb:
	cp ${XRAY_PART}.yaml ${XRAY_DATABASE_DIR}/$(XRAY_DATABASE)
	python -m utils.xyaml ${XRAY_PART}.yaml > ${XRAY_DATABASE_DIR}/$(XRAY_DATABASE)/${XRAY_PART}.json

run:
	$(MAKE) clean
	$(MAKE) database
	$(MAKE) pushdb
	touch run.ok

clean:
	rm -rf specimen_[0-9][0-9][0-9]/ *.yaml run.ok
<commit_msg>part: use python3 to fix import error<commit_after>N := 1
SPECIMENS := $(addprefix specimen_,$(shell seq -f '%03.0f' $(N)))

database: $(SPECIMENS)
	cp specimen_001/part.yaml ${XRAY_PART}.yaml

$(SPECIMENS): Makefile.specimen
	mkdir -p $@
	$(MAKE) -C $@ -f ../Makefile.specimen

pushdb:
	cp ${XRAY_PART}.yaml ${XRAY_DATABASE_DIR}/$(XRAY_DATABASE)
	python3 -m utils.xyaml ${XRAY_PART}.yaml > ${XRAY_DATABASE_DIR}/$(XRAY_DATABASE)/${XRAY_PART}.json

run:
	$(MAKE) clean
	$(MAKE) database
	$(MAKE) pushdb
	touch run.ok

clean:
	rm -rf specimen_[0-9][0-9][0-9]/ *.yaml run.ok

{'fraction_non_alphanumeric': 0.193923145665773, 'fraction_numerical': 0.025022341376228777, 'mean_word_length': 4.685279187817259, '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': '7033758', 'n_tokens_mistral': 504, 'n_tokens_neox': 467, 'n_words': 98}