<commit_before>﻿<Window x:Class="Waf.Writer.Presentation.Views.ShellWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:c="clr-namespace:Waf.Writer.Presentation.Converters"
    xmlns:p="clr-namespace:Waf.Writer.Presentation.Properties"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dd="clr-namespace:Waf.Writer.Presentation.DesignData"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vm="clr-namespace:Waf.Writer.Applications.ViewModels;assembly=Waf.Writer.Applications"
    mc:Ignorable="d" d:DataContext="{d:DesignInstance dd:SampleShellViewModel, IsDesignTimeCreatable=True}"
    x:Name="shellWindow" Icon="{StaticResource WriterImageSource}"
    Height="600" Width="900">
    
    <Window.Title>
        <MultiBinding Converter="{StaticResource TitleConverter}">
            <Binding Path="Title"/>
            <Binding Path="ShellService.DocumentName"/>
        </MultiBinding>
    </Window.Title>

    <Window.InputBindings>
        <KeyBinding Command="{Binding FileService.NewCommand}" Key="N" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.OpenCommand}" Key="O" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.CloseCommand}" Key="F4" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.SaveCommand}" Key="S" Modifiers="Control"/>
        <KeyBinding Command="{Binding PrintCommand}" Key="P" Modifiers="Control"/>
        <KeyBinding Command="{Binding AboutCommand}" Key="F1"/>
    </Window.InputBindings>

    <DockPanel>
        <Ribbon DockPanel.Dock="Top" Margin="0,-22,0,2">
            <Ribbon.QuickAccessToolBar>
                <RibbonQuickAccessToolBar>
                    <RibbonButton Command="{Binding FileService.SaveCommand}" 
                                  SmallImageSource="{StaticResource SaveImageSource}" 
                                  ToolTipTitle="{x:Static p:Resources.SaveToolTip}" ToolTipDescription="{x:Static p:Resources.SaveToolTipDescription}"/>
                    <RibbonButton Command="ApplicationCommands.Undo" 
                                  SmallImageSource="{StaticResource UndoImageSource}" 
                                  ToolTipTitle="{x:Static p:Resources.UndoToolTip}" ToolTipDescription="{x:Static p:Resources.UndoToolTipDescription}"/>
                    <RibbonButton Command="ApplicationCommands.Redo" 
                                  SmallImageSource="{StaticResource RedoImageSource}" <commit_msg>Writer: Add comment that explains why the QuickAccessToolBar is not shown anymore<commit_after>﻿<Window x:Class="Waf.Writer.Presentation.Views.ShellWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:c="clr-namespace:Waf.Writer.Presentation.Converters"
    xmlns:p="clr-namespace:Waf.Writer.Presentation.Properties"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dd="clr-namespace:Waf.Writer.Presentation.DesignData"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vm="clr-namespace:Waf.Writer.Applications.ViewModels;assembly=Waf.Writer.Applications"
    mc:Ignorable="d" d:DataContext="{d:DesignInstance dd:SampleShellViewModel, IsDesignTimeCreatable=True}"
    x:Name="shellWindow" Icon="{StaticResource WriterImageSource}"
    Height="600" Width="900">
    
    <Window.Title>
        <MultiBinding Converter="{StaticResource TitleConverter}">
            <Binding Path="Title"/>
            <Binding Path="ShellService.DocumentName"/>
        </MultiBinding>
    </Window.Title>

    <Window.InputBindings>
        <KeyBinding Command="{Binding FileService.NewCommand}" Key="N" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.OpenCommand}" Key="O" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.CloseCommand}" Key="F4" Modifiers="Control"/>
        <KeyBinding Command="{Binding FileService.SaveCommand}" Key="S" Modifiers="Control"/>
        <KeyBinding Command="{Binding PrintCommand}" Key="P" Modifiers="Control"/>
        <KeyBinding Command="{Binding AboutCommand}" Key="F1"/>
    </Window.InputBindings>

    <DockPanel>
        <Ribbon DockPanel.Dock="Top" Margin="0,-22,0,2">
            <!-- QuickAccessToolBar requires the RibbonWindow. The sample does not use the RibbonWindow anymore because it has a lot issues -->
            <Ribbon.QuickAccessToolBar>
                <RibbonQuickAccessToolBar>
                    <RibbonButton Command="{Binding FileService.SaveCommand}" 
                                  SmallImageSource="{StaticResource SaveImageSource}" 
                                  ToolTipTitle="{x:Static p:Resources.SaveToolTip}" ToolTipDescription="{x:Static p:Resources.SaveToolTipDescription}"/>
                    <RibbonButton Command="ApplicationCommands.Undo" 
                                  SmallImageSource="{StaticResource UndoImageSource}" 
                                  ToolTipTitle="{x:Static p:Resources.UndoToolTip}" ToolTipDescription="{x:Static p:Resources.UndoToolTipDescription}"/>
                    <RibbonButton Command="ApplicationCommands.Redo" 
                                  SmallImageSource="{StaticResource RedoImageSource}" 
{'fraction_non_alphanumeric': 0.1281261326567597, 'fraction_numerical': 0.010511054729974628, 'mean_word_length': 3.3766851704996035, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1374954', 'n_tokens_mistral': 1619, 'n_tokens_neox': 1490, 'n_words': 205}