<commit_before># Automatically shellinit docker-machine if it's up.

# Use a named docker-machine VirtualBox VM, optionally creating or starting it if necessary.
# Automatically source the connection environment variables into the current shell and add or
# modify /etc/hosts to include an entry pointing to it.
#
# Usage: machineme <machine-name> [create] [quiet]
function machineme() {
  local MACHINENAME=$1
  local CREATE=${2:-}
  local QUIET=${3:-}

  local CONFIG="$(docker-machine env ${MACHINENAME} 2>/dev/null)"

  if [ -n "${CONFIG}" ]; then
    eval "${CONFIG}"

    local ETCHOSTNAME="docker${MACHINENAME}"
    local MACHINEIP=$(docker-machine ip ${MACHINENAME})

    add-etc-host "${ETCHOSTNAME}" "${MACHINEIP}"
    [ "$?" = "2" ] && {
      echo "dmachine: adding /etc/hosts entry ${ETCHOSTNAME} -> ${MACHINEIP}"
      sudo add-etc-host "${ETCHOSTNAME}" "${MACHINEIP}"
    }
    return 0
  else
    if [ -n "${CREATE}" ]; then
      local STATUS="$(docker-machine status ${MACHINENAME} 2>/dev/null)"

      case "${STATUS}" in
        Stopped)
          [ -z "${QUIET}" ] && echo "dmachine: starting machine ${MACHINENAME}."

          docker-machine start ${MACHINENAME}
          ;;
        "")
          [ -z "${QUIET}" ] && echo "dmachine: creating machine ${MACHINENAME}."

          docker-machine create -d virtualbox ${MACHINENAME}
          ;;
        *)
          echo "dmachine: unfamiliar machine status '${STATUS}' for ${MACHINENAME}." >&2
          return 1
          ;;
      esac

      dmachine "${MACHINENAME}" "" "${QUIET}"
    else
      [ -z "${QUIET}" ] && echo "dmachine: ${MACHINENAME} is not started or does not exist." >&2
      return 1
    fi
  fi
}<commit_msg>Missed a few occurrences<commit_after># Automatically shellinit docker-machine if it's up.

# Use a named docker-machine VirtualBox VM, optionally creating or starting it if necessary.
# Automatically source the connection environment variables into the current shell and add or
# modify /etc/hosts to include an entry pointing to it.
#
# Usage: machineme <machine-name> [create] [quiet]
function machineme() {
  local MACHINENAME=$1
  local CREATE=${2:-}
  local QUIET=${3:-}

  local CONFIG="$(docker-machine env ${MACHINENAME} 2>/dev/null)"

  if [ -n "${CONFIG}" ]; then
    [ -z "${QUIET}" ] && echo "machineme: setting environment for machine ${MACHINENAME}."

    eval "${CONFIG}"

    local ETCHOSTNAME="docker${MACHINENAME}"
    local MACHINEIP=$(docker-machine ip ${MACHINENAME})

    add-etc-host "${ETCHOSTNAME}" "${MACHINEIP}"
    [ "$?" = "2" ] && {
      echo "machineme: adding /etc/hosts entry ${ETCHOSTNAME} -> ${MACHINEIP}"
      sudo add-etc-host "${ETCHOSTNAME}" "${MACHINEIP}"
    }
    return 0
  else
    if [ -n "${CREATE}" ]; then
      local STATUS="$(docker-machine status ${MACHINENAME} 2>/dev/null)"

      case "${STATUS}" in
        Stopped)
          [ -z "${QUIET}" ] && echo "machineme: starting machine ${MACHINENAME}."

          docker-machine start ${MACHINENAME}
          ;;
        "")
          [ -z "${QUIET}" ] && echo "machineme: creating machine ${MACHINENAME}."

          docker-machine create -d virtualbox ${MACHINENAME}
          ;;
        *)
          echo "machineme: unfamiliar machine status '${STATUS}' for ${MACHINENAME}." >&2
          return 1
          ;;
      esac

      machineme "${MACHINENAME}" "" "${QUIET}"
    else
      [ -z "${QUIET}" ] && echo "machineme: ${MACHINENAME} is not started or does not exist." >&2
      return 1
    fi
  fi
}
{'fraction_non_alphanumeric': 0.1539118065433855, 'fraction_numerical': 0.006258890469416785, 'mean_word_length': 2.792880258899676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5864651', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1095, 'n_words': 328}