<commit_before>#!/bin/bash

#To update the product_default_version
#cd omnibus-software/config/software

Prod_file="prod_default_version.json"
cd ../../config/software/
rm -rf $Prod_file 
echo "{" >> $Prod_file 
for FILE in *.rb; do 
	prod=$(echo "$FILE" |cut -d "." -f1);
        dv=$( grep "default_version" $FILE|  cut -d " " -f2) 
	if [ "$prod" = "cacerts" ]; then
		echo "\"$prod\": $dv ,">> $Prod_file; 
	else
		if echo $dv | grep -qE '[0-9]\.[0-9]+' ;then
		echo "\"$prod\": $dv ,">> $Prod_file; 
        	fi
	fi
done;
$(printf '%s\n' '$' 's/.$//' wq | ex $Prod_file)
echo "}" >> $Prod_file 
mv $Prod_file ../../.expeditor/Version_Inspector/<commit_msg>Generates prod_default_version.json<commit_after>#!/bin/bash

#To update the product_default_version
#cd omnibus-software/config/software
#sh update_prod_default_version.sh 

Prod_file="prod_default_version.json"
cd ../../config/software/
rm -rf $Prod_file 
echo "{" >> $Prod_file 
for FILE in *.rb; do 
	prod=$(echo "$FILE" |cut -d "." -f1);
        dv=$( grep "default_version" $FILE|  cut -d " " -f2) 
	if [ "$prod" = "cacerts" ]; then
		echo "\"$prod\": $dv ,">> $Prod_file; 
	else
		if echo $dv | grep -qE '[0-9]\.[0-9]+' ;then
		echo "\"$prod\": $dv ,">> $Prod_file; 
        	fi
	fi
done;
$(printf '%s\n' '$' 's/.$//' wq | ex $Prod_file)
echo "}" >> $Prod_file 
mv $Prod_file ../../.expeditor/Version_Inspector/
{'fraction_non_alphanumeric': 0.21843251088534107, 'fraction_numerical': 0.008708272859216255, 'mean_word_length': 3.1914893617021276, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 19, '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': '2889641', 'n_tokens_mistral': 604, 'n_tokens_neox': 558, 'n_words': 134}