<commit_before>require "albacore"
require "release/filesystem"

reportsPath = "reports"
version = ENV["BUILD_NUMBER"]

desc "Inits the build"
task :initBuild do
	FileSystem.EnsurePath(reportsPath)
end

desc "Generate assembly info."
assemblyinfo :assemblyInfo => :initBuild do |asm|
    asm.version = version
    asm.company_name = "Ultraviolet Catastrophe"
    asm.product_name = "Hid Library"
    asm.title = "Hid Library"
    asm.description = "Hid communication library."
    asm.copyright = "Copyright (c) 2011 Ultraviolet Catastrophe"
    asm.output_file = "src/Current/HidLibrary/Properties/AssemblyInfo.cs"
end

desc "Builds the library."
msbuild :buildLibrary => :assemblyInfo do |msb|
    msb.properties :configuration => :Release
    msb.targets :Clean, :Build
    msb.solution = "src/Current/HidLibrary/HidLibrary.csproj"
end

#desc "Builds the test project."
#msbuild :buildTestProject => :buildLibrary do |msb|
#    msb.properties :configuration => :Release
#    msb.targets :Clean, :Build
#    msb.solution = "src/Tests/Tests.csproj"
#end

#desc "NUnit Test Runner"
#nunit :unitTests => :buildTestProject do |nunit|
#	nunit.command = "src/packages/NUnit.2.5.9.10348/Tools/nunit-console.exe"
#	nunit.assemblies "src/Tests/bin/Release/Tests.dll"
#	nunit.options "/xml=#{reportsPath}/TestResult.xml"
#end<commit_msg>Mods for TeamCity migration.<commit_after>require "albacore"
require "release/filesystem"

reportsPath = "reports"
version = ENV["BUILD_NUMBER"]

desc "Inits the build"
task :initBuild do
	FileSystem.EnsurePath(reportsPath)
end

desc "Generate assembly info."
assemblyinfo :assemblyInfo => :initBuild do |asm|
    asm.version = version
    asm.company_name = "Ultraviolet Catastrophe"
    asm.product_name = "Hid Library"
    asm.title = "Hid Library"
    asm.description = "Hid communication library."
    asm.copyright = "Copyright (c) 2011 Ultraviolet Catastrophe"
    asm.output_file = "src/HidLibrary/Properties/AssemblyInfo.cs"
end

desc "Builds the library."
msbuild :buildLibrary => :assemblyInfo do |msb|
    msb.properties :configuration => :Release
    msb.targets :Clean, :Build
    msb.solution = "src/HidLibrary/HidLibrary.csproj"
end

#desc "Builds the test project."
#msbuild :buildTestProject => :buildLibrary do |msb|
#    msb.properties :configuration => :Release
#    msb.targets :Clean, :Build
#    msb.solution = "src/Tests/Tests.csproj"
#end

#desc "NUnit Test Runner"
#nunit :unitTests => :buildTestProject do |nunit|
#	nunit.command = "src/packages/NUnit.2.5.9.10348/Tools/nunit-console.exe"
#	nunit.assemblies "src/Tests/bin/Release/Tests.dll"
#	nunit.options "/xml=#{reportsPath}/TestResult.xml"
#end
{'fraction_non_alphanumeric': 0.12617702448210924, 'fraction_numerical': 0.00903954802259887, 'mean_word_length': 4.639065817409766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '3471042', 'n_tokens_mistral': 956, 'n_tokens_neox': 891, 'n_words': 208}