<commit_before>﻿<Window x:Class="SampleApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Independent Reserve API Sample Application (.NET)" Height="800" Width="600">
    
    <DockPanel>

        <StackPanel Margin="5" DockPanel.Dock="Top" >

            <StackPanel Margin="0,0,0,5" Orientation="Horizontal">
                <TextBlock Padding="0,5,5,0" FontWeight="Bold">API Key:</TextBlock>
                <TextBlock Padding="5,5,5,0" Text="{Binding ApiKey}"></TextBlock>
            </StackPanel>
            <StackPanel Margin="0,0,0,5" Orientation="Horizontal">
                <TextBlock Padding="0,5,5,0" FontWeight="Bold">API Url:</TextBlock>
                <TextBlock Padding="5,5,5,0" Text="{Binding ApiUrl}"></TextBlock>
            </StackPanel>
            <Separator/>
        </StackPanel>
        
        <StackPanel Orientation="Horizontal" Margin="5" DockPanel.Dock="Top">
            <TextBlock Padding="0,5,5,0" FontWeight="Bold">API method:</TextBlock>
            <ComboBox Width="300" ItemsSource="{Binding Path=Methods}" DisplayMemberPath="Description" SelectedItem="{Binding SelectedMethod}"></ComboBox>
            <Button Margin="5,0,0,0" Click="CallIt_OnClick">Call It!</Button>
        </StackPanel>

        

        <GroupBox Margin="5,0,5,5" DockPanel.Dock="Top" 
                  Padding="5"
                  Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}}">

            <GroupBox.Header>
                <Label FontSize="12" FontWeight="Bold">Specify Parameters</Label>
            </GroupBox.Header>

            <StackPanel>
                <StackPanel Margin="0,0,0,5" Orientation="Horizontal" Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}, ConverterParameter=primaryCurrency}">
                    <TextBlock Style="{StaticResource Label}" >Primary currency:</TextBlock>
                    <ComboBox SelectedValue="{Binding PrimaryCurrency}" SelectedValuePath="Tag">
                        <ComboBoxItem Tag="Xbt" IsSelected="True">Xbt</ComboBoxItem>
                        <ComboBoxItem Tag="Usd">Usd</ComboBoxItem>
                    </ComboBox>
                </StackPanel>
                <StackPanel Margin="0,0,0,5" Orientation="Horizontal" Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}, ConverterParameter=secondaryCurrency}">
                    <TextBlock Style="{StaticResource Label}" >Secondary currency:</TextBlock>
                    <ComboBox SelectedValue="{Binding SecondaryCurrency}" SelectedValuePath="Tag">
                        <ComboBoxItem Tag="Xbt">Xbt</ComboBoxItem>
                        <ComboBoxItem Tag="Usd" IsSelected="True">Usd</ComboBoxItem><commit_msg>Issue 15865 - added AUD to combobox<commit_after>﻿<Window x:Class="SampleApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Independent Reserve API Sample Application (.NET)" Height="800" Width="600">
    
    <DockPanel>

        <StackPanel Margin="5" DockPanel.Dock="Top" >

            <StackPanel Margin="0,0,0,5" Orientation="Horizontal">
                <TextBlock Padding="0,5,5,0" FontWeight="Bold">API Key:</TextBlock>
                <TextBlock Padding="5,5,5,0" Text="{Binding ApiKey}"></TextBlock>
            </StackPanel>
            <StackPanel Margin="0,0,0,5" Orientation="Horizontal">
                <TextBlock Padding="0,5,5,0" FontWeight="Bold">API Url:</TextBlock>
                <TextBlock Padding="5,5,5,0" Text="{Binding ApiUrl}"></TextBlock>
            </StackPanel>
            <Separator/>
        </StackPanel>
        
        <StackPanel Orientation="Horizontal" Margin="5" DockPanel.Dock="Top">
            <TextBlock Padding="0,5,5,0" FontWeight="Bold">API method:</TextBlock>
            <ComboBox Width="300" ItemsSource="{Binding Path=Methods}" DisplayMemberPath="Description" SelectedItem="{Binding SelectedMethod}"></ComboBox>
            <Button Margin="5,0,0,0" Click="CallIt_OnClick">Call It!</Button>
        </StackPanel>

        

        <GroupBox Margin="5,0,5,5" DockPanel.Dock="Top" 
                  Padding="5"
                  Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}}">

            <GroupBox.Header>
                <Label FontSize="12" FontWeight="Bold">Specify Parameters</Label>
            </GroupBox.Header>

            <StackPanel>
                <StackPanel Margin="0,0,0,5" Orientation="Horizontal" Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}, ConverterParameter=primaryCurrency}">
                    <TextBlock Style="{StaticResource Label}" >Primary currency:</TextBlock>
                    <ComboBox SelectedValue="{Binding PrimaryCurrency}" SelectedValuePath="Tag">
                        <ComboBoxItem Tag="Xbt" IsSelected="True">Xbt</ComboBoxItem>
                        <ComboBoxItem Tag="Usd">Usd</ComboBoxItem>
						<ComboBoxItem Tag="Aud">Aud</ComboBoxItem>
                    </ComboBox>
                </StackPanel>
                <StackPanel Margin="0,0,0,5" Orientation="Horizontal" Visibility="{Binding SelectedMethod, Converter={StaticResource MethodParameterToVisibilityConverter}, ConverterParameter=secondaryCurrency}">
                    <TextBlock Style="{StaticResource Label}" >Secondary currency:</TextBlock>
                    <ComboBox SelectedValue="{Binding SecondaryCurrency}" SelectedValuePath="Tag">
                        <ComboBoxItem Tag="Xbt">Xbt</ComboBoxItem>
                        <ComboBoxItem Tag="Usd" IsSelected="True">Usd</ComboBoxItem>
{'fraction_non_alphanumeric': 0.13462510530749788, 'fraction_numerical': 0.02308340353833193, 'mean_word_length': 2.877204441541476, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6423159', 'n_tokens_mistral': 1734, 'n_tokens_neox': 1576, 'n_words': 252}