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

# shellcheck disable=SC2154
# shellcheck disable=SC2034
# shellcheck disable=SC2116

__import_env() {
  echo "${1}" | while read -r line; do
    eval "export $(echo "${line}" | awk -F'=' '{print $1"=\""$2"\""}')" > /dev/null
  done
}

version_prompt(){
  if [[ -n ${1} ]]; then
    LOOP_INDEX=0
    for _v in $(echo "${1}"); do
      [[ ${LOOP_INDEX} != "0" ]] && version_prompt_val+="%F{$AM_FADE_COLOR}${AM_VERSION_PROMPT_SEP}%f"
      [[ ${LOOP_INDEX} == "0" ]] && LOOP_INDEX=$((LOOP_INDEX + 1)) && version_prompt_val+="%F{$AM_FADE_COLOR}[%f"

      [[ ${_v} == "PYTHON" ]]    && version_prompt_val+="$(am_python_version)"
      [[ ${_v} == "PYTHON_S" ]]  && version_prompt_val+="$(am_python_short_version)"
      [[ ${_v} == "RUBY" ]]      && version_prompt_val+="$(am_ruby_version)"<commit_msg>Corrections made: 	1. No more: '(eval):1: bad assignment' 		https://github.com/eendroroy/alien-minimal/issues/31<commit_after>#!/usr/bin/env zsh

# shellcheck disable=SC2154
# shellcheck disable=SC2034
# shellcheck disable=SC2116

__import_env() {
  if [[ -z "${1}" ]]; then
    return
  fi
  echo "${1}" | while IFS='\n' read -r line; do
    eval "export $(echo "${line}" | awk -F'=' '{print $1"=\""$2"\""}')" > /dev/null
  done
}

version_prompt(){
  if [[ -n ${1} ]]; then
    LOOP_INDEX=0
    for _v in $(echo "${1}"); do
      [[ ${LOOP_INDEX} != "0" ]] && version_prompt_val+="%F{$AM_FADE_COLOR}${AM_VERSION_PROMPT_SEP}%f"
      [[ ${LOOP_INDEX} == "0" ]] && LOOP_INDEX=$((LOOP_INDEX + 1)) && version_prompt_val+="%F{$AM_FADE_COLOR}[%f"

      [[ ${_v} == "PYTHON" ]]    && version_prompt_val+="$(am_python_version)"
      [[ ${_v} == "PYTHON_S" ]]  && version_prompt_val+="$(am_python_short_version)"
      [[ ${_v} == "RUBY" ]]      && version_prompt_val+="$(am_ruby_version)"
{'fraction_non_alphanumeric': 0.23610346725371492, 'fraction_numerical': 0.025866813428728673, 'mean_word_length': 4.135593220338983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '5172638', 'n_tokens_mistral': 783, 'n_tokens_neox': 734, 'n_words': 124}