<commit_before>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Package: the package manager. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; Setup package management.
(require 'package)

(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))

(defun ensure-package-installed (&rest packages)
  "Ensure every package listed is installed. If a packagge is not installed, try to install it.
   Returns a list of installed packages, or nil if every package is skipped."
  (mapcar
   (lambda (package)
     (if (package-installed-p package)
         nil
       (if (y-or-n-p (format "Package %s is missing. Install it? " package))
         (package-install package)
         package)))
   packages))

; Make sure we have package data.
(or (file-exists-p package-user-dir)
    (package-refresh-contents))

; Activate installed packages.
(setq package-enable-at-startup nil)
(package-initialize)

; Packages to use, in rough order of descending importance.
;flycheck python go go go
(ensure-package-installed 'evil
                          'evil-leader
			  ;'evil-escape
                          'magit
                          'anzu
                          'linum-relative
			  'flycheck
			  'flycheck-clojure
			  'flycheck-package
			  'flylisp
                          'powerline
                          'powerline-evil
                          'paredit
                          'helm)
; Themes. In a different call, b/c they went rogue.
(ensure-package-installed 'ample-theme
                          'zenburn-theme
                          'warm-night-theme
                          'solarized-theme
                          'monokai-theme
                          'darcula-theme
                          )
(provide 'config-package)
<commit_msg>Bad emacs, no tab literals.<commit_after>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Package: the package manager. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; Setup package management.
(require 'package)

(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))

(defun ensure-package-installed (&rest packages)
  "Ensure every package listed is installed. If a packagge is not installed, try to install it.
   Returns a list of installed packages, or nil if every package is skipped."
  (mapcar
   (lambda (package)
     (if (package-installed-p package)
         nil
       (if (y-or-n-p (format "Package %s is missing. Install it? " package))
         (package-install package)
         package)))
   packages))

; Make sure we have package data.
(or (file-exists-p package-user-dir)
    (package-refresh-contents))

; Activate installed packages.
(setq package-enable-at-startup nil)
(package-initialize)

; Packages to use, in rough order of descending importance.
;flycheck python go go go
(ensure-package-installed 'evil
                          'evil-leader
                          ;'evil-escape
                          'magit
                          'anzu
                          'linum-relative
                          ;'flycheck
                          ;'flycheck-clojure
                          ;'flycheck-package
                          ;'flylisp
                          'powerline
                          'powerline-evil
                          'paredit
                          'helm)
; Themes. In a different call, b/c they went rogue.
(ensure-package-installed 'ample-theme
                          'zenburn-theme
                          'warm-night-theme
                          'solarized-theme
                          'monokai-theme
                          'darcula-theme
                          )
(provide 'config-package)

{'fraction_non_alphanumeric': 0.13628363087754589, 'fraction_numerical': 0.0, 'mean_word_length': 1.7006109979633401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2626209', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1088, 'n_words': 284}