<commit_before>#!/bin/sh

if [ "$#" -ne "2" ]; then
	echo "Missing arguments [swift_version] and [script_command]"
	exit 1
fi

SWIFT_VERSION="$1"
SCRIPT_COMMAND="$2"
CONTAINER_TAG="swift:$SWIFT_VERSION"
VOLUME_SRC="$(pwd)"
VOLUME_TARGET="/CI"

docker run \
	--mount src="$VOLUME_SRC",target="$VOLUME_TARGET",type=bind \
	--rm \
	"$CONTAINER_TAG" \
	bash -c "cd $VOLUME_TARGET && $SCRIPT_COMMAND"
<commit_msg>Improve linux build script<commit_after>#!/bin/sh

if [ "$#" -ne "2" ]; then
	echo "Missing arguments [swift_version] and [script_command]"
	exit 1
fi

SWIFT_VERSION="$1"
SCRIPT_COMMAND="$2"
CONTAINER_TAG="swift:$SWIFT_VERSION"
VOLUME_SRC="$(pwd)"
VOLUME_TARGET="/$(basename "$VOLUME_SRC")"

docker run \
	--mount src="$VOLUME_SRC",target="$VOLUME_TARGET",type=bind \
	--rm \
	"$CONTAINER_TAG" \
	bash -c "cd $VOLUME_TARGET && $SCRIPT_COMMAND"

{'fraction_non_alphanumeric': 0.18309859154929578, 'fraction_numerical': 0.009389671361502348, 'mean_word_length': 5.824, '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': '2061720', 'n_tokens_mistral': 374, 'n_tokens_neox': 349, 'n_words': 64}