<commit_before>﻿<Window x:Class="RemotePlanning.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:RemotePlanning"
        xmlns:main="clr-namespace:RemotePlanning.Main"
        xmlns:planningSheets="clr-namespace:RemotePlanning.PlanningSheets"
        xmlns:control="clr-namespace:RemotePlanning.PlanningSheets.Control"
        mc:Ignorable="d"
        Title="Remote Planning" 
        WindowStartupLocation="CenterScreen"
        d:DataContext="{d:DesignInstance local:MainWindowViewModel}"
        
        Height="1024" 
        Width="768">
    <Grid x:Name="WindowPanel">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <ListView Grid.Row="0" 
                  Grid.Column="0"
                  ItemsSource="{Binding SelectedProject.Iterations}"
                  SelectedItem="{Binding SelectedIteration}">

        </ListView>
        <ScrollViewer HorizontalScrollBarVisibility="Disabled" 
                      VerticalScrollBarVisibility="Disabled" 
                      Grid.Column="1"
                      x:Name="CanvasContainer">
            <Canvas x:Name="GameCanvas" PreviewMouseWheel="Canvas_OnMouseWheel" Background="White" Width="5000" Height="2000">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="{Binding ScaleX}" ScaleY="{Binding ScaleY}"/>
                        <TranslateTransform X="{Binding OffsetX}" Y="{Binding OffsetY}"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
            </Canvas>
        </ScrollViewer>
        <StatusBar Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <TextBlock>Ready</TextBlock>
        </StatusBar>
    </Grid>
</Window>


<commit_msg>Fixed bindings on canvas zoom RenderTransform<commit_after>﻿<Window x:Class="RemotePlanning.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:RemotePlanning"
        xmlns:main="clr-namespace:RemotePlanning.Main"
        xmlns:planningSheets="clr-namespace:RemotePlanning.PlanningSheets"
        xmlns:control="clr-namespace:RemotePlanning.PlanningSheets.Control"
        mc:Ignorable="d"
        Title="Remote Planning" 
        WindowStartupLocation="CenterScreen"
        d:DataContext="{d:DesignInstance local:MainWindowViewModel}"
        
        Height="1024" 
        Width="768">
    <Grid x:Name="WindowPanel">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <ListView Grid.Row="0" 
                  Grid.Column="0"
                  ItemsSource="{Binding SelectedProject.Iterations}"
                  SelectedItem="{Binding SelectedIteration}">

        </ListView>
        <ScrollViewer HorizontalScrollBarVisibility="Disabled" 
                      VerticalScrollBarVisibility="Disabled" 
                      Grid.Column="1"
                      x:Name="CanvasContainer">
            <Canvas x:Name="GameCanvas" PreviewMouseWheel="Canvas_OnMouseWheel" Background="White" Width="5000" Height="2000">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="{Binding ZoomViewModel.ScaleX}" ScaleY="{Binding ZoomViewModel.ScaleY}"/>
                        <TranslateTransform X="{Binding ZoomViewModel.OffsetX}" Y="{Binding ZoomViewModel.OffsetY}"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
            </Canvas>
        </ScrollViewer>
        <StatusBar Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <TextBlock>Ready</TextBlock>
        </StatusBar>
    </Grid>
</Window>



{'fraction_non_alphanumeric': 0.1251082251082251, 'fraction_numerical': 0.01818181818181818, 'mean_word_length': 2.353410740203193, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '4146957', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1196, 'n_words': 155}