<commit_before>#!/bin/bash -e

time=$(date +%Y-%m-%d)
DIR="$PWD"

ssh_user="<EMAIL>"
rev=$(git rev-parse HEAD)
branch=$(git describe --contains --all HEAD)
server_dir="/var/lib/buildbot/masters/kernel-buildbot/public_html/images/${branch}/${rev}"

export apt_proxy=localhost:3142/

image_name="debian-7.8-lxde-4gb-armhf-${time}"
#image_name="debian-7.8-console-armhf-${time}"

options="--img-4gb bone-${image_name} --dtb beaglebone \
--beagleboard.org-production --boot_label BEAGLEBONE --enable-systemd \
--bbb-old-bootloader-in-emmc --hostname beaglebone"

./RootStock-NG.sh -c bb.org-debian-wheezy-lxde-4gb
#./RootStock-NG.sh -c bb.org-debian-wheezy-console

if [ -d ./deploy/${image_name} ] ; then
	cd ./deploy/${image_name}/
	sudo ./setup_sdcard.sh ${options}

	if [ -f bone-${image_name}-4gb.img ] ; then
		sudo chown buildbot.buildbot bone-${image_name}-4gb.img
		xz -z -3 -v -v --verbose bone-${image_name}-4gb.img

		#upload:
		ssh ${ssh_user} mkdir -p ${server_dir}
		rsync -e ssh -av ./bone-${image_name}-4gb.img.xz ${ssh_user}:${server_dir}/

		#cleanup:
		cd ../../
		rm -rf ./deploy/ || true
	fi
fi
<commit_msg>bb.org: try -1 for xz<commit_after>#!/bin/bash -e

time=$(date +%Y-%m-%d)
DIR="$PWD"

ssh_user="<EMAIL>"
rev=$(git rev-parse HEAD)
branch=$(git describe --contains --all HEAD)
server_dir="/var/lib/buildbot/masters/kernel-buildbot/public_html/images/${branch}/${rev}"

export apt_proxy=localhost:3142/

image_name="debian-7.8-lxde-4gb-armhf-${time}"
#image_name="debian-7.8-console-armhf-${time}"

options="--img-4gb bone-${image_name} --dtb beaglebone \
--beagleboard.org-production --boot_label BEAGLEBONE --enable-systemd \
--bbb-old-bootloader-in-emmc --hostname beaglebone"

./RootStock-NG.sh -c bb.org-debian-wheezy-lxde-4gb
#./RootStock-NG.sh -c bb.org-debian-wheezy-console

if [ -d ./deploy/${image_name} ] ; then
	cd ./deploy/${image_name}/
	sudo ./setup_sdcard.sh ${options}

	if [ -f bone-${image_name}-4gb.img ] ; then
		sudo chown buildbot.buildbot bone-${image_name}-4gb.img
		xz -z -1 -v -v --verbose bone-${image_name}-4gb.img

		#upload:
		ssh ${ssh_user} mkdir -p ${server_dir}
		rsync -e ssh -av ./bone-${image_name}-4gb.img.xz ${ssh_user}:${server_dir}/

		#cleanup:
		cd ../../
		rm -rf ./deploy/ || true
	fi
fi

{'fraction_non_alphanumeric': 0.20593445527015058, 'fraction_numerical': 0.014614703277236492, 'mean_word_length': 3.5636363636363635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4911221', 'n_tokens_mistral': 990, 'n_tokens_neox': 917, 'n_words': 164}