<commit_before>#!/bin/bash
set -eo pipefail

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

versions=( "$@" )
if [ ${#versions[@]} -eq 0 ]; then
	versions=( */ )
fi
versions=( "${versions[@]%/}" )

debian="$(curl -fsSL 'https://raw.githubusercontent.com/docker-library/official-images/master/library/debian')"
ubuntu="$(curl -fsSL 'https://raw.githubusercontent.com/docker-library/official-images/master/library/ubuntu')"

travisEnv=
for version in "${versions[@]}"; do
	if echo "$debian" | grep -q "^$version:"; then
		dist='debian'
	elif echo "$ubuntu" | grep -q "^$version:"; then
		dist='ubuntu'
	else
		echo >&2 "error: cannot determine repo for '$version'"<commit_msg>Fix update.sh for 2822-based manifest format<commit_after>#!/bin/bash
set -eo pipefail

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

versions=( "$@" )
if [ ${#versions[@]} -eq 0 ]; then
	versions=( */ )
fi
versions=( "${versions[@]%/}" )

debian="$(curl -fsSL 'https://raw.githubusercontent.com/docker-library/official-images/master/library/debian')"
ubuntu="$(curl -fsSL 'https://raw.githubusercontent.com/docker-library/official-images/master/library/ubuntu')"

travisEnv=
for version in "${versions[@]}"; do
	if echo "$debian" | grep -qE "\b$version\b"; then
		dist='debian'
	elif echo "$ubuntu" | grep -qE "\b$version\b"; then
		dist='ubuntu'
	else
		echo >&2 "error: cannot determine repo for '$version'"
{'fraction_non_alphanumeric': 0.21166306695464362, 'fraction_numerical': 0.005759539236861051, 'mean_word_length': 4.94017094017094, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5947504', 'n_tokens_mistral': 534, 'n_tokens_neox': 468, 'n_words': 118}