<commit_before>#!/usr/bin/env bash
#
# Bootstrap express script to install/config/start puppet on multi POSIX platforms
# with one line
#
set -e

BOOTSTRAP_TAR_URL=${BOOTSTRAP_TAR_URL:-"https://github.com/MiamiOH/puppet-bootstrap/archive/master.tar.gz"}
PLATFORM=${PLATFORM:-$1}

# Attempt to Detect PLATFORM if not set
if [ -z "${PLATFORM}" ]; then
  case "$(uname -s)" in
  Darwin)
    PLATFORM="mac_os_x"
    echo "[Mac OS X Detected]"
    ;;
  Linux)
    # is lsb available to detect distribution info?
    if hash lsb_release 2>/dev/null; then
      lsb_id=$(lsb_release -is)
      lsb_re=$(lsb_release -rs | cut -f1 -d'.')
      case "${lsb_id}" in
      OracleServer)
        PLATFORM="centos_${lsb_re}_x"
        echo "[${lsb_id} ${lsb_re} Detected]"
        ;;
      Ubuntu)
        PLATFORM="ubuntu"
        echo "[${lsb_id} ${lsb_re} Detected]"
        ;;
      esac
    elif [ -e /etc/redhat-release ]; then
      etcrh_re=$(cat /etc/redhat-release | grep -o [0-9] | head -n 1)
      PLATFORM="centos_${etcrh_re}_x"
      echo "[Redhat ${etcrh_re} Detected]"
    fi
    ;;
  esac
fi

bootstrap_tmp_path=$(mktemp -d -t puppet-bootstrap.XXXXXXXXXX)
\curl -sSL "${BOOTSTRAP_TAR_URL}" | tar xz -C "${bootstrap_tmp_path}"
source "${bootstrap_tmp_path}/puppet-bootstrap-master/bootstrap.sh" "$@"<commit_msg>Oracle Linux 5 reports itself as EnterpriseEnterpriseServer<commit_after>#!/usr/bin/env bash
#
# Bootstrap express script to install/config/start puppet on multi POSIX platforms
# with one line
#
set -e

BOOTSTRAP_TAR_URL=${BOOTSTRAP_TAR_URL:-"https://github.com/MiamiOH/puppet-bootstrap/archive/master.tar.gz"}
PLATFORM=${PLATFORM:-$1}

# Attempt to Detect PLATFORM if not set
if [ -z "${PLATFORM}" ]; then
  case "$(uname -s)" in
  Darwin)
    PLATFORM="mac_os_x"
    echo "[Mac OS X Detected]"
    ;;
  Linux)
    # is lsb available to detect distribution info?
    if hash lsb_release 2>/dev/null; then
      lsb_id=$(lsb_release -is)
      lsb_re=$(lsb_release -rs | cut -f1 -d'.')
      case "${lsb_id}" in
      OracleServer|EnterpriseEnterpriseServer)
        PLATFORM="centos_${lsb_re}_x"
        echo "[${lsb_id} ${lsb_re} Detected]"
        ;;
      Ubuntu)
        PLATFORM="ubuntu"
        echo "[${lsb_id} ${lsb_re} Detected]"
        ;;
      esac
    elif [ -e /etc/redhat-release ]; then
      etcrh_re=$(cat /etc/redhat-release | grep -o [0-9] | head -n 1)
      PLATFORM="centos_${etcrh_re}_x"
      echo "[Redhat ${etcrh_re} Detected]"
    fi
    ;;
  esac
fi

bootstrap_tmp_path=$(mktemp -d -t puppet-bootstrap.XXXXXXXXXX)
\curl -sSL "${BOOTSTRAP_TAR_URL}" | tar xz -C "${bootstrap_tmp_path}"
source "${bootstrap_tmp_path}/puppet-bootstrap-master/bootstrap.sh" "$@"
{'fraction_non_alphanumeric': 0.15005557613931086, 'fraction_numerical': 0.004816598740274175, 'mean_word_length': 3.1474654377880182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1108936', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1010, 'n_words': 226}