<commit_before>import os.path
import sys
import unittest


CURDIR = os.path.abspath(os.path.dirname(__file__))
GSLIB_DIR = os.path.split(CURDIR)[0]
GSUTIL_DIR = os.path.split(GSLIB_DIR)[0]
BOTO_DIR = os.path.join(GSUTIL_DIR, 'boto')


def MungePath():
  try:
    import boto
  except ImportError:
    sys.path.append(BOTO_DIR)

  try:
    import gslib
  except ImportError:
    sys.path.append(GSUTIL_DIR)
<commit_msg>Added friendlier error message if test path munging fails.<commit_after>import os.path
import sys
import unittest


CURDIR = os.path.abspath(os.path.dirname(__file__))
GSLIB_DIR = os.path.split(CURDIR)[0]
GSUTIL_DIR = os.path.split(GSLIB_DIR)[0]
BOTO_DIR = os.path.join(GSUTIL_DIR, 'boto')


def MungePath():
  try:
    import boto
  except ImportError:
    sys.path.append(BOTO_DIR)

  try:
    import gslib
  except ImportError:
    sys.path.append(GSUTIL_DIR)

  try:
    import boto
  except ImportError:
    sys.exit('The boto library was not found. Please follow the installation '
             'instructions in the README file.')

  try:
    import gslib
  except ImportError:
    sys.exit('The gslib library was not found. Please follow the installation '
             'instructions in the README file.')
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.0032520325203252032, 'mean_word_length': 3.6806083650190113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5181166', 'n_tokens_mistral': 450, 'n_tokens_neox': 440, 'n_words': 106}