<commit_before>﻿// <copyright file="Program.cs" company="http://rikker.ru">
// Copyright (c) <NAME> 2012 All Right Reserved
// </copyright>
// <author><NAME></author>
// <email><EMAIL></email>
// <summary>Simple console app to combine multiple XAML resource dictionaries in one.</summary>
namespace XamlCombine
{
    using System;
    using System.Diagnostics;

    /// <summary>
    /// Represents simple console app to combine multiple XAML resource dictionaries in one.
    /// Command line syntaxis:
    /// XamlCombine.exe [list-of-xamls.txt] [result-xaml.xaml]
    /// All paths must be relative to XamlCombine.exe location.
    /// </summary>
    internal class Program
    {
        /// <summary>
        /// Main function.
        /// </summary>
        /// <param name="args">Command line args.</param>
        private static int Main(string[] args)
        {
            try
            {
                var stopwatch = Stopwatch.StartNew();

                // TODO: Add flags for some parameters.
                if (args.Length == 2)
                {
                    var combiner = new Combiner();
                    combiner.Combine(args[0], args[1]);
                }

                // TODO: Add help output.

                stopwatch.Stop();
                Trace.WriteLine(string.Format("Combine time: {0}", stopwatch.Elapsed));

                if (Debugger.IsAttached)
                {
                    Console.ReadLine();
                }

                return 0;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return 1;
            }
        }
    }
}<commit_msg>Adding trace output for exception<commit_after>﻿// <copyright file="Program.cs" company="http://rikker.ru">
// Copyright (c) <NAME> 2012 All Right Reserved
// </copyright>
// <author><NAME></author>
// <email><EMAIL></email>
// <summary>Simple console app to combine multiple XAML resource dictionaries in one.</summary>
namespace XamlCombine
{
    using System;
    using System.Diagnostics;

    /// <summary>
    /// Represents simple console app to combine multiple XAML resource dictionaries in one.
    /// Command line syntaxis:
    /// XamlCombine.exe [list-of-xamls.txt] [result-xaml.xaml]
    /// All paths must be relative to XamlCombine.exe location.
    /// </summary>
    internal class Program
    {
        /// <summary>
        /// Main function.
        /// </summary>
        /// <param name="args">Command line args.</param>
        private static int Main(string[] args)
        {
            try
            {
                var stopwatch = Stopwatch.StartNew();

                // TODO: Add flags for some parameters.
                if (args.Length == 2)
                {
                    var combiner = new Combiner();
                    combiner.Combine(args[0], args[1]);
                }

                // TODO: Add help output.

                stopwatch.Stop();
                Trace.WriteLine(string.Format("Combine time: {0}", stopwatch.Elapsed));

                if (Debugger.IsAttached)
                {
                    Console.ReadLine();
                }

                return 0;
            }
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Console.WriteLine(e);
                return 1;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.12190812720848057, 'fraction_numerical': 0.005889281507656066, 'mean_word_length': 1.4177935943060498, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '602225', 'n_tokens_mistral': 927, 'n_tokens_neox': 857, 'n_words': 233}