<commit_before>(ns puzzule.q9)

(defn path [b g]
  (cond (= b g) 0
        (= (- b g) 9) (path (- b 1) g)
        (or (= b 0) (= g 0)) 1
        :else (+ (path (- b 1) g)
                 (path b (- g 1)))))

(path 19 10)<commit_msg>change q9 answer<commit_after>(ns puzzule.q9)

(defn path-recur [b g]
  (cond (or (= b g) (= (- b g) 10)) 0
        (or (= b 0) (= g 0)) 1
        :else (+ (path-recur (- b 1) g)
                 (path-recur b (- g 1)))))

(defn path [b g]
  (+ (path-recur (- b 1) g)
     (path-recur b (- g 1))))

(path 20 10)
{'fraction_non_alphanumeric': 0.21875, 'fraction_numerical': 0.05330882352941176, 'mean_word_length': 1.645631067961165, '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': '1025209', 'n_tokens_mistral': 263, 'n_tokens_neox': 228, 'n_words': 80}