<commit_before>#!/usr/bin/env bash

set -e # Abort on error
set -u # Abort on uninitialized variable usage

PROJECT_ROOT=$(git rev-parse --show-toplevel)

# Get XD-MVC
cd ${PROJECT_ROOT}/testapp

# Remove old repository
if [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
    # Windows NT platform
    # Deleting does not work in Windows because "file names are too long to delete"
    DIRECTORY="${PROJECT_ROOT}/testapp/XD-MVC"
    if [ -d "$DIRECTORY" ]; then
        echo "You are running Windows. Please delete the folder '$DIRECTORY' manually."
        echo "Press Return to continue..."
        read
    fi
else
    rm -rf XD-MVC
fi

# Clone XD-MVC repository
git clone --depth 1 https://github.com/mhusm/XD-MVC.git XD-MVC

# Setup gallery app
echo "Setup gallery app"
cd ${PROJECT_ROOT}/testapp/XD-MVC/Examples/Gallery
npm install
./node_modules/.bin/bower install

# Setup maps app
echo "Setup maps app"
cd ${PROJECT_ROOT}/testapp/XD-MVC/Examples/Maps
npm install
./node_modules/.bin/bower install
<commit_msg>Use spiegelm/XD-MVC repo<commit_after>#!/usr/bin/env bash

set -e # Abort on error
set -u # Abort on uninitialized variable usage

PROJECT_ROOT=$(git rev-parse --show-toplevel)

# Get XD-MVC
cd ${PROJECT_ROOT}/testapp

# Remove old repository
if [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
    # Windows NT platform
    # Deleting does not work in Windows because "file names are too long to delete"
    DIRECTORY="${PROJECT_ROOT}/testapp/XD-MVC"
    if [ -d "$DIRECTORY" ]; then
        echo "You are running Windows. Please delete the folder '$DIRECTORY' manually."
        echo "Press Return to continue..."
        read
    fi
else
    rm -rf XD-MVC
fi

# Clone XD-MVC repository
git clone --depth 1 https://github.com/spiegelm/XD-MVC.git XD-MVC

# Setup gallery app
echo "Setup gallery app"
cd ${PROJECT_ROOT}/testapp/XD-MVC/Examples/Gallery
npm install
./node_modules/.bin/bower install

# Setup maps app
echo "Setup maps app"
cd ${PROJECT_ROOT}/testapp/XD-MVC/Examples/Maps
npm install
./node_modules/.bin/bower install

{'fraction_non_alphanumeric': 0.11872586872586872, 'fraction_numerical': 0.005791505791505791, 'mean_word_length': 3.3459119496855347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3906028', 'n_tokens_mistral': 737, 'n_tokens_neox': 710, 'n_words': 228}