<commit_before>(require 'flymake)

(defcustom my/flymake-shell-of-choice
  "/bin/bash"
  "Path of shell.")

(defcustom my/flymake-shell-arguments
  (list "-n")
  "Shell arguments to invoke syntax checking.")

(defcustom my/flymake-shell-err-line-pattern-re
  '(("^\\(.+\\): line \\([0-9]+\\): \\(.+\\)$" 1 2 nil 3)))

(defun flymake-shell-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
                     'flymake-create-temp-inplace))
         (local-file (file-relative-name
                      temp-file
                      (file-name-directory buffer-file-name)))
         )
    (list my/flymake-shell-of-choice (append my/flymake-shell-arguments (list local-file)))
   )
 )

(add-to-list 'flymake-allowed-file-name-masks
             '("\\.sh\\'" flymake-shell-init)
 )<commit_msg>fix shell mode flymake<commit_after>(require 'flymake)

(defcustom my/flymake-shell-of-choice
  "/bin/bash"
  "Path of shell.")

(defcustom my/flymake-shell-arguments
  (list "-n")
  "Shell arguments to invoke syntax checking.")

(defcustom my/flymake-shell-err-line-pattern-re
  '(("^\\(.+\\): line \\([0-9]+\\): \\(.+\\)$" 1 2 nil 3))
  "Shell error pattern")

(defun flymake-shell-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
                     'flymake-create-temp-inplace))
         (local-file (file-relative-name
                      temp-file
                      (file-name-directory buffer-file-name)))
         )
    (list my/flymake-shell-of-choice (append my/flymake-shell-arguments (list local-file)))
   )
 )

(add-to-list 'flymake-allowed-file-name-masks
             '("\\.sh\\'" flymake-shell-init)
 )
{'fraction_non_alphanumeric': 0.18489425981873112, 'fraction_numerical': 0.006042296072507553, 'mean_word_length': 2.279207920792079, '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': '4314229', 'n_tokens_mistral': 582, 'n_tokens_neox': 563, 'n_words': 100}