<commit_before>#!/usr/bin/env bash

if [[ $# -eq 0 ]]
then
    echo "Usage"
    echo "./launcher.sh generate"
    echo "./launcher.sh build"
    echo "./launcher.sh run"
    echo "./launcher.sh logs"
    echo "./launcher.sh run [port]"
else
    if [ ${1} = "generate" ]
    then
        echo "Dockerfile generation in progress"
        cp DockerTemplate Dockerfile
        echo "You can build now"
    else
        if [ ${1} = "build" ]
        then
            echo "Docker build in progress"
            docker build . -t nuitinfo
        else
            if [ ${1} = "logs" ]
            then
                docker logs -f ndi
            else
                if [ ${1} = "run" ]
                then
                    echo "Docker launch in progress"
                    docker rm -f ndi
                    if [ $# -eq 2 ]
                    then
                        docker run -p 8080:${2} --name ndi -d nuitinfo
                    else
                        docker run -p 8080:8080 --name ndi -d nuitinfo
                    fi
                else
                    echo "Usage"
                    echo "./launcher.sh generate"
                    echo "./launcher.sh build"
                    echo "./launcher.sh run"
                    echo "./launcher.sh logs"
                    echo "./launcher.sh run [port]"
                fi
            fi
        fi
    fi
fi<commit_msg>Add enter command for docker<commit_after>#!/usr/bin/env bash

if [[ $# -eq 0 ]]; then
    echo "Usage"
    echo "./launcher.sh generate"
    echo "./launcher.sh build"
    echo "./launcher.sh run"
    echo "./launcher.sh run [port]"
    echo "./launcher.sh logs"
    echo "./launcher.sh enter"

elif [ ${1} = "generate" ]; then
    echo "Dockerfile generation in progress"
    cp DockerTemplate Dockerfile
    echo "You can build now"

elif [ ${1} = "build" ]; then
    echo "Docker build in progress"
    docker build . -t nuitinfo

elif [ ${1} = "logs" ]; then
    docker logs -f ndi

elif [ ${1} = "enter" ]; then
    docker exec -ti ndi /bin/bash

elif [ ${1} = "run" ]; then
    echo "Docker launch in progress"
    docker rm -f ndi
    if [ $# -eq 2 ]; then
        docker run -p 8080:${2} --name ndi -d nuitinfo
    else
        docker run -p 8080:8080 --name ndi -d nuitinfo
    fi

else
    echo "Usage"
    echo "./launcher.sh generate"
    echo "./launcher.sh build"
    echo "./launcher.sh run"
    echo "./launcher.sh run [port]"
    echo "./launcher.sh logs"
    echo "./launcher.sh enter"
fi
{'fraction_non_alphanumeric': 0.11858336649423, 'fraction_numerical': 0.015519299641862315, 'mean_word_length': 1.353932584269663, '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': '78553', 'n_tokens_mistral': 834, 'n_tokens_neox': 745, 'n_words': 260}