<commit_before>class RandomWalk
  def self.generate(limits, array_length)
    starting_point = Random.rand(limits)
    output_array = [starting_point]

    (array_length - 1).times do
      add_or_subtract = Random.rand(-1..1)
      end_point = output_array.last + add_or_subtract
      if end_point <= limits.max && end_point >= limits.min
        output_array << end_point
      else<commit_msg>RandomWalk.generate now accepts a step size<commit_after>class RandomWalk
  def self.generate(limits, array_length, step = 1)
    starting_point = Random.rand(limits)
    output_array = [starting_point]

    (array_length - 1).times do
      add_or_subtract = Random.rand(-step..step)
      end_point = output_array.last + add_or_subtract
      if end_point <= limits.max && end_point >= limits.min
        output_array << end_point
      else
{'fraction_non_alphanumeric': 0.09404761904761905, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 3.3350515463917527, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '2803262', 'n_tokens_mistral': 266, 'n_tokens_neox': 258, 'n_words': 56}