<commit_before>﻿<UserControl x:Class="SonarLint.VisualStudio.Integration.Vsix.GeneralOptionsDialogControl"
             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"
             d:DesignHeight="300"
             d:DesignWidth="450"
             mc:Ignorable="d">

    <Grid Margin="0,0,0,5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

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

        <Button Grid.Column="0" Grid.Row="0" Content="Activate more..." Click="OnActivateMoreClicked"
                x:Name="ActivateButton"
                Margin="5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="0"
                   x:Name="ActivateText"
                   Text="Install and activate support for JavaScript."
                   VerticalAlignment="Center"
                   Margin="5" TextWrapping="Wrap"/>

        <Button Grid.Column="0" Grid.Row="0" Content="Deactivate" Click="OnDeactivateClicked"
                x:Name="DeactivateButton" Visibility="Collapsed"
                Margin="5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="0"
                   x:Name="DeactivateText" Visibility="Collapsed"
                   Text="Deactivate JavaScript support."
                   VerticalAlignment="Center"
                   Margin="5" TextWrapping="Wrap"/>

        <Button Grid.Column="0" Grid.Row="3" Content="Open user settings"
                x:Name="OpenSettingsButton"
                Margin="5,25,5,5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="3"
                   Text="Open the per-user settings file."
                   VerticalAlignment="Center"
                   Margin="5,25,5,5"
                   TextWrapping="Wrap" />
        <TextBlock Grid.Column="1" Grid.Row="4"
                   Text="The file will be created if it does not exist."
                   VerticalAlignment="Center"
                   Margin="5,0,0,5" TextWrapping="Wrap" />
        
        <TextBlock Grid.Column="1" Grid.Row="1"
                   Text="SonarLint can also analyze JavaScript files. After installing the support for this language, it will be activated for newly opened files. Note that it doesn't benefit from the connected mode for now."
                   Margin="5" TextWrapping="Wrap" />

        <StackPanel x:Name="VerbosityPanel" Grid.Row="5" Grid.ColumnSpan="2">

            <TextBlock Text="SonarLint output verbosity for the analysis of additional languages:"
                       Margin="5,25,5,5" TextWrapping="Wrap" />

            <ComboBox x:Name="DaemonVerbosity" SelectedIndex="2" HorizontalContentAlignment="Stretch" Margin="5" Padding="5,2.5"/>
        </StackPanel>

    </Grid>
</UserControl><commit_msg>Re-ordered the Options UI to put static elements first<commit_after>﻿<UserControl x:Class="SonarLint.VisualStudio.Integration.Vsix.GeneralOptionsDialogControl"
             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"
             d:DesignHeight="300"
             d:DesignWidth="450"
             mc:Ignorable="d">

    <Grid Margin="0,0,0,5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

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

        <Button Grid.Column="0" Grid.Row="0" Content="Open user settings"
                x:Name="OpenSettingsButton"
                Margin="5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="0"
                   Text="Open the per-user settings file."
                   VerticalAlignment="Center"
                   Margin="5"
                   TextWrapping="Wrap" />
        <TextBlock Grid.Column="1" Grid.Row="1"
                   VerticalAlignment="Center"
                   Margin="5,0,0,5" TextWrapping="Wrap" >
            <Run>The file will be created if it does not exist.</Run>
            <LineBreak />
            <Run>Note: currently only the C-Family analysis rules use the per-user settings file.</Run>
        </TextBlock>

        <Button Grid.Column="0" Grid.Row="2" Content="Activate more..." Click="OnActivateMoreClicked"
                x:Name="ActivateButton"
                Margin="5,25,5,5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="2"
                   x:Name="ActivateText"
                   Text="Install and activate support for JavaScript."
                   VerticalAlignment="Center"
                   Margin="5,25,5,5" TextWrapping="Wrap"/>

        <Button Grid.Column="0" Grid.Row="2" Content="Deactivate" Click="OnDeactivateClicked"
                x:Name="DeactivateButton" Visibility="Collapsed"
                Margin="5,25,5,5" Padding="5,2.5" />
        <TextBlock Grid.Column="1" Grid.Row="2"
                   x:Name="DeactivateText" Visibility="Collapsed"
                   Text="Deactivate JavaScript support."
                   VerticalAlignment="Center"
                   Margin="5,25,5,5" TextWrapping="Wrap"/>

        <TextBlock Grid.Column="1" Grid.Row="4"
                   Text="SonarLint can also analyze JavaScript files. After installing the support for this language, it will be activated for newly opened files. Note that it doesn't benefit from the connected mode for now."
                   Margin="5" TextWrapping="Wrap" />

        <StackPanel x:Name="VerbosityPanel" Grid.Row="6" Grid.ColumnSpan="2">

            <TextBlock Text="SonarLint output verbosity for the analysis of additional languages:"
                       Margin="5" TextWrapping="Wrap" />

            <ComboBox x:Name="DaemonVerbosity" SelectedIndex="2" HorizontalContentAlignment="Stretch" Margin="5" Padding="5,2.5"/>
        </StackPanel>

    </Grid>
</UserControl>
{'fraction_non_alphanumeric': 0.13007896625987078, 'fraction_numerical': 0.024120603015075376, 'mean_word_length': 2.140667267808837, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '4668914', 'n_tokens_mistral': 2041, 'n_tokens_neox': 1881, 'n_words': 367}