<commit_before>EMACS=emacs
CACHE_DIR="private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
REPO_URL="https://github.com/hlissner"

all: install autoloads init.elc

# If you run either of these with emacs open, run doom-reload afterwards
install: autoloads _install init.elc
update: autoloads _update core/core.elc init.elc

autoloads:
	@$(EMACS) --batch -l init.el --eval '(doom-reload-autoloads)' 2>&1

snippets:
	@[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets

clean:
	@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa tramp
	@rm -rf projectile-bookmarks.eld projectile.cache company-statistics-cache.el
	@rm -rf var semanticdb anaconda-mode
	@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/defuns/*.elc

clean-cache:
	@find $(CACHE_DIR) -type f -maxdepth 1 -delete
	@rm -f $(CACHE_DIR)/{workgroups,pcache,ltxpng,backup}/*

########################################

%.elc: %.el
	@$(EMACS) --batch -l init.el -f batch-byte-compile 2>&1 $<

_update:
	@cask update 2>&1
	@rm -f init.elc core/core.elc

_install:
	@cask install 2>&1
	@rm -f init.elc core/core.elc
	@mkdir -p $(CACHE_DIR)/{undo,backup,workgroups}

.PHONY: all<commit_msg>make compile<commit_after>EMACS=emacs
CACHE_DIR="private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
REPO_URL="https://github.com/hlissner"

all: install autoloads init.elc

# If you run either of these with emacs open, run doom-reload afterwards
install: autoloads _install init.elc
update: autoloads _update core/core.elc init.elc

autoloads:
	@$(EMACS) --batch -l init.el --eval '(doom-reload-autoloads)' 2>&1

compile: clean
	@$(EMACS) --batch -l init.el --eval '(doom-byte-compile t)' 2>&1

snippets:
	@[ -d private/snippets ] || git clone $(REPO_URL)/emacs-snippets private/snippets

clean:
	@rm -rf auto-save-list recentf places ido.last async-bytecomp.log elpa tramp
	@rm -rf projectile-bookmarks.eld projectile.cache company-statistics-cache.el
	@rm -rf var semanticdb anaconda-mode
	@rm -f *.elc {core,modules,private,contrib}/*.elc {core,modules}/defuns/*.elc

clean-cache:
	@find $(CACHE_DIR) -type f -maxdepth 1 -delete
	@rm -f $(CACHE_DIR)/{workgroups,pcache,ltxpng,backup}/*

########################################

%.elc: %.el
	@$(EMACS) --batch -l init.el -f batch-byte-compile 2>&1 $<

_update:
	@cask update 2>&1
	@rm -f init.elc core/core.elc

_install:
	@cask install 2>&1
	@rm -f init.elc core/core.elc
	@mkdir -p $(CACHE_DIR)/{undo,backup,workgroups}

.PHONY: all
{'fraction_non_alphanumeric': 0.1892532595811932, 'fraction_numerical': 0.011853022520742789, 'mean_word_length': 4.341772151898734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 2, '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': '1125247', 'n_tokens_mistral': 1034, 'n_tokens_neox': 993, 'n_words': 236}