<commit_before>function install_vim($version, $arch) {
  if ($version -eq "latest") {
    $precursor = "http://vim-jp.org/redirects/vim/vim-win32-installer/latest/${arch}/"
    $redirect = Invoke-WebRequest -URI $precursor
    $url = $redirect.Links[0].href
  }
  else {
    $url = "https://github.com/vim/vim-win32-installer/releases/download/v${version}/gvim_${version}_${arch}.zip"
  }
  $zip = "$Env:APPVEYOR_BUILD_FOLDER\\vim.zip"
  Write-Output "URL: $url"
  (New-Object Net.WebClient).DownloadFile($url, $zip)
  [Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
  [System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $Env:APPVEYOR_BUILD_FOLDER)
  $Env:THEMIS_VIM = "$(Get-ChildItem $Env:APPVEYOR_BUILD_FOLDER\\vim\\vim*\\vim.exe | Select -First 1)"
}

function install_neovim($version, $arch) {
  if ($version -eq "latest") {
    $url = "https://ci.appveyor.com/api/projects/neovim/neovim/artifacts/build/Neovim.zip?branch=master&job=Configuration%3A%20MINGW_${arch}"
  }
  else {
    $url = "https://github.com/neovim/neovim/releases/download/v${version}/nvim-win${arch}.zip"
  }
  $zip = "$Env:APPVEYOR_BUILD_FOLDER\\nvim.zip"
  Write-Output "URL: $url"
  (New-Object Net.WebClient).DownloadFile($url, $zip)<commit_msg>Fix Neovim download URL on AppVeyor<commit_after>function install_vim($version, $arch) {
  if ($version -eq "latest") {
    $precursor = "http://vim-jp.org/redirects/vim/vim-win32-installer/latest/${arch}/"
    $redirect = Invoke-WebRequest -URI $precursor
    $url = $redirect.Links[0].href
  }
  else {
    $url = "https://github.com/vim/vim-win32-installer/releases/download/v${version}/gvim_${version}_${arch}.zip"
  }
  $zip = "$Env:APPVEYOR_BUILD_FOLDER\\vim.zip"
  Write-Output "URL: $url"
  (New-Object Net.WebClient).DownloadFile($url, $zip)
  [Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
  [System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $Env:APPVEYOR_BUILD_FOLDER)
  $Env:THEMIS_VIM = "$(Get-ChildItem $Env:APPVEYOR_BUILD_FOLDER\\vim\\vim*\\vim.exe | Select -First 1)"
}

function install_neovim($version, $arch) {
  if ($version -eq "latest") {
    $url = "https://github.com/neovim/neovim/releases/download/nightly/nvim-win${arch}.zip"
  }
  else {
    $url = "https://github.com/neovim/neovim/releases/download/v${version}/nvim-win${arch}.zip"
  }
  $zip = "$Env:APPVEYOR_BUILD_FOLDER\\nvim.zip"
  Write-Output "URL: $url"
  (New-Object Net.WebClient).DownloadFile($url, $zip)
{'fraction_non_alphanumeric': 0.18670382165605096, 'fraction_numerical': 0.005971337579617835, 'mean_word_length': 4.672686230248307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4461963', 'n_tokens_mistral': 1010, 'n_tokens_neox': 973, 'n_words': 116}