<commit_before>#!/bin/bash

APP="app-bank_armhf"
APP_NAME="kontoentwicklung"

# read commandline options
REFRESH=false
BUILD_CLEAN=false
DOCKER_UPDATE=false
RUN_LOCAL=false
while [ $# -gt 0 ]; do
    case "$1" in
        --clean*)
            BUILD_CLEAN=true
            ;;
        --dockerhub*)
            DOCKER_UPDATE=true
            ;;
        --refresh*)
            REFRESH=true
            ;;
        --run*)
            RUN_LOCAL=true
            ;;
        *)
            printf "unbekannte Option(en)\n"
            if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
                return 1
            else
                exit 1
            fi
    esac
    shift
done

if $REFRESH; then
    if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
        cd ~/docker
        rm -rf $APP
        svn checkout https://github.com/OwnYourData/$APP/trunk/docker/$APP
        echo "refreshed"
        cd ~/docker/$APP
        return
    else
        echo "you need to source the script for refresh"
        exit
    fi
fi
<commit_msg>docker armhf cleanup<commit_after>#!/bin/bash

APP="app-bank_armhf"
APP_GIT="app-bank"
APP_NAME="kontoentwicklung"

# read commandline options
REFRESH=false
BUILD_CLEAN=false
DOCKER_UPDATE=false
RUN_LOCAL=false
while [ $# -gt 0 ]; do
    case "$1" in
        --clean*)
            BUILD_CLEAN=true
            ;;
        --dockerhub*)
            DOCKER_UPDATE=true
            ;;
        --refresh*)
            REFRESH=true
            ;;
        --run*)
            RUN_LOCAL=true
            ;;
        *)
            printf "unbekannte Option(en)\n"
            if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
                return 1
            else
                exit 1
            fi
    esac
    shift
done

if $REFRESH; then
    if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
        cd ~/docker
        rm -rf $APP
        svn checkout https://github.com/OwnYourData/$APP_GIT/trunk/docker/$APP
        echo "refreshed"
        cd ~/docker/$APP
        return
    else
        echo "you need to source the script for refresh"
        exit
    fi
fi

{'fraction_non_alphanumeric': 0.11946050096339114, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 1.4521841794569068, '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': '6694111', 'n_tokens_mistral': 686, 'n_tokens_neox': 650, 'n_words': 151}