<commit_before>;;; build -*- lexical-binding: t -*-

;;; Code:

;;;; requirements
(eval-when-compile
  (require 'cl-lib)
  (require 'eieio))

(require 'vendle-package "vendle/package")

(defmethod vendle:option-build ((package vendle:package))
  (when (vendle:package-build package)
    (setq old-dir default-directory)
    (cl-letf ((commands (vendle:package-build package))
              (path (vendle:package-path package)))
      (mapc
       (lambda (c)
         (cd path)
         (shell-command c nil nil))
       commands))
    (setq default-directory old-dir)))

(provide 'vendle-option-build)

;;; build.el ends here<commit_msg>* vendle/option/build.el: set default-directory as local variable<commit_after>;;; build -*- lexical-binding: t -*-

;;; Code:

;;;; requirements
(eval-when-compile
  (require 'cl-lib)
  (require 'eieio))

(require 'vendle-package "vendle/package")

(defmethod vendle:option-build ((package vendle:package))
  (when (vendle:package-build package)

    (cl-letf ((commands (vendle:package-build package))
              (path (file-name-as-directory (vendle:package-path package))))
      (mapc
       (lambda (c)
         (cl-letf ((default-directory path))
           (shell-command c nil nil)))
       commands))))

(provide 'vendle-option-build)

;;; build.el ends here
{'fraction_non_alphanumeric': 0.15966386554621848, 'fraction_numerical': 0.0, 'mean_word_length': 3.267100977198697, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2936031', 'n_tokens_mistral': 441, 'n_tokens_neox': 435, 'n_words': 99}