<commit_before>export CARGO_HOME=~/.local/cargo
export DENO_DIR=~/.local/deno
export GOPATH=~/.local/go
export LUAROCKS_CONFIG=~/.config/luarocks/config.lua

path+=(
    ~/bin
    ~/.local/cargo/bin
    ~/.local/go/bin
    ~/.local/yarn/bin
    ~/.gem/ruby/*/bin(N)
)

if (( $+commands[luarocks] )); then
    path+=( $(luarocks path --lr-bin) )
    eval $(luarocks path --no-bin)
fi
if (( $+commands[opam] )); then
    eval $(opam env)
fi
if (( $+commands[yarn] )) && [[ ! -f ~/.yarnrc ]]; then
    yarn config set global-folder ~/.local/yarn/global
    yarn config set prefix ~/.local/yarn
fi<commit_msg>zsh/path: fix luarocks<commit_after>export CARGO_HOME=~/.local/cargo
export DENO_DIR=~/.local/deno
export GOPATH=~/.local/go
export LUAROCKS_CONFIG=~/.config/luarocks/config.lua

path+=(
    ~/bin
    ~/.local/cargo/bin
    ~/.local/go/bin
    ~/.local/yarn/bin
    ~/.gem/ruby/*/bin(N)
)

if (( $+commands[luarocks] )); then
    PATH="$PATH:$(luarocks path --lr-bin)" # luarocks puts :s in the output
    eval $(luarocks path --no-bin)
fi
if (( $+commands[opam] )); then
    eval $(opam env)
fi
if (( $+commands[yarn] )) && [[ ! -f ~/.yarnrc ]]; then
    yarn config set global-folder ~/.local/yarn/global
    yarn config set prefix ~/.local/yarn
fi
{'fraction_non_alphanumeric': 0.19840637450199203, 'fraction_numerical': 0.0, 'mean_word_length': 3.0385852090032155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3183503', 'n_tokens_mistral': 514, 'n_tokens_neox': 494, 'n_words': 104}