<commit_before>#!/bin/bash

key="^exclude.*"
listOfExcludes=`cat /etc/yum.conf | grep "exclude="`
lengthOfExclude=`echo ${#listOfExcludes}`
if [ "$lengthOfExclude" -gt 0 ]; then
	tobeExcluded=$listOfExcludes" kernel*"
	sed -i -e "s~$key~$tobeExcluded~" "/etc/yum.conf"
else
	echo "exclude=kernel*" >> "/etc/yum.conf"
fi

yum update -y
yum -y -q install yum-utils wget net-tools

cp -f confs/k8s.conf /etc/sysctl.d/k8s.conf
sysctl --system
<commit_msg>Update prep-os.sh<commit_after>#!/bin/bash

key="^exclude.*"
listOfExcludes=`cat /etc/yum.conf | grep "exclude="`
lengthOfExclude=`echo ${#listOfExcludes}`
if [ "$lengthOfExclude" -gt 0 ]; then
	tobeExcluded=$listOfExcludes" kernel*"
	sed -i -e "s~$key~$tobeExcluded~" "/etc/yum.conf"
else
	echo "exclude=kernel*" >> "/etc/yum.conf"
fi

yum update -y
yum -y -q install yum-utils wget net-tools

cp -f confs/k8s.conf /etc/sysctl.d/k8s.conf

{'fraction_non_alphanumeric': 0.1842696629213483, 'fraction_numerical': 0.006741573033707865, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3064306', 'n_tokens_mistral': 397, 'n_tokens_neox': 378, 'n_words': 81}