<commit_before>ROOTFS = build/root

all: $(ROOTFS)

submit: $(ROOTFS)
	solvent submitproduct rootfs $<

clean:
	sudo rm -fr build

build/pipdownload.frozencorrectly: Makefile
	-rm -fr build/pipdownload
	-mkdir -p build/pipdownload
	for spec in $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY); do echo $$spec | grep == || ( echo "spec $$spec does not have a ==" && exit -1 ); done
	pip2tgz build/pipdownload $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY)
	rm -f build/pipspecs.regexes
	for spec in $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY); do echo $$spec | sed 's/==/-/' >> build/pipspecs.regexes; done
	rm -f build/unfrozen.violations
	for filename in `ls build/pipdownload`; do echo $$filename | grep -f build/pipspecs.regexes || ( echo "filename $$filename was downloaded, but does not have a frozen spec" && echo $$filename > build/unfrozen.violations ); done
	test ! -e build/unfrozen.violations
	touch $@

$(ROOTFS): build/pipdownload.frozencorrectly
	echo "Bringing source"
	-sudo mv $(ROOTFS)/ $(ROOTFS).tmp/
	-mkdir $(@D)
	sudo solvent bring --repositoryBasename=rootfs-basic --product=rootfs --destination=$(ROOTFS).tmp
	echo "Installing development packages"
	sudo chroot $(ROOTFS).tmp yum install $(FEDORA_PACKAGES_TO_INSTALL) --assumeyes
	sudo chroot $(ROOTFS).tmp pip install $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY)
	sudo mv $(ROOTFS).tmp $(ROOTFS)<commit_msg>submit as root<commit_after>ROOTFS = build/root

all: $(ROOTFS)

submit: $(ROOTFS)
	sudo solvent submitproduct rootfs $<

clean:
	sudo rm -fr build

build/pipdownload.frozencorrectly: Makefile
	-rm -fr build/pipdownload
	-mkdir -p build/pipdownload
	for spec in $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY); do echo $$spec | grep == || ( echo "spec $$spec does not have a ==" && exit -1 ); done
	pip2tgz build/pipdownload $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY)
	rm -f build/pipspecs.regexes
	for spec in $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY); do echo $$spec | sed 's/==/-/' >> build/pipspecs.regexes; done
	rm -f build/unfrozen.violations
	for filename in `ls build/pipdownload`; do echo $$filename | grep -f build/pipspecs.regexes || ( echo "filename $$filename was downloaded, but does not have a frozen spec" && echo $$filename > build/unfrozen.violations ); done
	test ! -e build/unfrozen.violations
	touch $@

$(ROOTFS): build/pipdownload.frozencorrectly
	echo "Bringing source"
	-sudo mv $(ROOTFS)/ $(ROOTFS).tmp/
	-mkdir $(@D)
	sudo solvent bring --repositoryBasename=rootfs-basic --product=rootfs --destination=$(ROOTFS).tmp
	echo "Installing development packages"
	sudo chroot $(ROOTFS).tmp yum install $(FEDORA_PACKAGES_TO_INSTALL) --assumeyes
	sudo chroot $(ROOTFS).tmp pip install $(PYTHON_PACKAGES_TO_INSTALL) $(PYTHON_PACKAGES_TO_INSTALL_INDIRECT_DEPENDENCY)
	sudo mv $(ROOTFS).tmp $(ROOTFS)
{'fraction_non_alphanumeric': 0.12236842105263158, 'fraction_numerical': 0.0013157894736842105, 'mean_word_length': 5.582251082251083, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1280162', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1071, 'n_words': 268}