<commit_before>;;; tools/password-store/autoload.el -*- lexical-binding: t; -*-

;;;###autoload
(defun +pass/open ()
  (interactive)
  (cond ((featurep! :completion ivy)
         (+pass/ivy))
        ((featurep! :completion helm)
         (helm-pass))
        (t
         (pass))))

;;;###autoload
(defun +pass-get-field (entry fields)
  (if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
      (cl-loop for key in (doom-enlist fields)
               when (assoc key data)
               return (cdr it))
    (error "Couldn't find entry: %s" entry)))<commit_msg>Disable +pass-get-field in noninteractive session<commit_after>;;; tools/password-store/autoload.el -*- lexical-binding: t; -*-

;;;###autoload
(defun +pass/open ()
  (interactive)
  (cond ((featurep! :completion ivy)
         (+pass/ivy))
        ((featurep! :completion helm)
         (helm-pass))
        (t
         (pass))))

;;;###autoload
(defun +pass-get-field (entry fields)
  (unless noninteractive
    (if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
        (cl-loop for key in (doom-enlist fields)
                 when (assoc key data)
                 return (cdr it))
      (error "Couldn't find entry: %s" entry))))
{'fraction_non_alphanumeric': 0.1693679092382496, 'fraction_numerical': 0.0, 'mean_word_length': 2.5386819484240686, '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': '5311963', 'n_tokens_mistral': 424, 'n_tokens_neox': 414, 'n_words': 107}