<commit_before>
headless := true
packer_args := -force
output_directory := "output"
source_path := false

# Base images - Minimal installs
# ------------------------------

macos-10.12:
	time env packer build $(packer_args) \
		-var headless=$(headless) \
		-var output_directory="$(output_directory)" \
		macos-10.12.json

ubuntu-16.04:
	time env packer build $(packer_args) \
		-var headless=$(headless) \
		-var output_directory="$(output_directory)" \
		ubuntu-16.04.json

# Buildkite images - Base images with buildkite and build tools
# -------------------------------------------------------------

macos-buildkite-10.12:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		macos-buildkite.json

ubuntu-buildkite-16.04:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		macos-buildkite.json

# Other images
# -------------------------------------------------------------

vmkite:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		vmkite.json

clean:
	-rm -rf output/
	-rm -rf installers/<commit_msg>Use correct version numbers in template files<commit_after>
headless := true
packer_args := -force
output_directory := "output"
source_path := false

# Base images - Minimal installs
# ------------------------------

macos-10.12:
	time env packer build $(packer_args) \
		-var headless=$(headless) \
		-var output_directory="$(output_directory)" \
		macos-10.12.json

ubuntu-16.04:
	time env packer build $(packer_args) \
		-var headless=$(headless) \
		-var output_directory="$(output_directory)" \
		ubuntu-16.04.json

# Buildkite images - Base images with buildkite and build tools
# -------------------------------------------------------------

macos-buildkite-10.12:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		macos-buildkite-10.12.json

ubuntu-buildkite-16.04:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		macos-buildkite-16.04.json

# Other images
# -------------------------------------------------------------

vmkite:
	packer build $(packer_args) \
		-var headless=$(headless) \
		-var source_path="$(source_path)" \
		-var output_directory="$(output_directory)" \
		vmkite.json

clean:
	-rm -rf output/
	-rm -rf installers/
{'fraction_non_alphanumeric': 0.24414210128495842, 'fraction_numerical': 0.021164021164021163, 'mean_word_length': 2.4066924066924065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '577746', 'n_tokens_mistral': 935, 'n_tokens_neox': 842, 'n_words': 177}