<commit_before>#!/bin/sh -eux

# update packages
echo "Updating packages"
yum clean all
yum update -y

# clean up all yum caches
echo "Cleaning up yum caches"
yum clean all

# clean up network devices
echo "Cleaning up network devices"
rm -f /etc/udev/rules.d/70-persistent-net.rules
find /etc/sysconfig/network-scripts -name "ifcfg-enp0s*" -exec rm -f '{}' +
find /var/lib/dhclient -type f -exec rm -f '{}' +

# remove hostname
echo "Removing hostname"
cat /dev/null > /etc/hostname

# disable IPv6
echo "Disabling IPv6"
echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network
echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6.conf

# disable Avahi
echo "Disabling Avahi"
systemctl disable avahi-daemon.service

# disable Kdump
echo "Disabling Kdump"
systemctl disable kdump.service

# remove temporary files
echo "Removing temporary files"
rm -rf *.iso
rm -rf /tmp/*

# zero out rest of free space
echo "Zero out rest of free space"
dd if=/dev/zero of=/EMPTY bs=1M
rm -rf /EMPTY
sync<commit_msg>disable chrony & wpa services<commit_after>#!/bin/sh -eux

# update packages
echo "Updating packages"
yum clean all
yum update -y

# clean up all yum caches
echo "Cleaning up yum caches"
yum clean all

# clean up network devices
echo "Cleaning up network devices"
rm -f /etc/udev/rules.d/70-persistent-net.rules
find /etc/sysconfig/network-scripts -name "ifcfg-enp0s*" -exec rm -f '{}' +
find /var/lib/dhclient -type f -exec rm -f '{}' +

# remove hostname
echo "Removing hostname"
cat /dev/null > /etc/hostname

# disable IPv6
echo "Disabling IPv6"
echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network
echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6.conf

# disable Avahi
echo "Disabling Avahi"
systemctl disable avahi-daemon.service

# disable Chrony
echo "Disabling Chrony"
systemctl disable chronyd.service

# disable WPA supplicant
echo "Disabling WPA supplicant"
systemctl disable wpa_supplicant.service

# disable Kdump
echo "Disabling Kdump"
systemctl disable kdump.service

# remove temporary files
echo "Removing temporary files"
rm -rf *.iso
rm -rf /tmp/*

# zero out rest of free space
echo "Zero out rest of free space"
dd if=/dev/zero of=/EMPTY bs=1M
rm -rf /EMPTY
sync
{'fraction_non_alphanumeric': 0.10686675761709868, 'fraction_numerical': 0.009095043201455207, 'mean_word_length': 4.128205128205129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6154768', 'n_tokens_mistral': 795, 'n_tokens_neox': 778, 'n_words': 266}