<commit_before>#!/bin/bash
: "${taito_cli_path:?}"
: "${taito_plugin_path:?}"

if [[ -n "${taito_target:-}" ]]; then
  # Restart only the container given as argument
  # shellcheck disable=SC1090
  . "${taito_plugin_path}/util/determine-pod.sh" && \
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "docker-compose restart ${pod:?}"
else
  # Restart all containers
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "docker-compose down" && \
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "${taito_plugin_path}/util/start.sh" "${@}"
fi && \

# Call next command on command chain
"${taito_cli_path}/util/call-next.sh" "${@}"
<commit_msg>fix: docker-compose up on restart instead of 'down'<commit_after>#!/bin/bash
: "${taito_cli_path:?}"
: "${taito_plugin_path:?}"

if [[ -n "${taito_target:-}" ]]; then
  # Restart only the container given as argument
  # shellcheck disable=SC1090
  . "${taito_plugin_path}/util/determine-pod.sh" && \
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "docker-compose restart ${pod:?}"
else
  # Restart all containers
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "docker-compose stop" && \
  "${taito_cli_path}/util/execute-on-host-fg.sh" \
    "${taito_plugin_path}/util/start.sh" "${@}"
fi && \

# Call next command on command chain
"${taito_cli_path}/util/call-next.sh" "${@}"

{'fraction_non_alphanumeric': 0.20474777448071216, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 4.090566037735849, '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': '952259', 'n_tokens_mistral': 549, 'n_tokens_neox': 525, 'n_words': 83}