<commit_before># Default variables
BUILDDIR ?=             /tmp/build/$(NAME)-$(VERSION)/
DESCRIPTION ?=          $(TITLE)
DISK ?=                 /dev/nbd1
DOCKER_NAMESPACE ?=     armbuild/
DOC_URL ?=              https://doc.cloud.online.net
HELP_URL ?=             https://community.cloud.online.net
IS_LATEST ?=            0
NAME ?=                 $(shell basename $(PWD))
S3_URL ?=               s3://test-images
SHELL ?=                /bin/bash
SOURCE_URL ?=           $(shell sh -c "git config --get remote.origin.url | sed 's_<EMAIL>:_https://github.com/_'" || echo https://github.com/online-labs/image-tools)
TITLE ?=                $(NAME)
VERSION ?=              latest
VERSION_ALIASES ?=


# Phonies
.PHONY: build release install install_on_disk publish_on_s3 clean shell re all run
.PHONY: publish_on_s3.tar publish_on_s3.sqsh publish_on_s3.tar.gz travis


# Default action
all: build


# Actions
build: .docker-container.built


info:
	@echo "Makefile variables:"
	@echo "-------------------"
	@echo "- BUILDDIR          $(BUILDDIR)"
	@echo "- DESCRIPTION       $(DESCRIPTION)"
	@echo "- DISK              $(DISK)"
	@echo "- DOCKER_NAMESPACE  $(DOCKER_NAMESPACE)"
	@echo "- DOC_URL           $(DOC_URL)"
	@echo "- HELP_URL          $(HELP_URL)"
	@echo "- IS_LATEST         $(IS_LATEST)"
	@echo "- NAME              $(NAME)"
	@echo "- S3_URL            $(S3_URL)"
	@echo "- SHELL             $(SHELL)"
	@echo "- SOURCE_URL        $(SOURCE_URL)"
	@echo "- TITLE             $(TITLE)"
	@echo "- VERSION           $(VERSION)"
	@echo "- VERSION_ALIASES   $(VERSION_ALIASES)"

release: build<commit_msg>Added computed information<commit_after># Default variables
BUILDDIR ?=             /tmp/build/$(NAME)-$(VERSION)/
DESCRIPTION ?=          $(TITLE)
DISK ?=                 /dev/nbd1
DOCKER_NAMESPACE ?=     armbuild/
DOC_URL ?=              https://doc.cloud.online.net
HELP_URL ?=             https://community.cloud.online.net
IS_LATEST ?=            0
NAME ?=                 $(shell basename $(PWD))
S3_URL ?=               s3://test-images
SHELL ?=                /bin/bash
SOURCE_URL ?=           $(shell sh -c "git config --get remote.origin.url | sed 's_git@github.com:_https://github.com/_'" || echo https://github.com/online-labs/image-tools)
TITLE ?=                $(NAME)
VERSION ?=              latest
VERSION_ALIASES ?=


# Phonies
.PHONY: build release install install_on_disk publish_on_s3 clean shell re all run
.PHONY: publish_on_s3.tar publish_on_s3.sqsh publish_on_s3.tar.gz travis


# Default action
all: build


# Actions
build: .docker-container.built


info:
	@echo "Makefile variables:"
	@echo "-------------------"
	@echo "- BUILDDIR          $(BUILDDIR)"
	@echo "- DESCRIPTION       $(DESCRIPTION)"
	@echo "- DISK              $(DISK)"
	@echo "- DOCKER_NAMESPACE  $(DOCKER_NAMESPACE)"
	@echo "- DOC_URL           $(DOC_URL)"
	@echo "- HELP_URL          $(HELP_URL)"
	@echo "- IS_LATEST         $(IS_LATEST)"
	@echo "- NAME              $(NAME)"
	@echo "- S3_URL            $(S3_URL)"
	@echo "- SHELL             $(SHELL)"
	@echo "- SOURCE_URL        $(SOURCE_URL)"
	@echo "- TITLE             $(TITLE)"
	@echo "- VERSION           $(VERSION)"
	@echo "- VERSION_ALIASES   $(VERSION_ALIASES)"
	@echo
	@echo "Computed information:"
	@echo "---------------------"
	@echo "- Docker image      $(DOCKER_NAMESPACE)$(NAME):$(VERSION)"
	@echo "- S3 URL            $(S3_URL)/$(NAME)-$(VERSION).tar"
	@test -f $(BUILDDIR)rootfs.tar && echo "- Image size        $(shell stat -c %s $(BUILDDIR)rootfs.tar | numfmt --to=iec-i --suffix=B --format=\"%3f\")" || true


release: build
{'fraction_non_alphanumeric': 0.1650485436893204, 'fraction_numerical': 0.0063800277392510405, 'mean_word_length': 2.045608108108108, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7270798', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1228, 'n_words': 260}