<commit_before>#!/bin/sh
# Usage: omnibus.sh VERSION - installs the requested version of Chef, skipping if it's already installed

install_sh="https://www.opscode.com/chef/install.sh"
requested_version=$1

if type -p chef-solo > /dev/null; then
  installed_version=$(chef-solo --v | awk '{print $2}')
fi
if [ $installed_version == $requested_version ]; then
  echo "Using chef-solo $installed_version at $(which chef-solo)"
else
  if command -v curl &>/dev/null; then
    curl -L "$install_sh" | sudo bash -s -- -v "$requested_version"
  elif command -v wget &>/dev/null; then<commit_msg>switches omnibus bootstrap script to use rubygems to determine Chef version<commit_after>#!/bin/sh
# Usage: omnibus.sh VERSION - installs the requested version of Chef, skipping if it's already installed

install_sh="https://www.opscode.com/chef/install.sh"
requested_version=$1

if type -p chef-solo > /dev/null && gem list -i chef -v $requested_version > /dev/null; then
  echo "Using chef-solo $requested_version at $(which chef-solo)"
else
  if command -v curl &>/dev/null; then
    curl -L "$install_sh" | sudo bash -s -- -v "$requested_version"
  elif command -v wget &>/dev/null; then
{'fraction_non_alphanumeric': 0.13231552162849872, 'fraction_numerical': 0.002544529262086514, 'mean_word_length': 4.064377682403434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6232756', 'n_tokens_mistral': 418, 'n_tokens_neox': 395, 'n_words': 128}