<commit_before>set -gx EDITOR vim
set -gx VISUAL vim

# Ensure XDG variables are set
set -q XDG_CONFIG_HOME; or set -gx XDG_CONFIG_HOME "$HOME/.config"
set -q XDG_DATA_HOME; or set -gx XDG_DATA_HOME "$HOME/.local/share"
set -q XDG_CACHE_HOME; or set -gx XDG_CACHE_HOME "$HOME/.cache"

set -gx ANDROID_HOME /usr/local/opt/android-sdk
set -gx GPG_TTY (tty)
set -gx SSH_KEY_PATH "$HOME/.ssh"

set -gx LANG en_US.UTF-8
set -gx LC_ALL en_US.UTF-8

# Set openssl paths for compiles and pkg-config
set -gx LDFLAGS "-L/usr/local/opt/openssl/lib"
set -gx CPPFLAGS "-I/usr/local/opt/openssl/include"
set -gx PKG_CONFIG_PATH "/usr/local/opt/openssl/lib/pkgconfig"

set -gx GREP_COLOR "1;37;45"

set -q JAVA_HOME; or set -gx JAVA_HOME "$HOME/.sdkman/candidates/java/current"

# Go settings
set -gx GOPATH "$HOME/go"
set -gx GOBIN "$GOPATH/bin"
set -gx GOROOT "/usr/local/opt/go/libexec"

set -gx LESSHISTFILE "$XDG_DATA_HOME/less/history"
set -gx LESSKEY "$XDG_CONFIG_HOME/less/keys"

# A hack for https://github.com/gatsbyjs/gatsby/issues/6654
set -gx GATSBY_CONCURRENT_DOWNLOAD 25

# Poetry uses ~/Library/Caches/pypoetry/virtualenvs for Mac, let's be sane here
# set -gx POETRY_VIRTUALENVS_PATH "$XDG_CACHE_HOME/pypoetry/virtualenvs"

set -gx NPM_CONFIG_USERCONFIG "$XDG_CONFIG_HOME/npm/.npmrc"
set -gx NPM_CONFIG_CACHE "$XDG_CACHE_HOME/npm"

# Opt out of brew analytics
set -gx HOMEBREW_NO_ANALYTICS 1

# Set AWS config file locations:
# https://github.com/aws/aws-cli/issues/243

# set -gx AWS_CREDENTIAL_FILE "$XDG_CONFIG_HOME/aws/credentials"
# set -gx AWS_WEB_IDENTITY_TOKEN_FILE "$XDG_CONFIG_HOME/aws/token"
set -gx AWS_CLI_HISTORY_FILE "$XDG_DATA_HOME/aws/history"
set -gx AWS_CONFIG_FILE "$XDG_CONFIG_HOME/aws/config"
set -gx AWS_PROFILE "default"
# Version 2.x file
set -gx AWS_SHARED_CREDENTIALS_FILE "$XDG_CONFIG_HOME/aws/credentials"
# Version 1.x file
set -gx AWS_CREDENTIAL_PROFILES_FILE "$XDG_CONFIG_HOME/aws/credentials"


# Pip should only run inside a virtualenv
set -gx PIP_REQUIRE_VIRTUALENV true

# Set pass password store location
set -gx PASSWORD_STORE_DIR "$XDG_DATA_HOME/password-store"

# GPG Suite doesn't support a different home for gnupg :(
# set -gx GNUPGHOME "$XDG_CONFIG_HOME/gnupg"

# Ruby bundler
set -gx BUNDLE_USER_CACHE "$XDG_CACHE_HOME/bundle"
set -gx BUNDLE_USER_CONFIG "$XDG_CONFIG_HOME/bundle"
set -gx BUNDLE_USER_PLUGIN "$XDG_DATA_HOME/bundle"

# Docker - doesn't seem to work yet<commit_msg>Support legacy AWS clients<commit_after>set -gx EDITOR vim
set -gx VISUAL vim

# Ensure XDG variables are set
set -q XDG_CONFIG_HOME; or set -gx XDG_CONFIG_HOME "$HOME/.config"
set -q XDG_DATA_HOME; or set -gx XDG_DATA_HOME "$HOME/.local/share"
set -q XDG_CACHE_HOME; or set -gx XDG_CACHE_HOME "$HOME/.cache"

set -gx ANDROID_HOME /usr/local/opt/android-sdk
set -gx GPG_TTY (tty)
set -gx SSH_KEY_PATH "$HOME/.ssh"

set -gx LANG en_US.UTF-8
set -gx LC_ALL en_US.UTF-8

# Set openssl paths for compiles and pkg-config
set -gx LDFLAGS "-L/usr/local/opt/openssl/lib"
set -gx CPPFLAGS "-I/usr/local/opt/openssl/include"
set -gx PKG_CONFIG_PATH "/usr/local/opt/openssl/lib/pkgconfig"

set -gx GREP_COLOR "1;37;45"

set -q JAVA_HOME; or set -gx JAVA_HOME "$HOME/.sdkman/candidates/java/current"

# Go settings
set -gx GOPATH "$HOME/go"
set -gx GOBIN "$GOPATH/bin"
set -gx GOROOT "/usr/local/opt/go/libexec"

set -gx LESSHISTFILE "$XDG_DATA_HOME/less/history"
set -gx LESSKEY "$XDG_CONFIG_HOME/less/keys"

# A hack for https://github.com/gatsbyjs/gatsby/issues/6654
set -gx GATSBY_CONCURRENT_DOWNLOAD 25

# Poetry uses ~/Library/Caches/pypoetry/virtualenvs for Mac, let's be sane here
# set -gx POETRY_VIRTUALENVS_PATH "$XDG_CACHE_HOME/pypoetry/virtualenvs"

set -gx NPM_CONFIG_USERCONFIG "$XDG_CONFIG_HOME/npm/.npmrc"
set -gx NPM_CONFIG_CACHE "$XDG_CACHE_HOME/npm"

# Opt out of brew analytics
set -gx HOMEBREW_NO_ANALYTICS 1

# Set AWS config file locations:
# https://github.com/aws/aws-cli/issues/243

# set -gx AWS_CREDENTIAL_FILE "$XDG_CONFIG_HOME/aws/credentials"
# set -gx AWS_WEB_IDENTITY_TOKEN_FILE "$XDG_CONFIG_HOME/aws/token"
set -gx AWS_CLI_HISTORY_FILE "$XDG_DATA_HOME/aws/history"
set -gx AWS_CONFIG_FILE "$XDG_CONFIG_HOME/aws/config"
set -gx AWS_CREDENTIAL_PROFILES_FILE "$XDG_CONFIG_HOME/aws/credentials" # Version 1.x
set -gx AWS_PROFILE "default"
set -gx AWS_SHARED_CREDENTIALS_FILE "$XDG_CONFIG_HOME/aws/credentials" # Version 2.x

# Pip should only run inside a virtualenv
set -gx PIP_REQUIRE_VIRTUALENV true

# Set pass password store location
set -gx PASSWORD_STORE_DIR "$XDG_DATA_HOME/password-store"

# GPG Suite doesn't support a different home for gnupg :(
# set -gx GNUPGHOME "$XDG_CONFIG_HOME/gnupg"

# Ruby bundler
set -gx BUNDLE_USER_CACHE "$XDG_CACHE_HOME/bundle"
set -gx BUNDLE_USER_CONFIG "$XDG_CONFIG_HOME/bundle"
set -gx BUNDLE_USER_PLUGIN "$XDG_DATA_HOME/bundle"

# Docker - doesn't seem to work yet
{'fraction_non_alphanumeric': 0.10795220436753193, 'fraction_numerical': 0.007828594973217964, 'mean_word_length': 4.745562130177515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4530394', 'n_tokens_mistral': 2123, 'n_tokens_neox': 2001, 'n_words': 482}