<commit_before>import-module au

$releases = 'https://github.com/mkdocs/mkdocs/releases'

function global:au_SearchReplace {
    @{
        'tools\ChocolateyInstall.ps1' = @{
            "(^[$]version\s*=\s*)('.*')" = "`$1'$($Latest.Version)'"
        }
     }
}

function global:au_GetLatest {
    $download_page = Invoke-WebRequest -Uri $releases

    #0.16.0.zip
    $re  = "(.*).zip"
    $url = $download_page.links | ? href -match $re | select -First 1 -expand href

    $version = [IO.Path]::GetFileNameWithoutExtension($url)

    $Latest = @{ Version = $version }
    return $Latest
}

update -ChecksumFor none<commit_msg>(mkdocs) Check PyPi for new package releases instead of GitHub<commit_after>import-module au

$releases = 'https://pypi.python.org/pypi/mkdocs/json'

function global:au_SearchReplace {
    @{
        'tools\ChocolateyInstall.ps1' = @{
            "(^[$]version\s*=\s*)('.*')" = "`$1'$($Latest.Version)'"
        }
     }
}

function global:au_GetLatest {
    $version = (Invoke-WebRequest -UseBasicParsing -Uri $releases | ConvertFrom-Json | Select -Expand info | Select version).version

    return @{ Version = $version }
}

update -ChecksumFor none
{'fraction_non_alphanumeric': 0.1669491525423729, 'fraction_numerical': 0.007627118644067797, 'mean_word_length': 3.158450704225352, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6930212', 'n_tokens_mistral': 422, 'n_tokens_neox': 399, 'n_words': 74}