<commit_before>#!/bin/bash
# Uncomment if you want to debug this script.
#set -x

# Define some global variables
SERVERNAT=0
FLT_CARRIER=8
FLT_PBX=9
REQ_PYTHON_MAJOR_VER=3
SYSTEM_KAMAILIO_CONF_DIR="/etc/kamailio"
DSIP_KAMAILIO_CONF_DIR=$(pwd)
DEFAULTS_DIR=${DSIP_KAMAILIO_CONF_DIR}/kamailio/defaults
DEBUG=0 # By default debugging is turned off, but can be enabled during startup by using "start -debug" parameters

# Default MYSQL install values
MYSQL_KAM_DEF_USERNAME="kamailio"
MYSQL_KAM_DEF_PASSWORD="<PASSWORD>"
MYSQL_KAM_DEF_DATABASE="kamailio"

# Grab dynamic values
DSIP_PORT=$(cat ${DSIP_KAMAILIO_CONF_DIR}/gui/settings.py | grep -oP 'DSIP_PORT[[:space:]]?=[[:space:]]?\K[0-9]*')
EXTERNAL_IP=`curl -s ip.alt.io`
INTERNAL_IP=`hostname -I | awk '{print $1}'`
INTERNAL_NET=$(awk -F"." '{print $1"."$2"."$3".*"}' <<<$INTERNAL_IP)

# Get Linux Distro
if [ -f /etc/redhat-release ]; then
 	DISTRO="centos"
elif [ -f /etc/debian_version ]; then
	DISTRO="debian"
	DEB_REL=`grep -w "VERSION=" /etc/os-release | sed 's/VERSION=".* (\(.*\))"/\1/'`
fi

function displayLogo {

echo "CiAgICAgXyAgX19fX18gX19fX18gX19fX18gIF9fX19fICAgICAgICAgICAgIF8gCiAgICB8IHwv
IF9fX198XyAgIF98ICBfXyBcfCAgX18gXCAgICAgICAgICAgfCB8ICAgICAgICAgICAKICBfX3wg
fCAoX19fICAgfCB8IHwgfF9fKSB8IHxfXykgfF9fXyAgXyAgIF98IHxfIF9fXyBfIF9fIAogLyBf
YCB8XF9fXyBcICB8IHwgfCAgX19fL3wgIF8gIC8vIF8gXHwgfCB8IHwgX18vIF8gXCAnX198Cnwg<commit_msg>Fixed the issue with curl not returning the external ip address.  I changed out the URL that was being used to get the external ip address<commit_after>#!/bin/bash
# Uncomment if you want to debug this script.
#set -x

# Define some global variables
SERVERNAT=0
FLT_CARRIER=8
FLT_PBX=9
REQ_PYTHON_MAJOR_VER=3
SYSTEM_KAMAILIO_CONF_DIR="/etc/kamailio"
DSIP_KAMAILIO_CONF_DIR=$(pwd)
DEFAULTS_DIR=${DSIP_KAMAILIO_CONF_DIR}/kamailio/defaults
DEBUG=0 # By default debugging is turned off, but can be enabled during startup by using "start -debug" parameters

# Default MYSQL install values
MYSQL_KAM_DEF_USERNAME="kamailio"
MYSQL_KAM_DEF_PASSWORD="<PASSWORD>"
MYSQL_KAM_DEF_DATABASE="kamailio"

# Grab dynamic values
DSIP_PORT=$(cat ${DSIP_KAMAILIO_CONF_DIR}/gui/settings.py | grep -oP 'DSIP_PORT[[:space:]]?=[[:space:]]?\K[0-9]*')
EXTERNAL_IP=`curl -s https://api.ipify.org`
INTERNAL_IP=`hostname -I | awk '{print $1}'`
INTERNAL_NET=$(awk -F"." '{print $1"."$2"."$3".*"}' <<<$INTERNAL_IP)

# Get Linux Distro
if [ -f /etc/redhat-release ]; then
 	DISTRO="centos"
elif [ -f /etc/debian_version ]; then
	DISTRO="debian"
	DEB_REL=`grep -w "VERSION=" /etc/os-release | sed 's/VERSION=".* (\(.*\))"/\1/'`
fi

function displayLogo {

echo "<KEY>
{'fraction_non_alphanumeric': 0.13976452715533613, 'fraction_numerical': 0.02924420812761109, 'mean_word_length': 6.504273504273504, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '2301510', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1133, 'n_words': 213}