<commit_before>#!/bin/bash
#
# COPYRIGHT BXT/PiXELART
# nGinx_enSite
# Utilisation -
# 


# CONF #
NGINX_PATH="/etc/nginx"
NGINX_AVAILABLE="$NGINX_PATH/sites-available"
NGINX_ENABLED="$NGINX_PATH/sites-enabled"
NAME=${0##*/}
SERVICE="service"
# END OF CONF # 

# COLORS #
WHITE=$(echo "\033[m")
WHITE_BOLD=$(echo "\033[1m")
BLUE=$(echo "\033[34m") #Blue
RED=$(echo "\033[31m")
YELLOW=$(echo "\033[33m")
GREEN=$(echo "\033[32m")
# END OF COLORS #

if [[ $UID != 0 ]]; then
	echo -e "${RED}${WHITE_BOLD}$NAME doit être exécuté en root"
	exit 1;
fi

function preCheck(){
	if [[ ! -d $NGINX_AVAILABLE ]]; then
		echo -e "${RED}${WHITE_BOLD}$NGINX_AVAILABLE inexistant"
	fi

	if [[ ! -d $NGINX_ENABLED ]]; then
		echo -e "${RED}${WHITE_BOLD}$NGINX_ENABLED inexistant"<commit_msg>Fix commentaire<commit_after>#!/bin/bash
#
# COPYRIGHT BXT/PiXELART
# nGinx_enSite
# Utilisation : CF README

# CONF #
NGINX_PATH="/etc/nginx"
NGINX_AVAILABLE="$NGINX_PATH/sites-available"
NGINX_ENABLED="$NGINX_PATH/sites-enabled"
NAME=${0##*/}
SERVICE="service"
# END OF CONF # 

# COLORS #
WHITE=$(echo "\033[m")
WHITE_BOLD=$(echo "\033[1m")
BLUE=$(echo "\033[34m") #Blue
RED=$(echo "\033[31m")
YELLOW=$(echo "\033[33m")
GREEN=$(echo "\033[32m")
# END OF COLORS #

if [[ $UID != 0 ]]; then
	echo -e "${RED}${WHITE_BOLD}$NAME doit être exécuté en root"
	exit 1;
fi

function preCheck(){
	if [[ ! -d $NGINX_AVAILABLE ]]; then
		echo -e "${RED}${WHITE_BOLD}$NGINX_AVAILABLE inexistant"
	fi

	if [[ ! -d $NGINX_ENABLED ]]; then
		echo -e "${RED}${WHITE_BOLD}$NGINX_ENABLED inexistant"
{'fraction_non_alphanumeric': 0.2011568123393316, 'fraction_numerical': 0.038560411311053984, 'mean_word_length': 5.178571428571429, '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': '456566', 'n_tokens_mistral': 722, 'n_tokens_neox': 675, 'n_words': 132}