<commit_before>#!/bin/bash

service_hash=$1

. /home/engines/scripts/functions.sh

load_service_hash_to_environment

if test -z $fqdn
 then
 	Error:no FQDN in nginx service hash
 	exit -1
 fi
 
 if test -z $port
 then
 	Error:no port in nginx service hash
 	exit -1
 fi
  if test -z $proto
 then
 	Error:no proto in nginx service hash
 	exit -1
 fi
 
   if test -z $name
 then
 	Error:no name in nginx service hash
 	exit -1
 fi

	if test -f /etc/nginx/sites_enabled/${proto}_${fqdn}.site
	 then
	 	rm /etc/nginx/sites_enabled/${proto}_${fqdn}.site	 
	 	kill -HUP `cat /var/run/nginx.pid`
	else
		echo Error:config /etc/nginx/sites_enabled/${proto}_${fqdn}.site not found
		exit -1
	fi<commit_msg>correct path for sites-enabled<commit_after>#!/bin/bash

service_hash=$1

. /home/engines/scripts/functions.sh

load_service_hash_to_environment

if test -z $fqdn
 then
 	Error:no FQDN in nginx service hash
 	exit -1
 fi
 
 if test -z $port
 then
 	Error:no port in nginx service hash
 	exit -1
 fi
  if test -z $proto
 then
 	Error:no proto in nginx service hash
 	exit -1
 fi
 
   if test -z $name
 then
 	Error:no name in nginx service hash
 	exit -1
 fi

	if test -f /etc/nginx/sites-enabled/${proto}_${fqdn}.site
	 then
	 	rm /etc/nginx/sites-enabled/${proto}_${fqdn}.site	 
	 	kill -HUP `cat /var/run/nginx.pid`
	else
		echo Error:config /etc/nginx/sites-enabled/${proto}_${fqdn}.site not found
		exit -1
	fi
{'fraction_non_alphanumeric': 0.10772501771793054, 'fraction_numerical': 0.008504606661941885, 'mean_word_length': 2.966292134831461, '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': '3629023', 'n_tokens_mistral': 592, 'n_tokens_neox': 539, 'n_words': 162}