<commit_before>#!env python

import os

integration_test_dir = os.getcwd()

standalone_test = integration_test_dir + '/standalone/'

for dir_name in os.listdir(standalone_test):
  print dir_name
  os.chdir(standalone_test + '/' + dir_name)
  os.system('bash run.sh')

with_cpu_test = integration_test_dir + '/with-cpu/'
for dir_name in os.listdir(with_cpu_test):
  print dir_name
  os.chdir(with_cpu_test + '/' + dir_name)
  os.system('bash run.sh')<commit_msg>Minor usability improvements to the integration test run script.<commit_after>#!env python
#
# Convenience script to run all integration tests. Does not perform any
# checking to make sure that they have passed - the user has to do this
# manually for now.

import os

integration_test_dir = os.path.join(os.environ["ALADDIN_HOME"], "integration-test")

standalone_test = integration_test_dir + '/standalone/'
for dir_name in os.listdir(standalone_test):
  print "\n\n"
  print "*******************************************"
  print "standalone/%s" % dir_name
  os.chdir(standalone_test + '/' + dir_name)
  os.system('bash run.sh')

with_cpu_test = integration_test_dir + '/with-cpu/'
for dir_name in os.listdir(with_cpu_test):
  print "\n\n"
  print "*******************************************"
  print "with-cpu/%s" % dir_name
  os.chdir(with_cpu_test + '/' + dir_name)
  os.system('bash run.sh')
{'fraction_non_alphanumeric': 0.17880794701986755, 'fraction_numerical': 0.0, 'mean_word_length': 5.017699115044247, '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': '7122031', 'n_tokens_mistral': 468, 'n_tokens_neox': 458, 'n_words': 108}