<commit_before>cd "$(dirname "$0")"
TIGHTDB_OBJC_HOME="$(pwd)"

MODE="$1"
[ $# -gt 0 ] && shift



case "$MODE" in

    "clean")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "build")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "test")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "install")
        PREFIX="$1"
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "test-installed")
        PREFIX="$1"
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "dist-copy")
        # Copy to distribution package
        TARGET_DIR="$1"
        if ! [ "$TARGET_DIR" -a -d "$TARGET_DIR" ]; then
            echo "Unspecified or bad target directory '$TARGET_DIR'" 1>&2
            exit 1
        fi
        TEMP_DIR="$(mktemp -d /tmp/tightdb.objc.copy.XXXX)" || exit 1
        git ls-files -z >"$TEMP_DIR/files" || exit 1
        tar czf "$TEMP_DIR/archive.tar.gz" --null -T "$TEMP_DIR/files" || exit 1
        (cd "$TARGET_DIR" && tar xzf "$TEMP_DIR/archive.tar.gz") || exit 1
        ;;

    *)
        echo "Unspecified or bad mode '$MODE'" 1>&2
        echo "Available modes are: clean build test install test-installed" 1>&2
        echo "As well as: dist-copy" 1>&2
        exit 1
        ;;

esac<commit_msg>Build scripts update<commit_after>cd "$(dirname "$0")"
TIGHTDB_OBJC_HOME="$(pwd)"

MODE="$1"
[ $# -gt 0 ] && shift



case "$MODE" in

    "clean")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "build")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "test")
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "install")
        PREFIX="$1"
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "test-installed")
        PREFIX="$1"
        echo "Not yet implemented" 1>&2
        exit 1
        ;;

    "dist-copy")
        # Copy to distribution package
        TARGET_DIR="$1"
        if ! [ "$TARGET_DIR" -a -d "$TARGET_DIR" ]; then
            echo "Unspecified or bad target directory '$TARGET_DIR'" 1>&2
            exit 1
        fi
        TEMP_DIR="$(mktemp -d /tmp/tightdb.objc.copy.XXXX)" || exit 1
        git ls-files -z >"$TEMP_DIR/files" || exit 1
        tar czf "$TEMP_DIR/archive.tar.gz" --null -T "$TEMP_DIR/files" || exit 1
        (cd "$TARGET_DIR" && tar xzf "$TEMP_DIR/archive.tar.gz") || exit 1
        exit 0
        ;;

    *)
        echo "Unspecified or bad mode '$MODE'" 1>&2
        echo "Available modes are: clean build test install test-installed" 1>&2
        echo "As well as: dist-copy" 1>&2
        exit 1
        ;;

esac
{'fraction_non_alphanumeric': 0.1431784107946027, 'fraction_numerical': 0.026611694152923537, 'mean_word_length': 1.7096446700507615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6824080', 'n_tokens_mistral': 952, 'n_tokens_neox': 856, 'n_words': 259}