<commit_before>﻿<?xml version="1.0" encoding="utf-8" ?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
             xmlns:local="clr-namespace:SiwakeApp;assembly=SiwakeApp"
             prism:ViewModelLocator.AutowireViewModel="True"
             ItemsSource="{Binding CurrentQuestionList}"
             SelectedItem="{Binding CurrentQuestionPage}"
             Title="{Binding QuestionPageName}"
             x:Class="SiwakeApp.Views.QuestionPage2"
             x:Name="root">
    <CarouselPage.Resources>
        <ResourceDictionary>
            <local:NegateBooleanConverter x:Key="inverter"/>
            <local:ItemTypeColorConverter x:Key="colorConverter"/>
        </ResourceDictionary>
    </CarouselPage.Resources>
    <CarouselPage.ItemTemplate>
        <DataTemplate>
            <ContentPage>
                <StackLayout>
                    <StackLayout Orientation="Horizontal">
                        <Label TextColor="#212121" FontSize="Large" Text="{Binding Number, StringFormat='第{0}問'}"/>
                        <Label TextColor="#BD2121" FontSize="Large" Text="{Binding ResultText}" IsVisible="{Binding Confirmed}"/>
                    </StackLayout>
                    
                    <Frame OutlineColor="#bdbdbd" Margin="5,5,5,5">
                        <StackLayout Orientation="Vertical">
                            <Label Text="{Binding Question.Description}" TextColor="#212121"></Label>
                            <Label Text="[解説]" TextColor="#212121" IsVisible="{Binding Confirmed}"></Label>
                            <Label Text="{Binding Question.Commentary}" TextColor="#757575" IsVisible="{Binding Confirmed}"></Label>
                        </StackLayout>
                    </Frame>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ListView Grid.Column="0" ItemsSource="{Binding KariList}" CachingStrategy="RecycleElement">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ViewCell>
                                        <Grid HeightRequest="38">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="3*"/>
                                                <ColumnDefinition Width="2*"/>
                                            </Grid.ColumnDefinitions>
                                            <Entry Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" TextColor="Black"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding KamokuType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                            <Entry Text="{Binding Money}" Grid.Column="1" FontSize="Small" TextColor="Black"  Keyboard="Numeric"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Money}" Grid.Column="1" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding MoneyType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                        </Grid>
                                    </ViewCell>
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                        <ListView Grid.Column="1" ItemsSource="{Binding KashiList}" CachingStrategy="RecycleElement">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ViewCell>
                                        <Grid >
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="3*"/>
                                                <ColumnDefinition Width="2*"/>
                                            </Grid.ColumnDefinitions>
                                            <Entry Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" TextColor="Black"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding KamokuType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                            <Entry Text="{Binding Money}" Grid.Column="1" FontSize="Small" TextColor="Black"  Keyboard="Numeric"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Money}" Grid.Column="1" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding MoneyType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                        </Grid>
                                    </ViewCell>
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                    </Grid>
                    <Button Text="{Binding AnswerButtonLabel}}" Command="{Binding BindingContext.AnswerCommand, Source={x:Reference root}}"></Button>
                </StackLayout>
            </ContentPage>
        </DataTemplate>
    </CarouselPage.ItemTemplate>
</CarouselPage><commit_msg>中カッコの個数間違いを修正<commit_after>﻿<?xml version="1.0" encoding="utf-8" ?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
             xmlns:local="clr-namespace:SiwakeApp;assembly=SiwakeApp"
             prism:ViewModelLocator.AutowireViewModel="True"
             ItemsSource="{Binding CurrentQuestionList}"
             SelectedItem="{Binding CurrentQuestionPage}"
             Title="{Binding QuestionPageName}"
             x:Class="SiwakeApp.Views.QuestionPage2"
             x:Name="root">
    <CarouselPage.Resources>
        <ResourceDictionary>
            <local:NegateBooleanConverter x:Key="inverter"/>
            <local:ItemTypeColorConverter x:Key="colorConverter"/>
        </ResourceDictionary>
    </CarouselPage.Resources>
    <CarouselPage.ItemTemplate>
        <DataTemplate>
            <ContentPage>
                <StackLayout>
                    <StackLayout Orientation="Horizontal">
                        <Label TextColor="#212121" FontSize="Large" Text="{Binding Number, StringFormat='第{0}問'}"/>
                        <Label TextColor="#BD2121" FontSize="Large" Text="{Binding ResultText}" IsVisible="{Binding Confirmed}"/>
                    </StackLayout>
                    
                    <Frame OutlineColor="#bdbdbd" Margin="5,5,5,5">
                        <StackLayout Orientation="Vertical">
                            <Label Text="{Binding Question.Description}" TextColor="#212121"></Label>
                            <Label Text="[解説]" TextColor="#212121" IsVisible="{Binding Confirmed}"></Label>
                            <Label Text="{Binding Question.Commentary}" TextColor="#757575" IsVisible="{Binding Confirmed}"></Label>
                        </StackLayout>
                    </Frame>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ListView Grid.Column="0" ItemsSource="{Binding KariList}" CachingStrategy="RecycleElement">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ViewCell>
                                        <Grid HeightRequest="38">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="3*"/>
                                                <ColumnDefinition Width="2*"/>
                                            </Grid.ColumnDefinitions>
                                            <Entry Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" TextColor="Black"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding KamokuType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                            <Entry Text="{Binding Money}" Grid.Column="1" FontSize="Small" TextColor="Black"  Keyboard="Numeric"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Money}" Grid.Column="1" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding MoneyType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                        </Grid>
                                    </ViewCell>
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                        <ListView Grid.Column="1" ItemsSource="{Binding KashiList}" CachingStrategy="RecycleElement">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ViewCell>
                                        <Grid >
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="3*"/>
                                                <ColumnDefinition Width="2*"/>
                                            </Grid.ColumnDefinitions>
                                            <Entry Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" TextColor="Black"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Kamoku}" Grid.Column="0" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding KamokuType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                            <Entry Text="{Binding Money}" Grid.Column="1" FontSize="Small" TextColor="Black"  Keyboard="Numeric"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay, Converter={StaticResource inverter}}">
                                                <Entry.Behaviors>
                                                    <local:UnfocusedBehavior />
                                                </Entry.Behaviors>
                                            </Entry>
                                            <Label Text="{Binding Money}" Grid.Column="1" FontSize="Small" Margin="5, 5, 5, 5"
                                                   TextColor="{Binding MoneyType, Mode=TwoWay, Converter={StaticResource colorConverter}}"
                                                   IsVisible="{Binding BindingContext.CurrentQuestionPage.Confirmed, Source={x:Reference root}, Mode=TwoWay}"/>
                                        </Grid>
                                    </ViewCell>
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                    </Grid>
                    <Button Text="{Binding AnswerButtonLabel}" Command="{Binding BindingContext.AnswerCommand, Source={x:Reference root}}"></Button>
                </StackLayout>
            </ContentPage>
        </DataTemplate>
    </CarouselPage.ItemTemplate>
</CarouselPage>
{'fraction_non_alphanumeric': 0.09981213259802436, 'fraction_numerical': 0.009332767711047815, 'mean_word_length': 1.1495375797837697, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 2, '>': 185, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 192, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2364433', 'n_tokens_mistral': 3369, 'n_tokens_neox': 3056, 'n_words': 547}