<commit_before>last_two = [1, 1]
fib_index = 2

while last_two[1].to_s.length < 1000
  next_fib = last_two.reduce(:+)
  fib_index += 1
  last_two[0] = last_two[1]
  last_two[1] = next_fib
end

p fib_index<commit_msg>Refactor 25 in ruby for simplicity<commit_after>fibonacci = [1, 1]

while fibonacci.last.to_s.length < 1000
  fibonacci << fibonacci[-1] + fibonacci[-2]
end

p fibonacci.length
{'fraction_non_alphanumeric': 0.12755102040816327, 'fraction_numerical': 0.05612244897959184, 'mean_word_length': 4.695652173913044, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6194787', 'n_tokens_mistral': 183, 'n_tokens_neox': 162, 'n_words': 35}