<commit_before>.PHONY: build push run-docker run deploy clean clean-workers

PROJECT = $(shell gcloud config get-value project)
IMAGE_SHORT_NAMES = $(shell ls -1 images)
BUILT = $(foreach image,$(IMAGE_SHORT_NAMES),build/images/$(image)/_BUILT)
PUSHED = $(foreach image,$(IMAGE_SHORT_NAMES),build/images/$(image)/_PUSHED)

.PHONY: $(IMAGE_SHORT_NAMES)

build/images/%/_BUILT: images/%/Dockerfile $(shell find images/$*)
	mkdir -p $(dir $@)
	cd images/$* && time docker build . -t $*
	touch $@

build/images/%/_PUSHED: IMAGE = gcr.io/$(PROJECT)/$*:$(shell docker images -q --no-trunc $* | sed -e 's,[^:]*:,,')
build/images/%/_PUSHED: build/images/%/_BUILT
	docker tag $* $(IMAGE)
	docker push $(IMAGE)
	echo $(IMAGE) > $@
<commit_msg>fix (#4982)<commit_after>.PHONY: build push run-docker run deploy clean clean-workers

PROJECT = $(shell gcloud config get-value project)
IMAGE_SHORT_NAMES = $(shell ls -1 images)
BUILT = $(foreach image,$(IMAGE_SHORT_NAMES),build/images/$(image)/_BUILT)
PUSHED = $(foreach image,$(IMAGE_SHORT_NAMES),build/images/$(image)/_PUSHED)

.PHONY: $(IMAGE_SHORT_NAMES)

build/images/%/_BUILT: images/%/Dockerfile $(shell find images/$*)
	mkdir -p $(dir $@)
	cd images/$* && docker build . -t $*
	touch $@

build/images/%/_PUSHED: IMAGE = gcr.io/$(PROJECT)/$*:$(shell docker images -q --no-trunc $* | sed -e 's,[^:]*:,,')
build/images/%/_PUSHED: build/images/%/_BUILT
	docker tag $* $(IMAGE)
	docker push $(IMAGE)
	echo $(IMAGE) > $@

{'fraction_non_alphanumeric': 0.19808087731322824, 'fraction_numerical': 0.00411240575736806, 'mean_word_length': 4.770750988142293, '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': '4466125', 'n_tokens_mistral': 579, 'n_tokens_neox': 540, 'n_words': 124}