<commit_before>#!/bin/bash
# LinuxGSM check_glibc.sh function
# Author: <NAME>
# Website: https://linuxgsm.com
# Description: Checks if the server has the correct Glibc version or a fix available.

local commandname="CHECK"

info_glibc.sh
info_distro.sh

if [ "${glibcrequired}" == "NOT REQUIRED" ]; then
	:
elif [ "${glibcrequired}" == "UNKNOWN" ]; then
		fn_print_dots "Glibc fix"
		sleep 0.5
		fn_print_error_nl "Glibc fix: ${red}${glibcrequired}${default}"
		echo -e "	* glibc required: ${red}${glibcrequired}${default}"
		echo -e "	* glibc installed: ${glibcversion}"
elif [ "$(printf '%s\n'${glibcrequired}'\n' ${glibcversion} | sort -V | head -n 1)" != "${glibcrequired}" ]; then
	if [ "${glibcfix}" == "yes" ]; then
		if [ "${function_selfname}" != "command_install.sh" ]; then
			fn_print_dots "Glibc fix"
			sleep 0.5
			fn_print_info_nl "Glibc fix: ${green}Using Glibc fix${default}"
			echo -e "	* glibc required: ${red}${glibcrequired}${default}"
			echo -e "	* glibc installed: ${glibcversion}"<commit_msg>SC2086<commit_after>#!/bin/bash
# LinuxGSM check_glibc.sh function
# Author: <NAME>
# Website: https://linuxgsm.com
# Description: Checks if the server has the correct Glibc version or a fix available.

local commandname="CHECK"

info_glibc.sh
info_distro.sh

if [ "${glibcrequired}" == "NOT REQUIRED" ]; then
	:
elif [ "${glibcrequired}" == "UNKNOWN" ]; then
		fn_print_dots "Glibc fix"
		sleep 0.5
		fn_print_error_nl "Glibc fix: ${red}${glibcrequired}${default}"
		echo -e "	* glibc required: ${red}${glibcrequired}${default}"
		echo -e "	* glibc installed: ${glibcversion}"
elif [ "$(printf "%s\n'${glibcrequired}'\n" "${glibcversion}" | sort -V | head -n 1)" != "${glibcrequired}" ]; then
	if [ "${glibcfix}" == "yes" ]; then
		if [ "${function_selfname}" != "command_install.sh" ]; then
			fn_print_dots "Glibc fix"
			sleep 0.5
			fn_print_info_nl "Glibc fix: ${green}Using Glibc fix${default}"
			echo -e "	* glibc required: ${red}${glibcrequired}${default}"
			echo -e "	* glibc installed: ${glibcversion}"
{'fraction_non_alphanumeric': 0.17788697788697788, 'fraction_numerical': 0.0068796068796068794, 'mean_word_length': 4.800569800569801, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3490775', 'n_tokens_mistral': 835, 'n_tokens_neox': 766, 'n_words': 187}