<commit_before>properties { 
  $base_dir  = resolve-path .
  $lib_dir = "$base_dir\SharedLibs"
  $lib_for_build_dir = "$lib_dir\build\"
  $target_framework_version = "3.5"
  $sln_file = "$base_dir\Rhino.ServiceBus.sln" 
  $version = "1.9.0.0"
  $tools_dir = "$base_dir\Tools"
  $config = "Release"
  $run_tests = "false"
}

$framework = '4.0'

include .\psake_ext.ps1
	
task default -depends Release

task SetDerivedProperties {
  $script:build_dir = "$base_dir\build\$target_framework_version\"
  $script:buildartifacts_dir = $build_dir 
  $script:release_dir = "$base_dir\Release\$target_framework_version"
  $script:build_properties = "OutDir=$buildartifacts_dir;Configuration=$config;TargetFrameworkVersion=V$target_framework_version"
}

task Clean -depends SetDerivedProperties { 
  remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue 
  remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue 
  remove-item -force -recurse $lib_for_build_dir -ErrorAction SilentlyContinue
} 

task Init -depends Clean {
	$infos = (
		"$base_dir\Rhino.ServiceBus\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Tests\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Host\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Castle\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.StructureMap\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Autofac\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Unity\Properties\AssemblyInfo.cs"
	); 
		
	$infos | foreach { Generate-Assembly-Info `
		-file $_ `
		-title "Rhino Service Bus $version" `
		-description "Developer friendly service bus for .NET" `
		-company "Hibernating Rhinos" `
		-product "Rhino Service Bus $version" `
		-version $version `
		-copyright "Hibernating Rhinos & <NAME> 2004 - 2009" `
	}
		
	new-item $release_dir -itemType directory 
	new-item $buildartifacts_dir -itemType directory 
	new-item $lib_for_build_dir -itemType directory -force
	get-childitem "$lib_dir\*.*" -exclude "3.5;4.0" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
	get-childitem "$lib_dir\$target_framework_version\*.*" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
} 

task Compile -depends Init {
  msbuild $sln_file /p:$build_properties
} 

task Test -depends Compile {
  if($run_tests -eq "false")
  {
    return
  }
  $test_runner =  "$tools_dir\xUnit\"
  $old = pwd
  cd $build_dir
  & $tools_dir\xUnit\xunit.console.clr4.exe "$build_dir\Rhino.ServiceBus.Tests.dll" /noshadow
  cd $old		
}

task Release  -depends Test{

	& $tools_dir\zip.exe -9 -A -j `
	$release_dir\Rhino.ServiceBus.zip `
    	$build_dir\Castle.Core.dll `
    	$build_dir\Castle.Core.pdb `
    	$build_dir\Castle.Core.xml `
    	$build_dir\Castle.Windsor.dll `
    	$build_dir\Castle.Windsor.pdb `
    	$build_dir\Castle.Windsor.xml `
    	$build_dir\StructureMap.dll `
    	$build_dir\Esent.Interop.dll `
    	$build_dir\Esent.Interop.pdb `
    	$build_dir\Esent.Interop.xml `
    	$build_dir\log4net.dll `
    	$build_dir\log4net.xml `
    	$build_dir\Rhino.PersistentHashTable.dll `
    	$build_dir\Rhino.PersistentHashTable.pdb `
    	$build_dir\Rhino.Queues.dll `
    	$build_dir\Rhino.Queues.pdb `
    	$build_dir\Rhino.ServiceBus.dll `
    	$build_dir\Rhino.ServiceBus.pdb `
    	$build_dir\Rhino.ServiceBus.xml `
    	$build_dir\Rhino.ServiceBus.Castle.xml `
    	$build_dir\Rhino.ServiceBus.Castle.dll `
    	$build_dir\Rhino.ServiceBus.StructureMap.xml `
    	$build_dir\Rhino.ServiceBus.StructureMap.dll `<commit_msg>Added additional containers to zip.<commit_after>properties { 
  $base_dir  = resolve-path .
  $lib_dir = "$base_dir\SharedLibs"
  $lib_for_build_dir = "$lib_dir\build\"
  $target_framework_version = "3.5"
  $sln_file = "$base_dir\Rhino.ServiceBus.sln" 
  $version = "1.9.0.0"
  $tools_dir = "$base_dir\Tools"
  $config = "Release"
  $run_tests = "false"
}

$framework = '4.0'

include .\psake_ext.ps1
	
task default -depends Release

task SetDerivedProperties {
  $script:build_dir = "$base_dir\build\$target_framework_version\"
  $script:buildartifacts_dir = $build_dir 
  $script:release_dir = "$base_dir\Release\$target_framework_version"
  $script:build_properties = "OutDir=$buildartifacts_dir;Configuration=$config;TargetFrameworkVersion=V$target_framework_version"
}

task Clean -depends SetDerivedProperties { 
  remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue 
  remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue 
  remove-item -force -recurse $lib_for_build_dir -ErrorAction SilentlyContinue
} 

task Init -depends Clean {
	$infos = (
		"$base_dir\Rhino.ServiceBus\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Tests\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Host\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Castle\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.StructureMap\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Autofac\Properties\AssemblyInfo.cs",
		"$base_dir\Rhino.ServiceBus.Unity\Properties\AssemblyInfo.cs"
	); 
		
	$infos | foreach { Generate-Assembly-Info `
		-file $_ `
		-title "Rhino Service Bus $version" `
		-description "Developer friendly service bus for .NET" `
		-company "Hibernating Rhinos" `
		-product "Rhino Service Bus $version" `
		-version $version `
		-copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009" `
	}
		
	new-item $release_dir -itemType directory 
	new-item $buildartifacts_dir -itemType directory 
	new-item $lib_for_build_dir -itemType directory -force
	get-childitem "$lib_dir\*.*" -exclude "3.5;4.0" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
	get-childitem "$lib_dir\$target_framework_version\*.*" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
} 

task Compile -depends Init {
  msbuild $sln_file /p:$build_properties
} 

task Test -depends Compile {
  if($run_tests -eq "false")
  {
    return
  }
  $test_runner =  "$tools_dir\xUnit\"
  $old = pwd
  cd $build_dir
  & $tools_dir\xUnit\xunit.console.clr4.exe "$build_dir\Rhino.ServiceBus.Tests.dll" /noshadow
  cd $old		
}

task Release  -depends Test{

	& $tools_dir\zip.exe -9 -A -j `
	$release_dir\Rhino.ServiceBus.zip `
    	$build_dir\Castle.Core.dll `
    	$build_dir\Castle.Core.pdb `
    	$build_dir\Castle.Core.xml `
    	$build_dir\Castle.Windsor.dll `
    	$build_dir\Castle.Windsor.pdb `
    	$build_dir\Castle.Windsor.xml `
    	$build_dir\StructureMap.dll `
    	$build_dir\Esent.Interop.dll `
    	$build_dir\Esent.Interop.pdb `
    	$build_dir\Esent.Interop.xml `
    	$build_dir\log4net.dll `
    	$build_dir\log4net.xml `
    	$build_dir\Rhino.PersistentHashTable.dll `
    	$build_dir\Rhino.PersistentHashTable.pdb `
    	$build_dir\Rhino.Queues.dll `
    	$build_dir\Rhino.Queues.pdb `
    	$build_dir\Rhino.ServiceBus.dll `
    	$build_dir\Rhino.ServiceBus.pdb `
    	$build_dir\Rhino.ServiceBus.xml `
    	$build_dir\Rhino.ServiceBus.Castle.xml `
    	$build_dir\Rhino.ServiceBus.Castle.dll `
    	$build_dir\Rhino.ServiceBus.Castle.pdb `
    	$build_dir\Rhino.ServiceBus.StructureMap.xml `
    	$build_dir\StructureMap.dll `
    	$build_dir\Rhino.ServiceBus.StructureMap.dll `
    	$build_dir\Rhino.ServiceBus.StructureMap.pdb `
    	$build_dir\Autofac.dll `
    	$build_dir\Rhino.ServiceBus.Autofac.xml `
    	$build_dir\Rhino.ServiceBus.Autofac.dll `
    	$build_dir\Rhino.ServiceBus.Autofac.pdb `
    	$build_dir\Microsoft.Practices.Unity.dll `
    	$build_dir\Microsoft.Practices.Unity.Interception.dll `
    	$build_dir\Rhino.ServiceBus.Unity.xml `
    	$build_dir\Rhino.ServiceBus.Unity.dll `
    	$build_dir\Rhino.ServiceBus.Unity.pdb `
{'fraction_non_alphanumeric': 0.12916612631305927, 'fraction_numerical': 0.006484243288808196, 'mean_word_length': 3.9121019108280253, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, 'pii_count': 2, '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': '7601567', 'n_tokens_mistral': 3109, 'n_tokens_neox': 2903, 'n_words': 397}