<commit_before>function {
    # search in these locations for the init script:
    for f in $commands[virtualenvwrapper_lazy.sh] \
             $commands[virtualenvwrapper.sh] \
             /usr/share/virtualenvwrapper/virtualenvwrapper{_lazy,}.sh \
             /usr/local/bin/virtualenvwrapper{_lazy,}.sh \
             /etc/bash_completion.d/virtualenvwrapper \
             /usr/share/bash-completion/completions/virtualenvwrapper \
             $HOME/.local/bin/virtualenvwrapper.sh
    do
        if [[ -f $f ]]; then
            source $f
            return
        fi
    done
    print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
          "Please install with \`pip install virtualenvwrapper\`" >&2
}

if ! type workon &>/dev/null; then
  print "[oh-my-zsh] virtualenvwrapper plugin: shell function 'workon' not defined.\n"\<commit_msg>virtualenvwrapper: fix load and detection logic<commit_after>function {
    # search in these locations for the init script:
    for virtualenvwrapper in $commands[virtualenvwrapper_lazy.sh] \
      $commands[virtualenvwrapper.sh] \
      /usr/share/virtualenvwrapper/virtualenvwrapper{_lazy,}.sh \
      /usr/local/bin/virtualenvwrapper{_lazy,}.sh \
      /etc/bash_completion.d/virtualenvwrapper \
      /usr/share/bash-completion/completions/virtualenvwrapper \
      $HOME/.local/bin/virtualenvwrapper.sh
    do
        if [[ -f "$virtualenvwrapper" ]]; then
            source "$virtualenvwrapper"
            return
        fi
    done
    print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
          "Please install with \`pip install virtualenvwrapper\`" >&2
    return 1
}

if [[ $? -eq 0 ]] && ! type workon &>/dev/null; then
  print "[oh-my-zsh] virtualenvwrapper plugin: shell function 'workon' not defined.\n"\
{'fraction_non_alphanumeric': 0.11444141689373297, 'fraction_numerical': 0.0021798365122615805, 'mean_word_length': 2.5789473684210527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2491668', 'n_tokens_mistral': 560, 'n_tokens_neox': 543, 'n_words': 124}