<commit_before>#!/bin/bash
noBuild=("3.8.0/" "3.10.0/")
GitFolder="mono-docker"
GitUrl="https://github.com/mono/docker.git"
FolderGlob="*/"
ImageName="aspnetarmel/armel-mono"
SedCommands='
s/FROM debian/FROM armel\/debian/
/.*deb http:\/\/download.mono-project.com\/repo\/debian [0-9]\+-security main.*/d
s/MAINTAINER .*/MAINTAINER <https:\/\/github.com\/StefanSchoof\/aspnetarmel>/
'

rm -rf $GitFolder
git clone $GitUrl $GitFolder
docker pull armel/debian:wheezy
cd $GitFolder
sed -i -e "$SedCommands" ${FolderGlob}Dockerfile
for version in $(ls -1d $FolderGlob)
do
	if [[ ! " ${noBuild[@]} " =~ " ${version} " ]]; then
		docker build -t ${ImageName}:${version%/} $version
		docker push ${ImageName}:${version%/}
	fi
done
<commit_msg>run with no cache if package updates available<commit_after>#!/bin/bash
noBuild=("3.8.0/" "3.10.0/")
GitFolder="mono-docker"
GitUrl="https://github.com/mono/docker.git"
FolderGlob="*/"
ImageName="aspnetarmel/armel-mono"
SedCommands='
s/FROM debian/FROM armel\/debian/
/.*deb http:\/\/download.mono-project.com\/repo\/debian [0-9]\+-security main.*/d
s/MAINTAINER .*/MAINTAINER <https:\/\/github.com\/StefanSchoof\/aspnetarmel>/
'

rm -rf $GitFolder
git clone $GitUrl $GitFolder
docker pull armel/debian:wheezy
cd $GitFolder
sed -i -e "$SedCommands" ${FolderGlob}Dockerfile
for version in $(ls -1d $FolderGlob)
do
	if [[ ! " ${noBuild[@]} " =~ " ${version} " ]]; then
		docker build -t ${ImageName}:${version%/} $version
		docker run ${ImageName}:${version%/} /bin/bash -c "apt-get -q update && apt-get -s upgrade" | grep "^0 upgraded" || \
			docker build --no-cache -t ${ImageName}:${version%/} $version
		docker push ${ImageName}:${version%/}
	fi
done

{'fraction_non_alphanumeric': 0.20650887573964496, 'fraction_numerical': 0.01242603550295858, 'mean_word_length': 4.300940438871473, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1502081', 'n_tokens_mistral': 702, 'n_tokens_neox': 648, 'n_words': 139}