<commit_before># 
# Copyright (c) 2011-2012, Toji Project Contributors
# 
# Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
# See the file LICENSE.txt for details.
# 

properties {
  Write-Output "Loading assembly info properties"
  # The assemblyinfo filename and location can be overridden in the settings.ps1
  # You can also override the version pattern to "\d*\.\d*\.\d*\.\d*" if you want 4 digit
  $assemblyinfo = @{}
  $assemblyinfo.dir = "$($source.dir)"
  $assemblyinfo.version_pattern = "\d*\.\d*\.\d*"   # 3 digit for semver
  $assemblyinfo.file = "GlobalAssemblyInfo.cs"
  $assemblyinfo.contents = @"
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyCompany(`"`")]
[assembly: AssemblyProduct(`"`")]
[assembly: AssemblyCopyright(`"Copyright  2012`")]
[assembly: AssemblyTrademark(`"`")]
[assembly: AssemblyCulture(`"`")]
[assembly: AssemblyVersion(`"1.0.0`")]
[assembly: AssemblyFileVersion(`"1.0.0`")]
"@
}

Task Version-AssemblyInfo {
  $file = "$($assemblyinfo.dir)\$($assemblyinfo.file)"
  if(!(Test-Path($file))) { 
    Set-Content -Value $assemblyinfo.contents -Path $file
    Write-Host -ForegroundColor Red "GlobalAssemblyInfo was not detected has has been created: $($assemblyinfo.file)"
  }
  $content = Get-Content $file | % { [Regex]::Replace($_, $assemblyinfo.version_pattern, $build.version) } 
  Set-Content -Value $content -Path $file
}<commit_msg>use 4 digits for version<commit_after># 
# Copyright (c) 2011-2012, Toji Project Contributors
# 
# Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
# See the file LICENSE.txt for details.
# 

properties {
  Write-Output "Loading assembly info properties"
  # The assemblyinfo filename and location can be overridden in the settings.ps1
  # You can also override the version pattern to "\d*\.\d*\.\d*\.\d*" if you want 4 digit
  $assemblyinfo = @{}
  $assemblyinfo.dir = "$($source.dir)"
  $assemblyinfo.version_pattern = "\d*\.\d*\.\d*.\d*"   # 3 digit for semver
  $assemblyinfo.file = "GlobalAssemblyInfo.cs"
  $assemblyinfo.contents = @"
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyCompany(`"`")]
[assembly: AssemblyProduct(`"`")]
[assembly: AssemblyCopyright(`"Copyright  2012`")]
[assembly: AssemblyTrademark(`"`")]
[assembly: AssemblyCulture(`"`")]
[assembly: AssemblyVersion(`"1.0.0`")]
[assembly: AssemblyFileVersion(`"1.0.0`")]
"@
}

Task Version-AssemblyInfo {
  $file = "$($assemblyinfo.dir)\$($assemblyinfo.file)"
  if(!(Test-Path($file))) { 
    Set-Content -Value $assemblyinfo.contents -Path $file
    Write-Host -ForegroundColor Red "GlobalAssemblyInfo was not detected has has been created: $($assemblyinfo.file)"
  }
  $content = Get-Content $file | % { [Regex]::Replace($_, $assemblyinfo.version_pattern, $build.version) } 
  Set-Content -Value $content -Path $file
}
{'fraction_non_alphanumeric': 0.1457286432160804, 'fraction_numerical': 0.013892994383683122, 'mean_word_length': 4.725888324873097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '78324', 'n_tokens_mistral': 1018, 'n_tokens_neox': 976, 'n_words': 300}