<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.WindowsAPICodePack.Dialogs;

namespace de.fhb.oll.mediacategorizer
{
    /// <summary>
    /// Interaktionslogik für PageStart.xaml
    /// </summary>
    public partial class PageStart : Page
    {
        public PageStart()
        {
            InitializeComponent();
        }

        private void ChooseOutputDirectoryHandler(object sender, RoutedEventArgs e)
        {
            var dlg = new CommonOpenFileDialog("Ausgabeverzeichnis wählen...")
            {
                IsFolderPicker = true,
                InitialDirectory = txtOutputDirectory.Text,
            };
            var res = dlg.ShowDialog(Window.GetWindow(this));
            if (res == CommonFileDialogResult.Ok)
            {
                txtOutputDirectory.Text = dlg.FileName;
            }
        }
    }
}
<commit_msg>fixed update issue for output directory field<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using de.fhb.oll.mediacategorizer.model;
using Microsoft.WindowsAPICodePack.Dialogs;

namespace de.fhb.oll.mediacategorizer
{
    /// <summary>
    /// Interaktionslogik für PageStart.xaml
    /// </summary>
    public partial class PageStart : Page
    {
        public PageStart()
        {
            InitializeComponent();
        }

        private Project GetProject()
        {
            return (Project)DataContext;
        }

        private void ChooseOutputDirectoryHandler(object sender, RoutedEventArgs e)
        {
            var dlg = new CommonOpenFileDialog("Ausgabeverzeichnis wählen...")
            {
                IsFolderPicker = true,
                InitialDirectory = txtOutputDirectory.Text,
            };
            var res = dlg.ShowDialog(Window.GetWindow(this));
            if (res == CommonFileDialogResult.Ok)
            {
                GetProject().OutputDir = dlg.FileName;
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.09323653037829575, 'fraction_numerical': 0.0, 'mean_word_length': 2.3955901426718547, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6227219', 'n_tokens_mistral': 713, 'n_tokens_neox': 707, 'n_words': 149}