<commit_before>#!/usr/bin/env bash

function dict() {
	curl "dict://dict.org/d:$1"
}

# always do `ls` after `cd`
function cd() {
	builtin cd "$@"; ls;
}

# makes new dir and jumps to dir
function mcd() {
	mkdir -p "$1" && cd "$1";
}

# moves file to trash
function trash() {
	command mv "$@" ~/.Trash;
}

# git ignore (https://www.gitignore.io/docs)
function gi() {
	curl -L -s "https://www.gitignore.io/api/$@";
}<commit_msg>add git prune locals (git_prune)<commit_after>#!/usr/bin/env bash

function dict() {
	curl "dict://dict.org/d:$1"
}

# always do `ls` after `cd`
function cd() {
	builtin cd "$@"; ls;
}

# makes new dir and jumps to dir
function mcd() {
	mkdir -p "$1" && cd "$1";
}

# moves file to trash
function trash() {
	command mv "$@" ~/.Trash;
}

# git ignore (https://www.gitignore.io/docs)
function gi() {
	curl -L -s "https://www.gitignore.io/api/$@";
}

function git_prune() {
	local pattern=${1:-""}
	if [[ -z "$pattern" ]]; then
		echo 'branch pattern expected!'
	else
		git branch -d $(git branch | grep -E "$pattern")
	fi
}
{'fraction_non_alphanumeric': 0.20706106870229007, 'fraction_numerical': 0.006679389312977099, 'mean_word_length': 3.3891213389121337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '4958064', 'n_tokens_mistral': 430, 'n_tokens_neox': 408, 'n_words': 122}