<commit_before>function Get-NewDirectoryName {
    param ([System.IO.DirectoryInfo]$item)

    $name = $item.Name.Replace("perspex", "avalonia")
    $name = $name.Replace("Perspex", "Avalonia")
    Join-Path $item.Parent.FullName $name
}

function Get-NewFileName {
    param ([System.IO.FileInfo]$item)

    $name = $item.Name.Replace("perspex", "avalonia")
    $name = $name.Replace("Perspex", "Avalonia")
    Join-Path $item.DirectoryName $name
}

function Rename-Contents {
    param ([System.IO.FileInfo] $file)

    $extensions = @(".cs",".xaml",".csproj",".sln",".md",".json",".yml",".partial",".ps1",".nuspec",".htm",".html",".gitmodules")

    if ($extensions.Contains($file.Extension)) {
        $text = [IO.File]::ReadAllText($file.FullName)
        $text = $text.Replace("perspex", "avalonia")
        $text = $text.Replace("Perspex", "Avalonia")
        $text = $text.Replace("PERSPEX", "AVALONIA")
        [IO.File]::WriteAllText($file.FullName, $text)
    }
}

function Process-Files {
    param ([System.IO.DirectoryInfo] $item)

    $dirs = Get-ChildItem -Path $item.FullName -Directory
    $files = Get-ChildItem -Path $item.FullName -File

    foreach ($dir in $dirs) {
        Process-Files $dir.FullName
    }
<commit_msg>Added some more file types to rename script.<commit_after>function Get-NewDirectoryName {
    param ([System.IO.DirectoryInfo]$item)

    $name = $item.Name.Replace("perspex", "avalonia")
    $name = $name.Replace("Perspex", "Avalonia")
    Join-Path $item.Parent.FullName $name
}

function Get-NewFileName {
    param ([System.IO.FileInfo]$item)

    $name = $item.Name.Replace("perspex", "avalonia")
    $name = $name.Replace("Perspex", "Avalonia")
    Join-Path $item.DirectoryName $name
}

function Rename-Contents {
    param ([System.IO.FileInfo] $file)

    $extensions = @(".cs",".xaml",".csproj",".sln",".md",".json",".yml",".partial",".ps1",".nuspec",".htm",".html",".gitmodules".".xml",".plist")

    if ($extensions.Contains($file.Extension)) {
        $text = [IO.File]::ReadAllText($file.FullName)
        $text = $text.Replace("perspex", "avalonia")
        $text = $text.Replace("Perspex", "Avalonia")
        $text = $text.Replace("PERSPEX", "AVALONIA")
        [IO.File]::WriteAllText($file.FullName, $text)
    }
}

function Process-Files {
    param ([System.IO.DirectoryInfo] $item)

    $dirs = Get-ChildItem -Path $item.FullName -Directory
    $files = Get-ChildItem -Path $item.FullName -File

    foreach ($dir in $dirs) {
        Process-Files $dir.FullName
    }

{'fraction_non_alphanumeric': 0.19384129490722463, 'fraction_numerical': 0.0007895775759968417, 'mean_word_length': 3.5740072202166067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '489549', 'n_tokens_mistral': 901, 'n_tokens_neox': 861, 'n_words': 145}