<commit_before>#!/bin/bash

#eha.tater.io:
#  container_name: eha.tater.io
#  image: docker-repository.tater.io:5000/apps/tater
#  ports:
#    - "8002:3000"
#  restart: always
#  environment:
#    - MONGO_URL=mongodb://10.0.0.92:27017/eha
#    - ROOT_URL=https://eha.tater.io
#    - PORT=3000

name=$1

if [[ -n "$name" ]]; then
  echo "${name}.tater.io:
  container_name: ${name}.tater.io
  image: docker-repository.tater.io:5000/apps/tater
  ports:
    - \"8002:3000\"
  restart: always
  environment:
    - MONGO_URL=mongodb://10.0.0.92:27017/${name}
    - ROOT_URL=https://${name}.tater.io
    - PORT=3000
"
else
  echo "Please specify the instance name (e.g. $0 eha)"
fi<commit_msg>Add consistent option parsing<commit_after>#!/bin/bash

#eha.tater.io:
#  container_name: eha.tater.io
#  image: docker-repository.tater.io:5000/apps/tater
#  ports:
#    - "8002:3000"
#  restart: always
#  environment:
#    - MONGO_URL=mongodb://10.0.0.92:27017/eha
#    - ROOT_URL=https://eha.tater.io
#    - PORT=3000

#Argument parsing
if [[ $# > 1 ]]
then
  key="$1"
fi

case $key in
  -n|--name)
    NAME="$2"
    ;;
  *)
    echo "Please specify container name, e.g.: --name eha"
    echo ""
    echo ""
    exit 1;
    ;;
esac

# Lowercase the $NAME
NAME="$(tr [A-Z] [a-z] <<< "$NAME")"

if [[ -n "$NAME" ]]; then
  echo "${NAME}.tater.io:
container_name: ${NAME}.tater.io
image: docker-repository.tater.io:5000/apps/tater
ports:
  - \"8002:3000\"
restart: always
environment:
  - MONGO_URL=mongodb://10.0.0.92:27017/${NAME}
  - ROOT_URL=https://${NAME}.tater.io
  - PORT=3000
"
fi
{'fraction_non_alphanumeric': 0.1967005076142132, 'fraction_numerical': 0.07233502538071065, 'mean_word_length': 3.0332480818414322, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5258635', 'n_tokens_mistral': 753, 'n_tokens_neox': 669, 'n_words': 111}