<commit_before><commit_msg>add basic unpack script<commit_after>#!/bin/bash

# Unpack Tools
#  - Used to unpack packages and install base file system

. settings/functions
. settings/config

if [ -e "${FAKEROOT}" ]; then
    echo "Fakeroot exists! Cleaning..."
    cd "${BUILD_ROOT}/"
    rm -rf "${FAKEROOT}/"

fi

echo "Creating Fakeroot Directory..."

mkdir -pv "${FAKEROOT}"
check_status

# now unpack everything from ${BUILD_ROOT}/packages directory
PACKAGES=$(find "${FAKEROOT_PKGDIR}/" -type f -name "*.tar.gz")

for package in "${PACKAGES[@]}"; do

   echo "Extracting package: ${package}"
   tar -zxvf "${package}" -C "${FAKEROOT}/"
   check_status

done

echo ""
echo "Packages Unpacked:"
echo ""

for package in "${PACKAGES[@]}"; do
   echo -n "${package}"
   show_status "${OK}"
done

echo ""
echo "All packages unpacked!"

{'fraction_non_alphanumeric': 0.16526946107784432, 'fraction_numerical': 0.0, 'mean_word_length': 3.9467455621301775, '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': '7522373', 'n_tokens_mistral': 290, 'n_tokens_neox': 277, 'n_words': 88}