<commit_before>﻿$nuspec = (ls $env:APPVEYOR_BUILD_FOLDER -Recurse).Where{ $_.Extension -eq ".nuspec"} | Select -First 1
[xml]$xml = Get-Content $nuspec.FullName
$number = $xml.package.metadata.version
$stage = $xml.package.metadata.stage
if(-not [String]::IsNullOrEmpty($stage)){
    $stage = "-" + $stage
}

$nupkgVersion = $number + $stage
$assemblyVersion = $nupkgVersion + "__" + $env:APPVEYOR_BUILD_NUMBER

$env:APPVEYOR_BUILD_VERSION = $assemblyVersion

$xml.package.metadata.version = $nupkgVersion
$xml.Save($nuspec.FullName)

rd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Amazon Web Services LLC" /s /q<commit_msg>Fix correcting .nuspec file format<commit_after>﻿$nuspec = (ls $env:APPVEYOR_BUILD_FOLDER -Recurse).Where{ $_.Extension -eq ".nuspec"} | Select -First 1
[xml]$xml = Get-Content $nuspec.FullName
$number = $xml.package.metadata.version
$stage = $xml.package.metadata.stage
if(-not [String]::IsNullOrEmpty($stage)){
    $stage = "-" + $stage
}

$nupkgVersion = $number + $stage
$assemblyVersion = $nupkgVersion + "__" + $env:APPVEYOR_BUILD_NUMBER

$env:APPVEYOR_BUILD_VERSION = $assemblyVersion

$xml.package.metadata.version = $nupkgVersion


$ns = New-Object System.Xml.XmlNamespaceManager($xml.NameTable)
$ns.AddNamespace("ns", $xml.DocumentElement.NamespaceURI)
$metadataNode = $xml.SelectSingleNode('/ns:package/ns:metadata', $ns)
$stageNode = $metadataNode.SelectSingleNode('ns:stage', $ns)
$metadataNode.RemoveChild($stageNode) | Out-Null

$xml.Save($nuspec.FullName + "aa")

rd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Amazon Web Services LLC" /s /q
{'fraction_non_alphanumeric': 0.15987841945288753, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 5.9451476793248945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 15}, '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': '6223700', 'n_tokens_mistral': 593, 'n_tokens_neox': 588, 'n_words': 105}