<commit_before>(ns matross.core
  (:require [clojure.tools.cli :refer [parse-opts]]
            [matross.executor :refer [run!]])
  (:gen-class))

(def config {:connections [{:type :ssh :hostname "localhost"}
                           {:type :local}
                           {:type :ssh :hostname "127.0.0.1"}]
             :tasks [{:type :template
                      :content "I'm sorry, {{name}}. I can't let you do that."
                      :dest "/tmp/template"
                      :vars {:name "Darrell"}}
                     {:type :command
                      :command "/bin/echo -n `whoami`: $test"
                      :env {:test "it works!"}}
                     {:type :command
                      :command "seq 10 | tail -n 5 | xargs echo -n"}]})

(def cli-opts
  [["-h" "--help"]
   ["-s" "--ask-password"]
   ["-S" "--ask-sudo-pass"]])

(defn display-help []
  (prn "matross!"))

(defn -main [& args]
  (let [opts (parse-opts args cli-opts)]
    (if (get-in opts [:options :help])
      (display-help)
      (run! opts config))))
<commit_msg>expode debug command line flag<commit_after>(ns matross.core
  (:require [clojure.tools.cli :refer [parse-opts]]
            [matross.executor :refer [run!]])
  (:gen-class))

(def config {:connections [{:type :ssh :hostname "localhost"}
                           {:type :local}
                           {:type :ssh :hostname "127.0.0.1"}]
             :tasks [{:type :template
                      :content "I'm sorry, {{name}}. I can't let you do that."
                      :dest "/tmp/template"
                      :vars {:name "Darrell"}}
                     {:type :command
                      :command "/bin/echo -n `whoami`: $test"
                      :env {:test "it works!"}}
                     {:type :command
                      :command "seq 10 | tail -n 5 | xargs echo -n"}]})

(def cli-opts
  [["-h" "--help"]
   ["-s" "--ask-password"]
   ["-S" "--ask-sudo-pass"]
   ["-d" "--debug"]])

(defn display-help []
  (prn "matross!"))

(defn -main [& args]
  (let [opts (parse-opts args cli-opts)]
    (if (get-in opts [:options :help])
      (display-help)
      (run! opts config))))

{'fraction_non_alphanumeric': 0.17969821673525377, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 1.5530921820303385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1417882', 'n_tokens_mistral': 731, 'n_tokens_neox': 686, 'n_words': 190}