<commit_before>;;; init-load-path.el

(fset '! 'eval-when-compile)

(defconst narf-emacs-dir     user-emacs-directory)
(defconst narf-core-dir      (! (concat narf-emacs-dir "core/")))
(defconst narf-modules-dir   (! (concat narf-emacs-dir "modules/")))
(defconst narf-contrib-dir   (! (concat narf-emacs-dir "contrib/")))
(defconst narf-private-dir   (! (concat narf-emacs-dir "private/")))
(defconst narf-elpa-dir      (! (concat narf-emacs-dir ".cask/" emacs-version "/elpa/")))
(defconst narf-temp-dir      (! (concat narf-private-dir "cache/" (system-name) "/")))
(defconst narf-script-dir    (! (concat narf-emacs-dir "scripts/")))
(defconst narf-snippet-dirs  (! (list (concat narf-private-dir "snippets/")
                                      (concat narf-private-dir "templates/"))))

(! (defun --subdirs (path)
     (let ((result '())
           (paths (ignore-errors (directory-files path t "^[^.]" t))))
       (dolist (file paths)
         (when (file-directory-p file)
           (add-to-list 'result file)))
       result)))

;; Scan various folders to populate the load-dirs
(setq custom-theme-load-path
      (! (append (--subdirs (concat narf-private-dir "themes/"))
                 custom-theme-load-path)))<commit_msg>Don't eval-when-compile dir consts<commit_after>;;; init-load-path.el

(fset '! 'eval-when-compile)

(defconst narf-emacs-dir     user-emacs-directory)
(defconst narf-core-dir      (concat narf-emacs-dir "core/"))
(defconst narf-modules-dir   (concat narf-emacs-dir "modules/"))
(defconst narf-contrib-dir   (concat narf-emacs-dir "contrib/"))
(defconst narf-private-dir   (concat narf-emacs-dir "private/"))
(defconst narf-elpa-dir      (concat narf-emacs-dir ".cask/" emacs-version "/elpa/"))
(defconst narf-temp-dir      (concat narf-private-dir "cache/" (system-name) "/"))
(defconst narf-script-dir    (concat narf-emacs-dir "scripts/"))
(defconst narf-snippet-dirs  (list (concat narf-private-dir "snippets/")
                                   (concat narf-private-dir "templates/")))

(! (defun --subdirs (path)
     (let ((result '())
           (paths (ignore-errors (directory-files path t "^[^.]" t))))
       (dolist (file paths)
         (when (file-directory-p file)
           (add-to-list 'result file)))
       result)))

;; Scan various folders to populate the load-dirs
(setq custom-theme-load-path
      (! (append (--subdirs (concat narf-private-dir "themes/"))
                 custom-theme-load-path)))
{'fraction_non_alphanumeric': 0.17802108678021086, 'fraction_numerical': 0.0, 'mean_word_length': 2.8012326656394455, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2923770', 'n_tokens_mistral': 866, 'n_tokens_neox': 843, 'n_words': 182}