<commit_before>(ns leiningen.clean
  (:use [clojure.contrib.java-utils :only [file delete-file
                                           delete-file-recursively]]))

(defn clean [project & args]
  (delete-file (str (:root project) "/" (:name project) ".jar") true)
  (doseq [d ["classes" "lib"]]
    (println "Cleaning " d) ;; TODO: use clojure.contrib.logging
    (delete-file-recursively (file (:root project) d))))<commit_msg>Don't freak out when cleaning an already-clean project.<commit_after>(ns leiningen.clean
  (:use [clojure.contrib.java-utils :only [file delete-file
                                           delete-file-recursively]]))

(defn clean [project & args]
  (delete-file (str (:root project) "/" (:name project) ".jar") true)
  (doseq [d ["classes" "lib"]]
    (println "Cleaning " d) ;; TODO: use clojure.contrib.logging
    (delete-file-recursively (file (:root project) d) true)))

{'fraction_non_alphanumeric': 0.15748898678414097, 'fraction_numerical': 0.0, 'mean_word_length': 2.918103448275862, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3793018', 'n_tokens_mistral': 291, 'n_tokens_neox': 273, 'n_words': 77}