<commit_before>import-module au

$releases = 'http://www.light-alloy.ru/download/'

function global:au_SearchReplace {
  @{
    ".\tools\chocolateyInstall.ps1" = @{
      "(?i)(^[$]packageName\s*=\s*)('.*')" = "`$1'$($Latest.PackageName)'"
      "(?i)(^[$]url32\s*=\s*)('.*')" = "`$1'$($Latest.Url32)'"
      "(?i)(^[$]checksum32\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
    }
  }
}

function global:au_GetLatest {
  $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
  $url = $download_page.Links | ? href -match "LA_Setup_v[0-9\.]+\.exe$" | % href | select -First 1
  $version = $url -split 'v' | select -First 1 -Skip 1
  $version = $version -split '.exe' | select -First 1

  @{
    Version = $version
    Url32   = $url
  }
}

update -NoCheckUrl -ChecksumFor 32<commit_msg>AU lightalloy<commit_after>import-module au

$releases = 'http://www.light-alloy.ru/download/'

function global:au_SearchReplace {
  @{
    ".\tools\chocolateyInstall.ps1" = @{
      "(?i)(^[$]packageName\s*=\s*)('.*')" = "`$1'$($Latest.PackageName)'"
      "(?i)(^[$]url32\s*=\s*)('.*')" = "`$1'$($Latest.Url32)'"
      "(?i)(^[$]checksum32\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
    }
  }
}

function global:au_GetLatest {
  $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
  $url = $download_page.Links | ? href -match "LA_Setup_v[0-9\.]+\.exe$" | % href | select -First 1
  $version = $url -split 'v' | select -First 1 -Skip 1
  $version = $version -split '.exe' | select -First 1

  @{
    Version = $version
    Url32   = $url
  }
}

update -ChecksumFor 32
{'fraction_non_alphanumeric': 0.24148802017654478, 'fraction_numerical': 0.027742749054224466, 'mean_word_length': 3.408333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7126072', 'n_tokens_mistral': 682, 'n_tokens_neox': 637, 'n_words': 105}