<commit_before>#!/bin/bash

# load db config
. /usr/scripts/patch_manager/db.conf

# get osversion from host
function OSVersion()
{
	if [[ -f /etc/lsb-release ]]; then
        	export osversion=$(lsb_release -s -d)
	elif [[ -f /etc/debian_version ]]; then
	        export osversion="Debian $(cat /etc/debian_version)"
	elif [[ -f /etc/redhat-release ]]; then
	        export osversion=`cat /etc/redhat-release`
	else
	        export osversion="$(uname -s) $(uname -r)"
	fi
}

function SingleHost()
{
distro_names=`mysql -h $DB_HOST -u $DB_USER -p"$DB_PASS" -Nse 'SELECT distro_name from distro order by id ASC;' $DB_NAME`
for os in $distro_names; do
	distro_num=`mysql -h $DB_HOST -u $DB_USER -p"$DB_PASS" -Nse "SELECT id from distro where distro_name='$os';" $DB_NAME`
	echo -e "[\e[32m$distro_num\e[0m] $os"<commit_msg>updated script path<commit_after>#!/bin/bash

# load db config
. /opt/patch_manager/db.conf

# get osversion from host
function OSVersion()
{
	if [[ -f /etc/lsb-release ]]; then
        	export osversion=$(lsb_release -s -d)
	elif [[ -f /etc/debian_version ]]; then
	        export osversion="Debian $(cat /etc/debian_version)"
	elif [[ -f /etc/redhat-release ]]; then
	        export osversion=`cat /etc/redhat-release`
	else
	        export osversion="$(uname -s) $(uname -r)"
	fi
}

function SingleHost()
{
distro_names=`mysql -h $DB_HOST -u $DB_USER -p"$DB_PASS" -Nse 'SELECT distro_name from distro order by id ASC;' $DB_NAME`
for os in $distro_names; do
	distro_num=`mysql -h $DB_HOST -u $DB_USER -p"$DB_PASS" -Nse "SELECT id from distro where distro_name='$os';" $DB_NAME`
	echo -e "[\e[32m$distro_num\e[0m] $os"
{'fraction_non_alphanumeric': 0.15548780487804878, 'fraction_numerical': 0.003658536585365854, 'mean_word_length': 3.583798882681564, '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': '3268094', 'n_tokens_mistral': 657, 'n_tokens_neox': 628, 'n_words': 165}