<commit_before>(ns leiningen.new.nwcljs
  (:require [leiningen.new.templates :refer [renderer name-to-path ->files]]
            [leiningen.core.main :as main]))

(def render (renderer "nwcljs"))

(defn nwcljs
  "create a hello world node-webkit app out of box"
  [name]
  (let [data {:name name
              :sanitized (name-to-path name)}]
    (main/info "Generating fresh 'lein new' nwcljs project.")
    (->files data
             [".gitigorne" (render ".gitignore" data)]
             ["Makefile" (render "Makefile" data)]
             ["project.clj" (render "project.clj" data)]
             ["test/hello.cljs" (render "test/hello.cljs" data)]
             ["test/hi.cljs" (render "test/hi.cljs" data)]
             ["src/{{sanitized}}/bootstrap.cljs" (render "src/bootstrap.cljs" data)]
             ["build/index.html" (render "build/index.html" data)]
             ["build/package.json" (render "build/package.json" data)]
             ["build/test/index.js" (render "build/test/index.js" data)]
             ["build/goog.js" (render "build/goog.js" data)]
             "build/node_modules"
             "bin")))<commit_msg>Fix goog.js not found<commit_after>(ns leiningen.new.nwcljs
  (:require [leiningen.new.templates :refer [renderer name-to-path ->files]]
            [leiningen.core.main :as main]))

(def render (renderer "nwcljs"))

(defn nwcljs
  "create a hello world node-webkit app out of box"
  [name]
  (let [data {:name name
              :sanitized (name-to-path name)}]
    (main/info "Generating fresh 'lein new' nwcljs project.")
    (->files data
             [".gitigorne" (render ".gitignore" data)]
             ["Makefile" (render "Makefile" data)]
             ["project.clj" (render "project.clj" data)]
             ["test/hello.cljs" (render "test/hello.cljs" data)]
             ["test/hi.cljs" (render "test/hi.cljs" data)]
             ["src/{{sanitized}}/bootstrap.cljs" (render "src/bootstrap.cljs" data)]
             ["build/index.html" (render "build/index.html" data)]
             ["build/package.json" (render "build/package.json" data)]
             ["build/test/index.js" (render "build/test/index.js" data)]
             ["build/goog" (render "build/goog" data)]
             "build/node_modules"
             "bin")))
{'fraction_non_alphanumeric': 0.16431718061674008, 'fraction_numerical': 0.0, 'mean_word_length': 2.37444279346211, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1335159', 'n_tokens_mistral': 752, 'n_tokens_neox': 737, 'n_words': 172}