<commit_before>#!/bin/bash
#
# Script to install libbitcoin, libwallet, obelisk and sx tools.
#
# Install dependencies and compiles the source code from git for Debian 7 / Ubuntu 13.10 or Fedora GNU/Linux distributions.
#
# Requires sudo. 
#
# To execute this script, run:
# <sudo bash install-sx.sh>
#
# To read help instructions run:
# <sudo bash install-sx.sh --help>
#
#
set -e
echo
echo " [+] Welcome to S(pesmilo)X(changer)."
echo
sleep 0.3
if [ "$#" = "1" ]; then
    if [ "$1" = "/*" ]; then
        #Absolute path
        INSTALL_PREFIX=$1
    elif [ "$1" = "--help" ]; then
        echo
        echo " [+] Install script help:"
        echo " Requires sudo."
        echo " --> To execute this script type:"
        echo " <sudo bash install-sx.sh>"
        echo " --> To execute this script and install at a specific path type:"
        echo " <sudo bash install-sx.sh PATH/...>"
        echo " This script will install libbitcoin, libwallet, obelisk and sx tools."
        echo " The standard path to the source instalation is /usr/local/src."
        echo " The stardard path for the conf files is /etc."
        echo
        exit
    else
        #Relative path
        RELATIVE=`pwd`
        INSTALL_PREFIX=$RELATIVE/$1
    fi
    CONF_DIR=$INSTALL_PREFIX/etc<commit_msg>Need to use double brackets in bash script<commit_after>#!/bin/bash
#
# Script to install libbitcoin, libwallet, obelisk and sx tools.
#
# Install dependencies and compiles the source code from git for Debian 7 / Ubuntu 13.10 or Fedora GNU/Linux distributions.
#
# Requires sudo. 
#
# To execute this script, run:
# <sudo bash install-sx.sh>
#
# To read help instructions run:
# <sudo bash install-sx.sh --help>
#
#
set -e
echo
echo " [+] Welcome to S(pesmilo)X(changer)."
echo
sleep 0.3
if [ "$#" = "1" ]; then
    if [[ "$1" = /* ]]; then
        #Absolute path
        INSTALL_PREFIX=$1
    elif [ "$1" = "--help" ]; then
        echo
        echo " [+] Install script help:"
        echo " Requires sudo."
        echo " --> To execute this script type:"
        echo " <sudo bash install-sx.sh>"
        echo " --> To execute this script and install at a specific path type:"
        echo " <sudo bash install-sx.sh PATH/...>"
        echo " This script will install libbitcoin, libwallet, obelisk and sx tools."
        echo " The standard path to the source instalation is /usr/local/src."
        echo " The stardard path for the conf files is /etc."
        echo
        exit
    else
        #Relative path
        RELATIVE=`pwd`
        INSTALL_PREFIX=$RELATIVE/$1
    fi
    CONF_DIR=$INSTALL_PREFIX/etc
{'fraction_non_alphanumeric': 0.11687812379853903, 'fraction_numerical': 0.00922722029988466, 'mean_word_length': 2.3617571059431524, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '1916425', 'n_tokens_mistral': 868, 'n_tokens_neox': 796, 'n_words': 296}