<commit_before>#!/bin/bash
set -e

if [[ $TRAVIS_OS_NAME == "osx" ]]; then
    export DONT_CHANGE_SHELL=true
    ./macosx/configure_fresh_system.sh
    exit 0
fi

if [[ -z $DETECTED_OS ]]; then
    echo "cannot detect OS, please set DETECTED_OS manually"
    exit 1
fi

if [[ $DETECTED_OS =~ .*:.* ]]; then
   SYSTEM_NAME=`echo $DETECTED_OS | cut -d':' -f1` 
   SYSTEM_VERSION=`echo $DETECTED_OS | cut -d':' -f2` 
else
    echo "please set DETECTED_OS to system:version"
    exit 1
fi

INSIDER_ROOT_DIR=/root/temp/dotfiles/
CURRENT_DIR=`pwd`

SYSTEM_DIR="$SYSTEM_NAME/"
SYSTEM_VERSION_DIR="$SYSTEM_NAME/$SYSTEM_VERSION/"

if [[ -d "$CURRENT_DIR/$SYSTEM_VERSION_DIR" ]]; then
    DIR=$SYSTEM_VERSION_DIR
else
    DIR=$SYSTEM_DIR
fi

if [[ -z $DOCKER_IMAGE ]]; then<commit_msg>Fix Travis' reference to Mac's up script<commit_after>#!/bin/bash
set -e

if [[ $TRAVIS_OS_NAME == "osx" ]]; then
    export DONT_CHANGE_SHELL=true
    ./macosx/up.sh
    exit 0
fi

if [[ -z $DETECTED_OS ]]; then
    echo "cannot detect OS, please set DETECTED_OS manually"
    exit 1
fi

if [[ $DETECTED_OS =~ .*:.* ]]; then
   SYSTEM_NAME=`echo $DETECTED_OS | cut -d':' -f1` 
   SYSTEM_VERSION=`echo $DETECTED_OS | cut -d':' -f2` 
else
    echo "please set DETECTED_OS to system:version"
    exit 1
fi

INSIDER_ROOT_DIR=/root/temp/dotfiles/
CURRENT_DIR=`pwd`

SYSTEM_DIR="$SYSTEM_NAME/"
SYSTEM_VERSION_DIR="$SYSTEM_NAME/$SYSTEM_VERSION/"

if [[ -d "$CURRENT_DIR/$SYSTEM_VERSION_DIR" ]]; then
    DIR=$SYSTEM_VERSION_DIR
else
    DIR=$SYSTEM_DIR
fi

if [[ -z $DOCKER_IMAGE ]]; then
{'fraction_non_alphanumeric': 0.1438664097623635, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 3.884012539184953, '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': '7667628', 'n_tokens_mistral': 656, 'n_tokens_neox': 606, 'n_words': 141}