<commit_before>#!/bin/sh

# Required version of Python
# Python 2.0 = 0x2000000
# Python 2.2 = 0x2020000
VERSION=${1:-0x2000000}

for pypath in "$PYTHON" "$PYTHON2" python python2; do
  DETECT_PYTHON="import sys;sys.exit((sys.hexversion < $VERSION) and 1 or 0)"
  if "$pypath" -c "$DETECT_PYTHON" >/dev/null 2>/dev/null; then
    echo $pypath
    exit 0
  fi
done
exit 1<commit_msg>* build/find_python.sh: Work on Solaris's /bin/sh by skipping over blank   environment variables.<commit_after>#!/bin/sh

# Required version of Python
# Python 2.0 = 0x2000000
# Python 2.2 = 0x2020000
VERSION=${1:-0x2000000}

for pypath in "$PYTHON" "$PYTHON2" python python2; do
  if [ "x$pypath" != "x" ]; then
    DETECT_PYTHON="import sys;sys.exit((sys.hexversion < $VERSION) and 1 or 0)"
    if "$pypath" -c "$DETECT_PYTHON" >/dev/null 2>/dev/null; then
      echo $pypath
      exit 0
    fi
  fi
done
exit 1
{'fraction_non_alphanumeric': 0.140625, 'fraction_numerical': 0.08035714285714286, 'mean_word_length': 3.696335078534031, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3176868', 'n_tokens_mistral': 407, 'n_tokens_neox': 350, 'n_words': 99}