<commit_before>#!/usr/bin/env bash
#
# libscala
# by extempore
#
# Source this file to find your scala world somewhat enhanced.
#

[[ -d "$BASH_COMPLETION_DIR" ]] || [[ -d "$BASH_COMPLETION" ]] || [[ -d "$BASH_COMPLETION_COMPAT_DIR" ]] || {
  echo "This won't work without bash completion set up."
  return
}

[[ -d "$SCALA_SRC_HOME" ]] || {
  echo "Note: some features require \$SCALA_SRC_HOME be set to a checkout of scala trunk."
}

[[ -n "$LIBSCALA_HOME" ]] || export LIBSCALA_HOME="$(dirname $BASH_SOURCE)"

export PATH="$PATH:$LIBSCALA_HOME/bin"

export libscalaRoot="$(cd "$(dirname $BASH_SOURCE)" && pwd)"
[[ -f "$libscalaRoot/bash.d/boot" ]] && . "$libscalaRoot/bash.d/boot"

export libscalaBash="$libscalaRoot/bash.d"
export libscalaEtc="$libscalaRoot/etc"
export scalaGitRepo="$SCALA_SRC_HOME"
export scalaGitUrl="https://github.com/scala/scala"
export scalaSvnMap="$libscalaEtc/scala-svn-to-sha1-map.txt"
export scalaJiraUrl="http://issues.scala-lang.org"

# thanks for the easy transition git
# Can't use --no-edit because it isn't understood by anything
# prior to the version which changed merge behavior.
export GIT_MERGE_AUTOEDIT=no

# Source the extra completion and helper functions.
trySource scala-291 scala java github git-aliases git jira

# Adding -XX: flags to java
# complete -o default -F _java_with_jvm_opts java<commit_msg>Make sure the builtin cd is used in libscala.sh<commit_after>#!/usr/bin/env bash
#
# libscala
# by extempore
#
# Source this file to find your scala world somewhat enhanced.
#

[[ -d "$BASH_COMPLETION_DIR" ]] || [[ -d "$BASH_COMPLETION" ]] || [[ -d "$BASH_COMPLETION_COMPAT_DIR" ]] || {
  echo "This won't work without bash completion set up."
  return
}

[[ -d "$SCALA_SRC_HOME" ]] || {
  echo "Note: some features require \$SCALA_SRC_HOME be set to a checkout of scala trunk."
}

[[ -n "$LIBSCALA_HOME" ]] || export LIBSCALA_HOME="$(dirname $BASH_SOURCE)"

export PATH="$PATH:$LIBSCALA_HOME/bin"

export libscalaRoot="$(builtin cd "$(dirname $BASH_SOURCE)" && pwd)"
[[ -f "$libscalaRoot/bash.d/boot" ]] && . "$libscalaRoot/bash.d/boot"

export libscalaBash="$libscalaRoot/bash.d"
export libscalaEtc="$libscalaRoot/etc"
export scalaGitRepo="$SCALA_SRC_HOME"
export scalaGitUrl="https://github.com/scala/scala"
export scalaSvnMap="$libscalaEtc/scala-svn-to-sha1-map.txt"
export scalaJiraUrl="http://issues.scala-lang.org"

# thanks for the easy transition git
# Can't use --no-edit because it isn't understood by anything
# prior to the version which changed merge behavior.
export GIT_MERGE_AUTOEDIT=no

# Source the extra completion and helper functions.
trySource scala-291 scala java github git-aliases git jira

# Adding -XX: flags to java
# complete -o default -F _java_with_jvm_opts java
{'fraction_non_alphanumeric': 0.13874726875455207, 'fraction_numerical': 0.0029133284777858705, 'mean_word_length': 4.9587852494577005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2517361', 'n_tokens_mistral': 1033, 'n_tokens_neox': 968, 'n_words': 258}