<commit_before><commit_msg>Randomizing<commit_after>import random

class Randomize:
   def __init__( self, test_mode = False ):
      self.test_mode = test_mode
      random.seed()

   def value( self, lower, upper ):
      if self.test_mode:
         return upper
      return random.randrange(lower, upper + 1)


# Not in test mode
#rand = Randomize()
#print rand.value(20, 40)

# Test mode
#rand = Randomize(True)
#print rand.value(20, 40)
{'fraction_non_alphanumeric': 0.11085972850678733, 'fraction_numerical': 0.020361990950226245, 'mean_word_length': 3.43, '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': '2520414', 'n_tokens_mistral': 153, 'n_tokens_neox': 143, 'n_words': 41}