<commit_before>;; Ruby Programming
(eval-when-compile
  (load-file "pmade-loadpath.el"))

(defun pmade-ruby-mode-hook ()
  "Correctly setup a Ruby buffer"
  (require 'ruby-end)
  (ruby-end-mode t)
  (inf-ruby-keys)
  (pmade-programming-mode-hook)
  (define-key ruby-mode-map "\C-c\t" 'pmade-pound-comment-bar)
  (setq align-mode-rules-list
        '((ruby-comma
           (regexp . ",\\(\\s-*\\)")
           (group  . 1)
           (repeat . t))
          (ruby-hash
           (regexp . "\\(\\s-*\\)=>")
           (group  . 1)
           (repeat . t))
          (ruby-eq
           (regexp . "\\(\\s-*\\)=")
           (group  . 1)
           (repeat . nil)))))

;; Trigger ruby-mode
(add-to-list 'load-path "~/.emacs.d/packages/ruby")
(add-to-list 'auto-mode-alist '("\\.rjs$"    . ruby-mode))
(add-to-list 'auto-mode-alist '("\\.rake$"   . ruby-mode))
(add-to-list 'auto-mode-alist '("\\.irbrc$"  . ruby-mode))
(add-to-list 'auto-mode-alist '("^Rakefile$" . ruby-mode))<commit_msg>Delete old ruby-end mode for now<commit_after>;; Ruby Programming
(eval-when-compile
  (load-file "pmade-loadpath.el"))

(defun pmade-ruby-mode-hook ()
  "Correctly setup a Ruby buffer"
  (inf-ruby-keys)
  (pmade-programming-mode-hook)
  (define-key ruby-mode-map "\C-c\t" 'pmade-pound-comment-bar)
  (setq align-mode-rules-list
        '((ruby-comma
           (regexp . ",\\(\\s-*\\)")
           (group  . 1)
           (repeat . t))
          (ruby-hash
           (regexp . "\\(\\s-*\\)=>")
           (group  . 1)
           (repeat . t))
          (ruby-eq
           (regexp . "\\(\\s-*\\)=")
           (group  . 1)
           (repeat . nil)))))

;; Trigger ruby-mode
(add-to-list 'load-path "~/.emacs.d/packages/ruby")
(add-to-list 'auto-mode-alist '("\\.rjs$"    . ruby-mode))
(add-to-list 'auto-mode-alist '("\\.rake$"   . ruby-mode))
(add-to-list 'auto-mode-alist '("\\.irbrc$"  . ruby-mode))
(add-to-list 'auto-mode-alist '("^Rakefile$" . ruby-mode))
{'fraction_non_alphanumeric': 0.2291132752434649, 'fraction_numerical': 0.0030753459764223477, 'mean_word_length': 1.9047619047619047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1962532', 'n_tokens_mistral': 822, 'n_tokens_neox': 766, 'n_words': 134}