<commit_before>function erlang_tarball() {
  if [ ${#erlang_version[@]} -eq 2 ];
  then
    echo "OTP_${erlang_version[1]}.tgz"
  else
    echo "OTP_${erlang_version}.tgz"
  fi
}


function erlang_remote_filename() {
  if [ ${#erlang_version[@]} -eq 2 ];
  then
    echo "${erlang_version[1]}.tgz"
  else
    echo "OTP_${erlang_version}.tgz"
  fi
}


function download_erlang() {
  local erlang_package_url="https://s3.amazonaws.com/heroku-buildpack-erlang/$(erlang_remote_filename)"
<commit_msg>Fix OTP download file prefix to support newer erlang versions<commit_after>function erlang_tarball() {
  if [ ${#erlang_version[@]} -eq 2 ];
  then
    echo "OTP_${erlang_version[1]}.tgz"
  else
    echo "OTP_${erlang_version}.tgz"
  fi
}


function erlang_download_file_prefix() {
  if [ ${erlang_version:0:1} == "R" ]; then
    echo "OTP_"
  else
    echo "OTP-"
  fi;
}


function erlang_remote_filename() {
  if [ ${#erlang_version[@]} -eq 2 ];
  then
    echo "${erlang_version[1]}.tgz"
  else
    echo "$(erlang_download_file_prefix)${erlang_version}.tgz"
  fi
}


function download_erlang() {
  local erlang_package_url="https://s3.amazonaws.com/heroku-buildpack-erlang/$(erlang_remote_filename)"

{'fraction_non_alphanumeric': 0.1525, 'fraction_numerical': 0.01, 'mean_word_length': 4.314159292035399, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4781133', 'n_tokens_mistral': 472, 'n_tokens_neox': 453, 'n_words': 81}