<commit_before>﻿<ContentPage
    x:Class="BAXMobile.Buckets.BucketViewPage"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:baxMobile="clr-namespace:BAXMobile;assembly=BAXMobile"
    BackgroundColor="{StaticResource BackgroundColour}"
    Appearing="OnAppearing">

    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label
            HorizontalOptions="Start"
            Style="{StaticResource Style.LabelHeading}"
            Text="{Binding BucketCode}" />
        <Label
            Grid.Column="0"
            Grid.ColumnSpan="2"
            Grid.Row="1"
            HorizontalOptions="Start"
            Style="{StaticResource Style.LabelHeading}"
            Text="{Binding Description}" />
        <Label
            Grid.Column="0"
            Grid.ColumnSpan="2"
            Grid.Row="2"
            Style="{StaticResource Style.Paragraph}"
            Text="{Binding BucketType}" />

        <Label
            Grid.Column="0"
            Grid.Row="3"
            IsVisible="{Binding MonthlyBudgetAmount, Converter={StaticResource Converter.NonZero}}"
            Style="{StaticResource Style.Paragraph}"
            Text="Monthly Budget Amount: " />
        <Label
            Grid.Column="1"
            Grid.Row="3"
            IsVisible="{Binding MonthlyBudgetAmount, Converter={StaticResource Converter.NonZero}}"
            Style="{StaticResource Style.Paragraph}"
            Text="{Binding MonthlyBudgetAmount, StringFormat='{0:C}'}" />

        <Label Grid.Column="0"
               Grid.Row="4"
               IsVisible="{Binding AccountName, Converter={StaticResource Converter.NullOrEmpty}}"
               Style="{StaticResource Style.Paragraph}"
               Text="Account: " />
        <Label Grid.Column="1"
               Grid.Row="4"
               IsVisible="{Binding AccountName, Converter={StaticResource Converter.NullOrEmpty}}"
               Style="{StaticResource Style.Paragraph}"
               Text="{Binding AccountName}" />
        
        <StackLayout
            Grid.Column="0"
            Grid.ColumnSpan="2"
            Grid.Row="5"
            HorizontalOptions="FillAndExpand"
            Margin="0,20,0,0"
            Spacing="0"
            VerticalOptions="FillAndExpand">
            <Label
                HorizontalOptions="FillAndExpand"
                HorizontalTextAlignment="Center"
                Text="{Binding OpeningBalance, StringFormat='{0:C}'}" />
            <ContentView
                HeightRequest="200"
                HorizontalOptions="FillAndExpand"
                VerticalOptions="Start">
                <BoxView
                    x:Name="fundsVisual"
                    BackgroundColor="{StaticResource ImportantTextColour}"
                    HeightRequest="200"
                    HorizontalOptions="Center"
                    VerticalOptions="End"
                    WidthRequest="75"/>
            </ContentView>
            <BoxView
                BackgroundColor="{StaticResource ImportantTextColour}"
                HeightRequest="2"
                HorizontalOptions="FillAndExpand"
                VerticalOptions="Start" />
            <Label
                HorizontalOptions="Center"
                HorizontalTextAlignment="Center"
                Text="{Binding RemainingBalance, StringFormat='{0:C}'}" />
            <Label
                HorizontalOptions="Center"
                HorizontalTextAlignment="Center"
                Text="Remaining" />
        </StackLayout>
    </Grid>

</ContentPage><commit_msg>Add scroll view to fix bug where view doesnt fit on one screen on some phones<commit_after>﻿<ContentPage x:Class="BAXMobile.Buckets.BucketViewPage"
             xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:baxMobile="clr-namespace:BAXMobile;assembly=BAXMobile"
             BackgroundColor="{StaticResource BackgroundColour}"
             Appearing="OnAppearing">

    <ScrollView>
        <Grid Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Label HorizontalOptions="Start"
                   Style="{StaticResource Style.LabelHeading}"
                   Text="{Binding BucketCode}" />
            <Label Grid.Column="0"
                   Grid.ColumnSpan="2"
                   Grid.Row="1"
                   HorizontalOptions="Start"
                   Style="{StaticResource Style.LabelHeading}"
                   Text="{Binding Description}" />
            <Label Grid.Column="0"
                   Grid.ColumnSpan="2"
                   Grid.Row="2"
                   Style="{StaticResource Style.Paragraph}"
                   Text="{Binding BucketType}" />

            <Label Grid.Column="0"
                   Grid.Row="3"
                   IsVisible="{Binding MonthlyBudgetAmount, Converter={StaticResource Converter.NonZero}}"
                   Style="{StaticResource Style.Paragraph}"
                   Text="Monthly Budget Amount: " />
            <Label Grid.Column="1"
                   Grid.Row="3"
                   IsVisible="{Binding MonthlyBudgetAmount, Converter={StaticResource Converter.NonZero}}"
                   Style="{StaticResource Style.Paragraph}"
                   Text="{Binding MonthlyBudgetAmount, StringFormat='{0:C}'}" />

            <Label Grid.Column="0"
                   Grid.Row="4"
                   IsVisible="{Binding AccountName, Converter={StaticResource Converter.NullOrEmpty}}"
                   Style="{StaticResource Style.Paragraph}"
                   Text="Account: " />
            <Label Grid.Column="1"
                   Grid.Row="4"
                   IsVisible="{Binding AccountName, Converter={StaticResource Converter.NullOrEmpty}}"
                   Style="{StaticResource Style.Paragraph}"
                   Text="{Binding AccountName}" />

            <StackLayout Grid.Column="0"
                         Grid.ColumnSpan="2"
                         Grid.Row="5"
                         HorizontalOptions="FillAndExpand"
                         Margin="0,20,0,0"
                         Spacing="0"
                         VerticalOptions="FillAndExpand">
                <Label HorizontalOptions="FillAndExpand"
                       HorizontalTextAlignment="Center"
                       Text="{Binding OpeningBalance, StringFormat='{0:C}'}" />
                <ContentView HeightRequest="200"
                             HorizontalOptions="FillAndExpand"
                             VerticalOptions="Start">
                    <BoxView x:Name="fundsVisual"
                             BackgroundColor="{StaticResource ImportantTextColour}"
                             HeightRequest="200"
                             HorizontalOptions="Center"
                             VerticalOptions="End"
                             WidthRequest="75" />
                </ContentView>
                <BoxView BackgroundColor="{StaticResource ImportantTextColour}"
                         HeightRequest="2"
                         HorizontalOptions="FillAndExpand"
                         VerticalOptions="Start" />
                <Label HorizontalOptions="Center"
                       HorizontalTextAlignment="Center"
                       Text="{Binding RemainingBalance, StringFormat='{0:C}'}" />
                <Label HorizontalOptions="Center"
                       HorizontalTextAlignment="Center"
                       Text="Remaining" />
            </StackLayout>
        </Grid>
    </ScrollView>
</ContentPage>
{'fraction_non_alphanumeric': 0.11056625802685348, 'fraction_numerical': 0.010507880910683012, 'mean_word_length': 1.6203732028143163, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '7147488', 'n_tokens_mistral': 2168, 'n_tokens_neox': 1917, 'n_words': 304}