<commit_before>#!/bin/bash -e

# =-=-=-=-=-=-=-
# detect environment
SCRIPTNAME=`basename $0`
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
FULLPATHSCRIPTNAME=$SCRIPTPATH/$SCRIPTNAME
BUILDDIR=$( cd $SCRIPTPATH/../../ ; pwd -P )
cd $SCRIPTPATH

# =-=-=-=-=-=-=-
# check input
USAGE="
Usage:
  $SCRIPTNAME clean
  $SCRIPTNAME postgres
  $SCRIPTNAME mysql
  $SCRIPTNAME oracle
"
if [ $# -eq 0 -o $# -gt 1 -o "$1" == "-h" -o "$1" == "--help" -o "$1" == "help" ] ; then
    echo "$USAGE"
    exit 1
fi

# =-=-=-=-=-=-=-
# handle the case of build clean
if [ "$1" == "clean" ] ; then
    rm -f $SCRIPTPATH/src/icatCoreTables.sql
    rm -f $SCRIPTPATH/src/icatSysTables.sql
    rm -f $SCRIPTPATH/packaging/irods_database_plugin_*.list
    rm -f $SCRIPTPATH/packaging/setup_database.sh
    make clean
    exit 0
fi

# =-=-=-=-=-=-=-<commit_msg>[#2012] more legacy core table cleanup<commit_after>#!/bin/bash -e

# =-=-=-=-=-=-=-
# detect environment
SCRIPTNAME=`basename $0`
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
FULLPATHSCRIPTNAME=$SCRIPTPATH/$SCRIPTNAME
BUILDDIR=$( cd $SCRIPTPATH/../../ ; pwd -P )
cd $SCRIPTPATH

# =-=-=-=-=-=-=-
# check input
USAGE="
Usage:
  $SCRIPTNAME clean
  $SCRIPTNAME postgres
  $SCRIPTNAME mysql
  $SCRIPTNAME oracle
"
if [ $# -eq 0 -o $# -gt 1 -o "$1" == "-h" -o "$1" == "--help" -o "$1" == "help" ] ; then
    echo "$USAGE"
    exit 1
fi

# =-=-=-=-=-=-=-
# handle the case of build clean
if [ "$1" == "clean" ] ; then
    rm -f $SCRIPTPATH/src/icatSysTables.sql
    rm -f $SCRIPTPATH/packaging/irods_database_plugin_*.list
    rm -f $SCRIPTPATH/packaging/setup_database.sh
    make clean
    exit 0
fi

# =-=-=-=-=-=-=-
{'fraction_non_alphanumeric': 0.22141119221411193, 'fraction_numerical': 0.014598540145985401, 'mean_word_length': 2.8344988344988344, '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': '5292699', 'n_tokens_mistral': 707, 'n_tokens_neox': 667, 'n_words': 162}