<commit_before>#!/bin/bash

# Configuration variables
PORTAINER_DOMAIN="portainer.lan"
PORTAINER_NAME="portainer"
LETSENCRYPT_EMAIL="<EMAIL>"

# Install UI for Docker
echo ">> Running UI for Docker..."
docker run \
    --restart=always \
    --name="$PORTAINER_NAME" \
    --privileged \
    -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e "VIRTUAL_HOST=$PORTAINER_DOMAIN" \
    -e "VIRTUAL_PORT=9000" \
    -e "LETSENCRYPT_HOST=$PORTAINER_DOMAIN" \
    -e "LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL" \
    portainer/portainer &>/dev/null

# Wait until the docker is up and running
echo -n ">> Waiting for UI for Docker to start..."
while [ ! $(docker top $PORTAINER_NAME &>/dev/null && echo $?) ]
do
    echo -n "."
    sleep 0.5
done
echo "started!"

# Print friendly done message
echo "-----------------------------------------------------"
echo "All right! Everything seems to be installed correctly. Have a nice day!"
echo ">> URL: http://${PORTAINER_DOMAIN}/"
echo "-----------------------------------------------------"<commit_msg>Fix some leftovers<commit_after>#!/bin/bash

# Configuration variables
PORTAINER_DOMAIN="portainer.lan"
PORTAINER_NAME="portainer"
LETSENCRYPT_EMAIL="<EMAIL>"

# Install Portainer
echo ">> Running Portainer..."
docker run \
    --restart=always \
    --name="$PORTAINER_NAME" \
    --privileged \
    -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e "VIRTUAL_HOST=$PORTAINER_DOMAIN" \
    -e "VIRTUAL_PORT=9000" \
    -e "LETSENCRYPT_HOST=$PORTAINER_DOMAIN" \
    -e "LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL" \
    portainer/portainer &>/dev/null

# Wait until the docker is up and running
echo -n ">> Waiting for Portainer to start..."
while [ ! $(docker top $PORTAINER_NAME &>/dev/null && echo $?) ]
do
    echo -n "."
    sleep 0.5
done
echo "started!"

# Print friendly done message
echo "-----------------------------------------------------"
echo "All right! Everything seems to be installed correctly. Have a nice day!"
echo ">> URL: http://${PORTAINER_DOMAIN}/"
echo "-----------------------------------------------------"
{'fraction_non_alphanumeric': 0.23360459550023935, 'fraction_numerical': 0.0057443752991862135, 'mean_word_length': 2.281004709576138, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1417237', 'n_tokens_mistral': 722, 'n_tokens_neox': 670, 'n_words': 168}