<commit_before>#!/bin/bash
### BEGIN INIT INFO
# Provides:          chech_docker
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Description courte
# Description:       Description longue
### END INIT INFO

# Author: <NAME>
# Email: <EMAIL>
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_

# Modified by Julien ANCELIN for docker-compose
# Usage: ./check_docker.sh 
#
# List all container in a docker-compose 
# and If one or more is exit, it do a docker-compose down and up


#set -x
sleep 40
LIST=$(docker ps -aq)
for CONTAINER in $LIST<commit_msg>Update check_docker.sh<commit_after>#!/bin/bash
### BEGIN INIT INFO
# Provides:          chech_docker
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Description courte
# Description:       Description longue
### END INIT INFO


# Author: <NAME>
# Email: <EMAIL>
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_

# Modified by Julien ANCELIN for docker-compose
# Usage: ./check_docker.sh 
#
# List all container in a docker-compose 
# and If one or more is exit, it do a docker-compose down and up


#set -x
sleep 40
LIST=$(docker ps -aq)
for CONTAINER in $LIST
{'fraction_non_alphanumeric': 0.10267534345625452, 'fraction_numerical': 0.013015184381778741, 'mean_word_length': 3.65993265993266, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6779063', 'n_tokens_mistral': 506, 'n_tokens_neox': 459, 'n_words': 155}