<commit_before>OWNER   ?= $(USER)
REPO    ?= $(notdir $(CURDIR))
TAG     ?= latest
IMAGE   ?= $(OWNER)/$(REPO):$(TAG)
NAME    ?= $(REPO)
DOCKER  ?= $(shell which docker)
OPTIONS ?= --interactive --rm --tty

up: run

attach diff inspect logs port stats top:
	@$(DOCKER) $@ $(NAME)

build:
	$(DOCKER) $@ --force-rm --tag $(IMAGE) $(CURDIR)

cleanup:
	@$(DOCKER) images -q -f "dangling=true" | \
		xargs -I {} $(DOCKER) rmi {}
	@$(DOCKER) volume ls -q -f "dangling=true" | \
		xargs -I {} $(DOCKER) volume rm {}

destroy: stop rm

history pull:
	@$(DOCKER) $@ $(IMAGE)

kill pause restart start stop unpause:
	@$(DOCKER) $@ $(NAME) | \
		xargs -I {} echo " ---> $@ container '{}'"

ps:
	@$(DOCKER) $@ -a --filter=name=$(NAME)

purge: stop rm rmi cleanup

push:
	$(DOCKER) login
	$(DOCKER) $@ $(IMAGE)

rebuild: stop rm rmi build

rm:
	@$(DOCKER) $@ --force --volumes $(NAME) | \
		xargs -I {} echo " ---> remove container '{}'"

rmi:
	@$(DOCKER) $@ $(IMAGE) | \
		xargs -I {} echo " ---> {}"

run:
	$(DOCKER) $@ $(OPTIONS) --name $(NAME) $(IMAGE)

shell:
	@$(DOCKER) exec -it $(NAME) sh -c "/bin/bash || /bin/sh"

supervisorctl:
	@$(DOCKER) exec -it $(NAME) $@

.PHONY: attach build cleanup destroy diff history inspect kill \
	logs pause port ps pull purge push rebuild restart rm rmi \
	run shell start stats stop supervisorctl top unpause up<commit_msg>Update Dockerfile.mk<commit_after>OWNER   ?= $(USER)
REPO    ?= $(notdir $(CURDIR))
TAG     ?= latest
IMAGE   ?= $(OWNER)/$(REPO):$(TAG)
NAME    ?= $(REPO)
DOCKER  ?= $(shell which docker)
OPTIONS ?= --interactive --rm --tty

up: run

attach diff inspect logs port stats top:
	@$(DOCKER) $@ $(NAME)

build:
	$(DOCKER) $@ --force-rm --tag $(IMAGE) $(CURDIR)

cleanup:
	@$(DOCKER) images -q -f "dangling=true" | \
		xargs -I {} $(DOCKER) rmi {}
	@$(DOCKER) volume ls -q -f "dangling=true" | \
		xargs -I {} $(DOCKER) volume rm {}

destroy: stop rm

history pull:
	@$(DOCKER) $@ $(IMAGE)

kill pause restart start stop unpause:
	@$(DOCKER) $@ $(NAME) | \
		xargs -I {} echo " ---> $@ container '{}'"

ps:
	@$(DOCKER) $@ -a --filter=name=$(NAME)

purge: stop rm rmi cleanup

push:
	$(DOCKER) login
	$(DOCKER) $@ $(IMAGE)

rebuild: rmi build

rm:
	@$(DOCKER) $@ --force --volumes $(NAME) | \
		xargs -I {} echo " ---> remove container '{}'"

rmi:
	@$(DOCKER) $@ $(IMAGE) | \
		xargs -I {} echo " ---> {}"

run:
	$(DOCKER) $@ $(OPTIONS) --name $(NAME) $(IMAGE)

shell:
	@$(DOCKER) exec -it $(NAME) sh -c "/bin/bash || /bin/sh"

supervisorctl:
	@$(DOCKER) exec -it $(NAME) $@

.PHONY: attach build cleanup destroy diff history inspect kill \
	logs pause port ps pull purge push rebuild restart rm rmi \
	run shell start stats stop supervisorctl top unpause up
{'fraction_non_alphanumeric': 0.21109057301293901, 'fraction_numerical': 0.0, 'mean_word_length': 3.2480376766091053, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7607145', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1066, 'n_words': 318}