<commit_before>#!/bin/sh
DIALOG=whiptail
$DIALOG --passwordbox "Please enter the passhrase to unlock the key" 10 40 2> pass.tmp
PASSPHRASE=`cat pass.tmp`
rm pass.tmp

if ! echo "abc" | gpg --passphrase "$<PASSWORD>" -o /dev/null -as; then
	echo "bad passphrase"
	exit 1
fi

apt-ftparchive packages debian > debian/Packages
apt-ftparchive sources debian > debian/Sources
apt-ftparchive release debian > debian/Release

cat debian/Packages | gzip > debian/Packages.gz
cat debian/Sources | gzip > debian/Sources.gz

# sign release files:
gpg --yes --passphrase "$<PASSWORD>" --clearsign -o debian/InRelease debian/Release
gpg --yes --passphrase "$<PASSWORD>" -abs -o debian/Release.gpg debian/Release

# sign debs
DEBS=`find debian -name "*.deb"`
for deb in $DEBS; do
	dpkg-sig -g "--passphrase \"$<PASSWORD>\"" --sign builder $deb
done

# output the key to the repo that was used to sign them
gpg --yes --output debian/key --armor --export


#  deb http://self.kateadams.eu/ debian/
#  deb-src http://self.kateadams.eu/ debian/
#$ curl self.kateadams.eu/debian/key | sudo apt-key add -
<commit_msg>Use real domain<commit_after>#!/bin/sh
DIALOG=whiptail
$DIALOG --passwordbox "Please enter the passhrase to unlock the key" 10 40 2> pass.tmp
PASSPHRASE=`cat pass.tmp`
rm pass.tmp

if ! echo "abc" | gpg --passphrase "$<PASSWORD>" -o /dev/null -as; then
	echo "bad passphrase"
	exit 1
fi

apt-ftparchive packages debian > debian/Packages
apt-ftparchive sources debian > debian/Sources
apt-ftparchive release debian > debian/Release

cat debian/Packages | gzip > debian/Packages.gz
cat debian/Sources | gzip > debian/Sources.gz

# sign release files:
gpg --yes --passphrase "$<PASSWORD>" --clearsign -o debian/InRelease debian/Release
gpg --yes --passphrase "$<PASSWORD>" -abs -o debian/Release.gpg debian/Release

# sign debs
DEBS=`find debian -name "*.deb"`
for deb in $DEBS; do
	dpkg-sig -g "--passphrase \"$<PASSWORD>\"" --sign builder $deb
done

# output the key to the repo that was used to sign them
gpg --yes --output debian/key --armor --export


#  deb http://kateadams.eu/ debian/
#  deb-src http://kateadams.eu/ debian/
#$ curl kateadams.eu/debian/key | sudo apt-key add -

{'fraction_non_alphanumeric': 0.13630105553005967, 'fraction_numerical': 0.005507113354749885, 'mean_word_length': 3.658119658119658, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '7262372', 'n_tokens_mistral': 817, 'n_tokens_neox': 748, 'n_words': 248}