<commit_before>﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Calculator.MainPage">
    <ContentPage.Content>
        <Grid Padding="5,0" RowSpacing="1" ColumnSpacing="1" BackgroundColor="Black">

            <Grid.RowDefinitions>
                <RowDefinition Height="2*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Label x:Name="resultText"  FontAttributes="Bold" FontSize="48" BackgroundColor="Black" Text="0"
                    TextColor="White" HorizontalTextAlignment="End" VerticalTextAlignment="Center"
                    LineBreakMode="NoWrap" Grid.ColumnSpan="4" />

            <Button Text="7" Grid.Row="1" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="8" Grid.Row="1" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="9" Grid.Row="1" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />

            <Button Text="4" Grid.Row="2" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="5" Grid.Row="2" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="6" Grid.Row="2" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />

            <Button Text="1" Grid.Row="3" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="2" Grid.Row="3" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="3" Grid.Row="3" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />
            <Button Text="0" Grid.Row="3" Grid.Column="3" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" />

            <Button Text="/" Grid.Row="1" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="X" Grid.Row="2" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="-" Grid.Row="3" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="+" Grid.Row="4" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

            <Button Text="C" Grid.Row="4" Grid.Column="0" BackgroundColor="#808080" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

            <Button Text="=" Grid.Row="4" Grid.Column="1" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

        </Grid>
    </ContentPage.Content>
</ContentPage><commit_msg>wired OnSelectNumber event handler to every button<commit_after>﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Calculator.MainPage">
    <ContentPage.Content>
        <Grid Padding="5,0" RowSpacing="1" ColumnSpacing="1" BackgroundColor="Black">

            <Grid.RowDefinitions>
                <RowDefinition Height="2*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Label x:Name="resultText"  FontAttributes="Bold" FontSize="48" BackgroundColor="Black" Text="0"
                    TextColor="White" HorizontalTextAlignment="End" VerticalTextAlignment="Center"
                    LineBreakMode="NoWrap" Grid.ColumnSpan="4" />

            <Button Text="7" Grid.Row="1" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="8" Grid.Row="1" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="9" Grid.Row="1" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />

            <Button Text="4" Grid.Row="2" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="5" Grid.Row="2" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="6" Grid.Row="2" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />

            <Button Text="1" Grid.Row="3" Grid.Column="0" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="2" Grid.Row="3" Grid.Column="1" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="3" Grid.Row="3" Grid.Column="2" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />
            <Button Text="0" Grid.Row="3" Grid.Column="3" BackgroundColor="White" TextColor="Black"
                    FontSize="36" BorderRadius="0" Clicked="OnSelectNumber" />

            <Button Text="/" Grid.Row="1" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="X" Grid.Row="2" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="-" Grid.Row="3" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />
            <Button Text="+" Grid.Row="4" Grid.Column="3" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

            <Button Text="C" Grid.Row="4" Grid.Column="0" BackgroundColor="#808080" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

            <Button Text="=" Grid.Row="4" Grid.Column="1" BackgroundColor="#FFA500" TextColor="White" 
                    FontSize="36" BorderRadius="0" />

        </Grid>
    </ContentPage.Content>
</ContentPage>
{'fraction_non_alphanumeric': 0.16145899757683968, 'fraction_numerical': 0.03341410534370616, 'mean_word_length': 2.4319474835886212, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3309830', 'n_tokens_mistral': 2351, 'n_tokens_neox': 2118, 'n_words': 373}