<commit_before>#!/bin/bash
set -e

declare -A aliases
aliases=(
	[master]='3 latest'
)

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

versions=( */ )
versions=( "${versions[@]%/}" )
url='git://github.com/baptistedonaux/docker-images'

echo '# maintainer: <NAME> <<EMAIL>> (@baptistedonaux)'

for version in "${versions[@]}"; do
	commit="$(cd "$version" && git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
	fullVersion="$(grep -m1 'ENV HHVM_VERSION' "$version/Dockerfile" | cut -d' ' -f3 | sed 's/~/-/g')"

	versionAliases=()
	while [ "$fullVersion" != "$version" -a "${fullVersion%[.-]*}" != "$fullVersion" ]; do
		versionAliases+=( $fullVersion )
		fullVersion="${fullVersion%[.-]*}"
	done
	versionAliases+=( $version ${aliases[$version]} )

	echo
	for va in "${versionAliases[@]}"; do
		if [ $va != "master" ] ; then
			echo "$va: ${url}@${commit} $version"
		fi
	done
done<commit_msg>fix path generated in generate-stackbrew-library.sh<commit_after>#!/bin/bash
set -e

declare -A aliases
aliases=(
	[master]='3 latest'
)

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

versions=( */ )
versions=( "${versions[@]%/}" )
url='git://github.com/baptistedonaux/docker-images'

echo '# maintainer: <NAME> <<EMAIL>> (@baptistedonaux)'

for version in "${versions[@]}"; do
	commit="$(cd "$version" && git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
	fullVersion="$(grep -m1 'ENV HHVM_VERSION' "$version/Dockerfile" | cut -d' ' -f3 | sed 's/~/-/g')"

	versionAliases=()
	while [ "$fullVersion" != "$version" -a "${fullVersion%[.-]*}" != "$fullVersion" ]; do
		versionAliases+=( $fullVersion )
		fullVersion="${fullVersion%[.-]*}"
	done
	versionAliases+=( $version ${aliases[$version]} )

	echo
	for va in "${versionAliases[@]}"; do
		if [ $va != "master" ] ; then
			echo "$va: ${url}@${commit} hhvm/$version"
		fi
	done
done
{'fraction_non_alphanumeric': 0.24434389140271492, 'fraction_numerical': 0.006033182503770739, 'mean_word_length': 4.57422969187675, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3490659', 'n_tokens_mistral': 785, 'n_tokens_neox': 730, 'n_words': 181}