<commit_before>. .\templates\template-functions.ps1
clear-host

open( "WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" )
[Reflection.Assembly]::LoadFrom( (combine "Templates" "Ionic.Zip.dll") ) | ignore

# files to replace text in
$replace_list = "*.cs","*.xaml"

# files to ignore per template
$ignore_for = @{"WP7Template" = @("WindowManager.cs")}

# relevant folder
$template_root = "templates"
$output_folder = "generated-templates"
$source_folder = "src"
$base_framework_template = combine $source_folder "Caliburn.Micro.Silverlight"

write "Cleaning old artifacts",""
del -force -recurse $output_folder -ErrorAction SilentlyContinue
md $output_folder | ignore
 
# | where {$_.Name -eq "SilverlightTemplate"}
dir $template_root `
  | where {$_.psIsContainer -eq $true} `
  | foreach {
    $template = $_
    $template_name = $template.Name.Replace("Template","")
    write ("Creating Template for " + $template_name)
    
    $framework_template = combine $source_folder ("Caliburn.Micro." + $template_name )
    $folder = combine $output_folder $template_name 
    $framework_folder = combine $folder "Framework"

    md $folder | ignore
    md $framework_folder | ignore
    
    write "... copying template files"<commit_msg>Fixed one final issue with the template generation script. Now we have official project templates for Caliburn.Micro WPF/Silverlight/WP7!!!<commit_after>. .\templates\template-functions.ps1
clear-host

open( "WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" )
[Reflection.Assembly]::LoadFrom( (combine "Templates" "Ionic.Zip.dll") ) | ignore

# files to replace text in
$replace_list = "*.cs","*.xaml","*.xml"

# files to ignore per template
$ignore_for = @{"WP7Template" = @("WindowManager.cs")}

# relevant folder
$template_root = "templates"
$output_folder = "generated-templates"
$source_folder = "src"
$base_framework_template = combine $source_folder "Caliburn.Micro.Silverlight"

write "Cleaning old artifacts",""
del -force -recurse $output_folder -ErrorAction SilentlyContinue
md $output_folder | ignore
 
# | where {$_.Name -eq "SilverlightTemplate"}
dir $template_root `
  | where {$_.psIsContainer -eq $true} `
  | foreach {
    $template = $_
    $template_name = $template.Name.Replace("Template","")
    write ("Creating Template for " + $template_name)
    
    $framework_template = combine $source_folder ("Caliburn.Micro." + $template_name )
    $folder = combine $output_folder $template_name 
    $framework_folder = combine $folder "Framework"

    md $folder | ignore
    md $framework_folder | ignore
    
    write "... copying template files"
{'fraction_non_alphanumeric': 0.1313813813813814, 'fraction_numerical': 0.013138138138138139, 'mean_word_length': 4.755939524838013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '5411203', 'n_tokens_mistral': 856, 'n_tokens_neox': 809, 'n_words': 206}