<commit_before>#!/bin/bash

# Configuration variables
WEBDAV_DOMAIN="$(basename -- "$0" .sh)"
WEBDAV_USER="user"
WEBDAV_PASS="<PASSWORD>"
WEBDAV_MOUNT="/tmp"

# Disable Gzip as it does not work on Windows
cat <<EOT > "/srv/vhost/${WEBDAV_DOMAIN}"
gzip off;
EOT

# Install WebDAV
echo ">> Running WebDAV..."
docker run \
    --restart=always \
    --name="$WEBDAV_DOMAIN" \
    -d \
    -e "USERNAME=$WEBDAV_USER" \
    -e "PASSWORD=$<PASSWORD>" \
    -e "VIRTUAL_HOST=$WEBDAV_DOMAIN" \
    -v "$WEBDAV_MOUNT:/webdav" \
    idelsink/webdav &>/dev/null

# Wait until the docker is up and running
echo -n ">> Waiting for WebDAV to start..."
while [ ! $(docker top $WEBDAV_DOMAIN &>/dev/null && echo $?) ]
do
    echo -n "."
    sleep 0.5
done<commit_msg>Switch to a fixed WebDAV container<commit_after>#!/bin/bash

# Configuration variables
WEBDAV_DOMAIN="$(basename -- "$0" .sh)"
WEBDAV_USER="user"
WEBDAV_PASS="<PASSWORD>"
WEBDAV_MOUNT="/tmp"

# Install WebDAV
echo ">> Running WebDAV..."
docker run \
    --restart=always \
    --name="$WEBDAV_DOMAIN" \
    -d \
    -e "USERNAME=$WEBDAV_USER" \
    -e "PASSWORD=$<PASSWORD>" \
    -e "VIRTUAL_HOST=$WEBDAV_DOMAIN" \
    -v "$WEBDAV_MOUNT:/webdav" \
    julianxhokaxhiu/docker-webdav &>/dev/null

# Wait until the docker is up and running
echo -n ">> Waiting for WebDAV to start..."
while [ ! $(docker top $WEBDAV_DOMAIN &>/dev/null && echo $?) ]
do
    echo -n "."
    sleep 0.5
done
{'fraction_non_alphanumeric': 0.1701534170153417, 'fraction_numerical': 0.0041841004184100415, 'mean_word_length': 3.195906432748538, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 20, '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': '1640717', 'n_tokens_mistral': 607, 'n_tokens_neox': 583, 'n_words': 131}