<commit_before>#! /bin/bash
# Automated Install Script for GTK themes
# Copyright (C) vinctux (<NAME>), 2015
# This file is part of gtkon (https://github.com/vinctux/gtkon/), a project licensed under the MIT license.
#
# gtkon v1.1

# Define your theme project name (GTKTheme),
# its author (AUTHOR), its git network address (GitURL) and
# the latest stable release (RELEASE) [if without releases leave empty].
# In case you're hosting on GitHub, change $GITHUB to 1 and provide your 
# username on which the project is hosted.
GTKTheme="Xenite"
AUTHOR="eOS-themes"
GitURL="https://github.com/eOS-themes/Xenite.git"
GITHUB=1
RELEASE=""

# Define how do you preffer that your GTK themes is distributed:
# canal='S' for stable releases / canal='N' for night builds
# Currently, stable distribution is availible only for GitHub repos.
canal="N"

# Xenite is only availible night-build
readonly canal


# Install $GTKTheme's dependencies
echo "Installing dependencies . . ."
###################################################################################################
# List here all dependencies you want to install by this process.                                 #
# Scheme: hash $DependencyPackage 2>/dev/null || { sudo apt-get install $DependencyPackage; }     #
###################################################################################################
hash gtk2-engines-pixbuf 2>/dev/null || { sudo apt-get install gtk2-engines-pixbuf; }
# End listing here. 

read -p "Stable [S/s] release or night [N/n] (maybe unstable) build? " canal
case $canal in
    [Ss]* )
        echo "Download stable source. . ."
        if [ $GITHUB == 1 && $AUTHOR != "" && $RELEASE != ""]; then
            cd ~/
            wget https://github.com/$AUTHOR/$GTKTheme/releases/download/$RELEASE/$GTKTheme.tar
            tar -xvf ~/$GTKTheme.tar
            sudo mv ~/$GTKTheme /usr/share/themes/
            rm ~/$GTKTheme.tar
        fi
        [ $GITHUB == 0 ] && { echo "ERROR - Custom git stable releases (other than GitHub) are (currenlty) not supported."; }
        echo "DONE WITH STABLE INSTALL!"
        break;;
    [Nn]* )
        hash git 2>/dev/null || { sudo apt-get install git; }
        echo "Cloning from git source . . ."
        [ -d "/usr/share/themes/$GTKTheme" ] && { cd /usr/share/themes/$GTKTheme; sudo git pull origin master; } || { cd /usr/share/themes; sudo git clone $GitURL; }
        echo "DONE WITH NIGHT INSTALL!"
        break;;
esac

# Fix plank issue (if existent)
[ -d "/usr/share/themes/$GTKTheme/plank" ] && { sudo rm -rf /usr/share/plank/themes/$GTKTheme; sudo mkdir /usr/share/plank/themes/$GTKTheme; sudo cp -rf /usr/share/themes/$GTKTheme/plank/* /usr/share/plank/themes/$GTKTheme; }

# Create cron job with crontab entry
while true; do
    read -p "Schedule a cronjob at every startup? " yn
    case $yn in
        [Yy]* ) echo "Creating cron job (via crontab) . . ."; sudo crontab -l > xron && echo "@reboot /usr/share/themes/$GTKTheme/setup/update.sh" >> xron && crontab xron && rm xron; echo "DONE WITH INSTALLING!"; break;;
        [Nn]* ) echo "DONE WITH INSTALLING!"; exit;;
        * ) echo "Please answer yes [Y/y] or no [N/n].";;
    esac
done
<commit_msg>unwanted break cause of an error at 56<commit_after>#! /bin/bash
# Automated Install Script for GTK themes
# Copyright (C) vinctux (<NAME>), 2015
# This file is part of gtkon (https://github.com/vinctux/gtkon/), a project licensed under the MIT license.
#
# gtkon v1.1

# Define your theme project name (GTKTheme),
# its author (AUTHOR), its git network address (GitURL) and
# the latest stable release (RELEASE) [if without releases leave empty].
# In case you're hosting on GitHub, change $GITHUB to 1 and provide your 
# username on which the project is hosted.
GTKTheme="Xenite"
AUTHOR="eOS-themes"
GitURL="https://github.com/eOS-themes/Xenite.git"
GITHUB=1
RELEASE=""

# Define how do you preffer that your GTK themes is distributed:
# canal='S' for stable releases / canal='N' for night builds
# Currently, stable distribution is availible only for GitHub repos.
canal="N"

# Xenite is only availible night-build
readonly canal


# Install $GTKTheme's dependencies
echo "Installing dependencies . . ."
###################################################################################################
# List here all dependencies you want to install by this process.                                 #
# Scheme: hash $DependencyPackage 2>/dev/null || { sudo apt-get install $DependencyPackage; }     #
###################################################################################################
hash gtk2-engines-pixbuf 2>/dev/null || { sudo apt-get install gtk2-engines-pixbuf; }
# End listing here. 

read -p "Stable [S/s] release or night [N/n] (maybe unstable) build? " canal
case $canal in
    [Ss]* )
        echo "Download stable source. . ."
        if [ $GITHUB == 1 && $AUTHOR != "" && $RELEASE != ""]; then
            cd ~/
            wget https://github.com/$AUTHOR/$GTKTheme/releases/download/$RELEASE/$GTKTheme.tar
            tar -xvf ~/$GTKTheme.tar
            sudo mv ~/$GTKTheme /usr/share/themes/
            rm ~/$GTKTheme.tar
        fi
        [ $GITHUB == 0 ] && { echo "ERROR - Custom git stable releases (other than GitHub) are (currenlty) not supported."; }
        echo "DONE WITH STABLE INSTALL!"
        break;;
    [Nn]* )
        hash git 2>/dev/null || { sudo apt-get install git; }
        echo "Cloning from git source . . ."
        [ -d "/usr/share/themes/$GTKTheme" ] && { cd /usr/share/themes/$GTKTheme; sudo git pull origin master; } || { cd /usr/share/themes; sudo git clone $GitURL; }
        echo "DONE WITH NIGHT INSTALL!"
esac

# Fix plank issue (if existent)
[ -d "/usr/share/themes/$GTKTheme/plank" ] && { sudo rm -rf /usr/share/plank/themes/$GTKTheme; sudo mkdir /usr/share/plank/themes/$GTKTheme; sudo cp -rf /usr/share/themes/$GTKTheme/plank/* /usr/share/plank/themes/$GTKTheme; }

# Create cron job with crontab entry
while true; do
    read -p "Schedule a cronjob at every startup? " yn
    case $yn in
        [Yy]* ) echo "Creating cron job (via crontab) . . ."; sudo crontab -l > xron && echo "@reboot /usr/share/themes/$GTKTheme/setup/update.sh" >> xron && crontab xron && rm xron; echo "DONE WITH INSTALLING!"; break;;
        [Nn]* ) echo "DONE WITH INSTALLING!"; exit;;
        * ) echo "Please answer yes [Y/y] or no [N/n].";;
    esac
done

{'fraction_non_alphanumeric': 0.1871399657480928, 'fraction_numerical': 0.004982095593959209, 'mean_word_length': 3.125883108542068, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5748237', 'n_tokens_mistral': 2098, 'n_tokens_neox': 1956, 'n_words': 656}