<commit_before>#lang Scheme

(define (sum_even_fibs prev curr next)
  (if (<= curr 4000000) 
             (+ 
              (if (= (remainder curr 2) 0) curr 0)
              (sum_even_fibs curr next (+ curr next))
              )
         0)
  )

(sum_even_fibs 0 1 1)<commit_msg>Refactor problem 2<commit_after>#lang Scheme

(define (sumEvenFibs prev curr next)
  (if (> curr 4000000) 0
      (+ 
       (if (even? curr) curr 0)
       (sumEvenFibs curr next (+ curr next))
       )
      ) 
  )

(sumEvenFibs 0 1 1)
{'fraction_non_alphanumeric': 0.1138996138996139, 'fraction_numerical': 0.052123552123552123, 'mean_word_length': 1.9157303370786516, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '67324', 'n_tokens_mistral': 218, 'n_tokens_neox': 193, 'n_words': 53}