<commit_before>#!/bin/sh

HOST="$1"
nightlydir="$2"

# create directory on remote machines
ssh ${HOST} "mkdir -p ${nightlydir}"

# Compress raw images and extX files if needed
for i in $(find deploy/eglibc/images/ -name "A*.ext3"; find deploy/eglibc/images/ -name "A*img" ; find deploy/eglibc/images/ -name "A*.ext2 ; find deploy/eglibc/images/ -name "A*.ext4 ; find deploy/eglibc/images/ -name "A*sdcard) ; do xz -f -v -z -T0 -9 -e $i ; done

# Clean up broken symlinks
find deploy/eglibc/images/ -type l -exec sh -c "file -b {} | grep -q ^broken" \; -print | xargs rm || true

# Copy over images/kernels/modules/etc
rsync -l deploy/eglibc/images/$machine/* ${HOST}:${nightlydir}<commit_msg>ci-upload-helper: fix quoting<commit_after>#!/bin/sh

HOST="$1"
nightlydir="$2"

# create directory on remote machines
ssh ${HOST} "mkdir -p ${nightlydir}"

# Compress raw images and extX files if needed
for i in $(find deploy/eglibc/images/ -name "A*.ext3"; find deploy/eglibc/images/ -name "A*img" ; find deploy/eglibc/images/ -name "A*.ext2" ; find deploy/eglibc/images/ -name "A*.ext4" ; find deploy/eglibc/images/ -name "A*sdcard") ; do xz -f -v -z -T0 -9 -e $i ; done

# Clean up broken symlinks
find deploy/eglibc/images/ -type l -exec sh -c "file -b {} | grep -q ^broken" \; -print | xargs rm || true

# Copy over images/kernels/modules/etc
rsync -l deploy/eglibc/images/$machine/* ${HOST}:${nightlydir}
{'fraction_non_alphanumeric': 0.16963649322879543, 'fraction_numerical': 0.009978617248752673, 'mean_word_length': 3.633663366336634, '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': '6245735', 'n_tokens_mistral': 531, 'n_tokens_neox': 506, 'n_words': 163}