<commit_before>(ns asciinema.component.a2png
  (:require [asciinema.boundary.png-generator :as png-generator]
            [asciinema.util.io :refer [cleanup-input-stream create-tmp-dir]]
            [clojure.java
             [io :as io]
             [shell :as shell]]))

(defn- exec-a2png [bin-path in-url out-path {:keys [snapshot-at theme scale]}]
  (let [{:keys [exit] :as result} (shell/sh bin-path
                                            "-t" theme
                                            "-s" (str scale)
                                            in-url
                                            out-path
                                            (str snapshot-at))]
    (when-not (zero? exit)<commit_msg>Fix arguments for a2png<commit_after>(ns asciinema.component.a2png
  (:require [asciinema.boundary.png-generator :as png-generator]
            [asciinema.util.io :refer [cleanup-input-stream create-tmp-dir]]
            [clojure.java
             [io :as io]
             [shell :as shell]]))

(defn- exec-a2png [bin-path in-url out-path {:keys [snapshot-at theme scale]}]
  (let [{:keys [exit] :as result} (shell/sh bin-path
                                            in-url
                                            out-path
                                            (str snapshot-at)
                                            theme
                                            (str scale))]
    (when-not (zero? exit)
{'fraction_non_alphanumeric': 0.10866574965612105, 'fraction_numerical': 0.0034387895460797797, 'mean_word_length': 1.0785714285714285, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '952550', 'n_tokens_mistral': 368, 'n_tokens_neox': 366, 'n_words': 90}