<commit_before>﻿using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Certify.Locales;

namespace Certify.UI.Controls
{
    /// <summary>
    /// Interaction logic for AboutControl.xaml 
    /// </summary>
    public partial class AboutControl : UserControl
    {
        protected Certify.UI.ViewModel.AppViewModel MainViewModel => ViewModel.AppViewModel.Current;

        public AboutControl()
        {
            InitializeComponent();
        }

        private void PopulateAppInfo()
        {

            lblAppVersion.Text = ConfigResources.AppName + " " + Management.Util.GetAppVersion();

            if (MainViewModel.IsRegisteredVersion)
            {
                Register.IsEnabled = false;
                ValidateKey.IsEnabled = false;
                DeactivateInstall.IsEnabled = true;

                lblRegistrationType.Text = "Registered Version";
                lblRegistrationDetails.Text = "";
            }
            else
            {
                DeactivateInstall.IsEnabled = false;
                ValidateKey.IsEnabled = true;
                Register.IsEnabled = true;
                lblRegistrationType.Text = "Community Edition (No License)";
            }

            creditLibs.Text = "";

            // add details of current languages translator team
            if (!string.IsNullOrEmpty(SR.LanguageAuthor) && !creditLibs.Text.Contains(SR.About_LanguageTranslator))
            {
                creditLibs.Text = SR.About_LanguageTranslator + SR.LanguageAuthor + Environment.NewLine + Environment.NewLine;
            }

            if (System.IO.File.Exists("THIRD_PARTY_LICENSES.txt"))
            {
                creditLibs.Text += System.IO.File.ReadAllText("THIRD_PARTY_LICENSES.txt");
            }
        }
<commit_msg>Update text<commit_after>﻿using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Certify.Locales;

namespace Certify.UI.Controls
{
    /// <summary>
    /// Interaction logic for AboutControl.xaml 
    /// </summary>
    public partial class AboutControl : UserControl
    {
        protected Certify.UI.ViewModel.AppViewModel MainViewModel => ViewModel.AppViewModel.Current;

        public AboutControl()
        {
            InitializeComponent();
        }

        private void PopulateAppInfo()
        {

            lblAppVersion.Text = ConfigResources.AppName + " " + Management.Util.GetAppVersion();

            if (MainViewModel.IsRegisteredVersion)
            {
                Register.IsEnabled = false;
                ValidateKey.IsEnabled = false;
                DeactivateInstall.IsEnabled = true;

                lblRegistrationType.Text = "Registered Version";
                lblRegistrationDetails.Text = "";
            }
            else
            {
                DeactivateInstall.IsEnabled = false;
                ValidateKey.IsEnabled = true;
                Register.IsEnabled = true;
                lblRegistrationType.Text = "Community Edition (Not Licensed)";
            }

            creditLibs.Text = "";

            // add details of current languages translator team
            if (!string.IsNullOrEmpty(SR.LanguageAuthor) && !creditLibs.Text.Contains(SR.About_LanguageTranslator))
            {
                creditLibs.Text = SR.About_LanguageTranslator + SR.LanguageAuthor + Environment.NewLine + Environment.NewLine;
            }

            if (System.IO.File.Exists("THIRD_PARTY_LICENSES.txt"))
            {
                creditLibs.Text += System.IO.File.ReadAllText("THIRD_PARTY_LICENSES.txt");
            }
        }

{'fraction_non_alphanumeric': 0.09086021505376345, 'fraction_numerical': 0.0, 'mean_word_length': 1.89797507788162, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1448', 'n_tokens_mistral': 976, 'n_tokens_neox': 931, 'n_words': 165}