<commit_before>cidata.iso: cidata/user-data cidata/meta-data
	mkisofs -R -V cidata -o $@.tmp cidata
	mv $@.tmp $@

cidata/meta-data: .ssh/ssh-vagrant
	@echo --- | tee $@.tmp
	@echo instance-id: vagrant-$(shell date +%s) | tee -a $@.tmp
	mv $@.tmp $@

cidata/user-data:
	@libexec/gen-user-data > cidata/user-data.tmp
	mv cidata/user-data.tmp cidata/user-data

.ssh/ssh-vagrant:
	@ssh-keygen -f .ssh/ssh-vagrant -P ''<commit_msg>depend on ssh vagrant key<commit_after>cidata.iso: cidata/user-data cidata/meta-data
	mkisofs -R -V cidata -o $@.tmp cidata
	mv $@.tmp $@

cidata/meta-data: .ssh/ssh-vagrant
	@echo --- | tee $@.tmp
	@echo instance-id: vagrant-$(shell date +%s) | tee -a $@.tmp
	mv $@.tmp $@

cidata/user-data: .ssh/ssh-vagrant
	libexec/gen-user-data > cidata/user-data.tmp
	mv cidata/user-data.tmp cidata/user-data

.ssh/ssh-vagrant:
	@ssh-keygen -f .ssh/ssh-vagrant -P ''
{'fraction_non_alphanumeric': 0.18820861678004536, 'fraction_numerical': 0.0, 'mean_word_length': 3.184834123222749, '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': '2152411', 'n_tokens_mistral': 434, 'n_tokens_neox': 404, 'n_words': 81}