<commit_before>function proxy -d "Setup proxy environment variables"
  if not set -q proxy_host
    echo "Error: You must set proxy_host to your proxy hostname:port in config.fish"
    echo "You may also set proxy_user to your username"
    return
  end

  # Get user & password
  set -l user $proxy_user
  if not set -q proxy_user
    read -p "echo -n 'Proxy User: '" user
  end
  # Hacky way to read password in fish
  echo -n 'Proxy Password: '
  stty -echo
  head -n 1 - | read -l pass
  stty echo
  echo
  # URL encode password
  set -l chars (echo $pass | sed -E -e 's/./\n\\0/g;/^$/d;s/\n//')
  printf '%%%02x' "'"$chars"'" | read -l encpass

  _proxy_set "http://$user:$encpass@$proxy_host"
end
<commit_msg>OS X `head` command does not support `-` argument for STDIN<commit_after>function proxy -d "Setup proxy environment variables"
  if not set -q proxy_host
    echo "Error: You must set proxy_host to your proxy hostname:port in config.fish"
    echo "You may also set proxy_user to your username"
    return
  end

  # Get user & password
  set -l user $proxy_user
  if not set -q proxy_user
    read -p "echo -n 'Proxy User: '" user
  end
  # Hacky way to read password in fish
  echo -n 'Proxy Password: '
  stty -echo
  head -n 1 | read -l pass
  stty echo
  echo
  # URL encode password
  set -l chars (echo $pass | sed -E -e 's/./\n\\0/g;/^$/d;s/\n//')
  printf '%%%02x' "'"$chars"'" | read -l encpass

  _proxy_set "http://$user:$encpass@$proxy_host"
end

{'fraction_non_alphanumeric': 0.12075983717774763, 'fraction_numerical': 0.005427408412483039, 'mean_word_length': 2.801546391752577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1909520', 'n_tokens_mistral': 536, 'n_tokens_neox': 515, 'n_words': 205}