<commit_before>#!/bin/bash -xe

function revert_back_to_centos() {
  # Removes redhat-release-server rpm and replaces it with centos-release
  echo "Removing Red Hat temporary configuration."
  if rpm -q redhat-release-server &>/dev/null; then
    rpm -Uvh --force /root/centos-release/centos-release*.rpm
    rm -f /etc/yum.repos.d/CentOS*
    rpm -e --nodeps --noscripts redhat-release-server
  fi
  #Disable subscription-manager and rhn plugins
  for plugin in $rhsm_plugins $rhn_plugins; do
    sed -i 's/^enabled.*/enabled=0/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
  done
  rm -f /etc/yum/vars/releasever
  yum-config-manager --enable 'nailgun' &> /dev/null
  echo "Unsubscribing from RHSM..."
  subscription-manager unregister || :`
}

trap revert_back_to_centos EXIT<commit_msg>remove typo<commit_after>#!/bin/bash -xe

function revert_back_to_centos() {
  # Removes redhat-release-server rpm and replaces it with centos-release
  echo "Removing Red Hat temporary configuration."
  if rpm -q redhat-release-server &>/dev/null; then
    rpm -Uvh --force /root/centos-release/centos-release*.rpm
    rm -f /etc/yum.repos.d/CentOS*
    rpm -e --nodeps --noscripts redhat-release-server
  fi
  #Disable subscription-manager and rhn plugins
  for plugin in $rhsm_plugins $rhn_plugins; do
    sed -i 's/^enabled.*/enabled=0/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
  done
  rm -f /etc/yum/vars/releasever
  yum-config-manager --enable 'nailgun' &> /dev/null
  echo "Unsubscribing from RHSM..."
  subscription-manager unregister || :
}

trap revert_back_to_centos EXIT
{'fraction_non_alphanumeric': 0.13412351840299438, 'fraction_numerical': 0.002495321272613849, 'mean_word_length': 3.430939226519337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5008749', 'n_tokens_mistral': 592, 'n_tokens_neox': 567, 'n_words': 140}