<commit_before>;;; -*- lexical-binding: t; -*-
(require 'ar-vsetq)
(require 'ar-csetq)

;; Prevent Extraneous Tabs.
;; From http://www.gnu.org/software/emacs/manual/html_node/eintr/Indent-Tabs-Mode.html
(setq-default indent-tabs-mode nil)

;; Show keystrokes earlier (ie. C-x)
(ar/vsetq echo-keystrokes 0.1)

;; No need to keep duplicates in prompt history.
(ar/vsetq history-delete-duplicates t)

;; Shows keyboard macros as Emacs lisp.
(use-package elmacro
  :ensure t)

(use-package change-inner
  :ensure t
  :bind (("M-+" . change-outer)
         ("M-_" . change-inner)))

(use-package expand-region
  :ensure t
  :bind ("C-c w" . er/expand-region)
  :config
  (defun ar/add-mode-expansions ()
    ;; Making expansion greedier by removing
    ;; `er/mark-word' and other mark functions.
    (setq-local er/try-expand-list
                '(er/mark-symbol
                  er/mark-outside-quotes
                  er/mark-outside-pairs
                  er/mark-comment
                  er/mark-url
                  er/mark-email
                  er/mark-defun)))
  (er/enable-mode-expansions 'text-mode 'ar/add-mode-expansions)
  (er/enable-mode-expansions 'prog-mode 'ar/add-mode-expansions))

;; underscore -> UPCASE -> CamelCase conversion of names.
(use-package string-inflection
  :ensure t
  :bind (:map
         prog-mode-map
         ("C-M-j" . string-inflection-cycle)
         :map
         c-mode-base-map
         ("C-M-j" . string-inflection-cycle)))

(use-package dabbrev
  :config
  ;; Case-sensitive fold search search (ie. M-/ to autocomplete).
  (ar/vsetq dabbrev-case-fold-search nil))

(defun ar/yank-line-below (arg)
  "Yank to line below. With ARG, repeat."
  (interactive "p")
  (let ((lines))
    (dotimes (_i arg)
      (setq lines
            (concat lines
                    (current-kill 0)
                    "\n")))<commit_msg>Tweaking ar/yank-line-below<commit_after>;;; -*- lexical-binding: t; -*-
(require 'ar-vsetq)
(require 'ar-csetq)

;; Prevent Extraneous Tabs.
;; From http://www.gnu.org/software/emacs/manual/html_node/eintr/Indent-Tabs-Mode.html
(setq-default indent-tabs-mode nil)

;; Show keystrokes earlier (ie. C-x)
(ar/vsetq echo-keystrokes 0.1)

;; No need to keep duplicates in prompt history.
(ar/vsetq history-delete-duplicates t)

;; Shows keyboard macros as Emacs lisp.
(use-package elmacro
  :ensure t)

(use-package change-inner
  :ensure t
  :bind (("M-+" . change-outer)
         ("M-_" . change-inner)))

(use-package expand-region
  :ensure t
  :bind ("C-c w" . er/expand-region)
  :config
  (defun ar/add-mode-expansions ()
    ;; Making expansion greedier by removing
    ;; `er/mark-word' and other mark functions.
    (setq-local er/try-expand-list
                '(er/mark-symbol
                  er/mark-outside-quotes
                  er/mark-outside-pairs
                  er/mark-comment
                  er/mark-url
                  er/mark-email
                  er/mark-defun)))
  (er/enable-mode-expansions 'text-mode 'ar/add-mode-expansions)
  (er/enable-mode-expansions 'prog-mode 'ar/add-mode-expansions))

;; underscore -> UPCASE -> CamelCase conversion of names.
(use-package string-inflection
  :ensure t
  :bind (:map
         prog-mode-map
         ("C-M-j" . string-inflection-cycle)
         :map
         c-mode-base-map
         ("C-M-j" . string-inflection-cycle)))

(use-package dabbrev
  :config
  ;; Case-sensitive fold search search (ie. M-/ to autocomplete).
  (ar/vsetq dabbrev-case-fold-search nil))

(defun ar/yank-line-below (arg)
  "Yank to line below. With ARG, repeat."
  (interactive "p")
  (let ((lines))
    (dotimes (_i arg)
      (setq lines
            (concat lines
                    (current-kill 0)
                    "\n")))
    (setq lines (string-remove-suffix "\n" lines))
{'fraction_non_alphanumeric': 0.143646408839779, 'fraction_numerical': 0.0015785319652722968, 'mean_word_length': 2.203032855939343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '788390', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1307, 'n_words': 297}