<commit_before>﻿using DotNetOpenAuth.OAuth2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CalDavSynchronizer.OAuth.Swisscom
{
    /// <summary>
    /// Interaction logic for Authorize.xaml
    /// </summary>
    public partial class Authorize : Window
    {
        public Authorize(UserAgentClient client)
        {
            InitializeComponent();
            clientAuthorizationView.Client = client;
        }
        public IAuthorizationState Authorization
        {
            get { return this.clientAuthorizationView.Authorization; }
        }

        private void clientAuthorizationView_Completed(object sender, ClientAuthorizationCompleteEventArgs e)
        {
            this.DialogResult = e.Authorization != null;
            this.Close();
        }
    }
}
<commit_msg>Suppress script errors in during swisscom oauth<commit_after>﻿using DotNetOpenAuth.OAuth2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CalDavSynchronizer.OAuth.Swisscom
{
    /// <summary>
    /// Interaction logic for Authorize.xaml
    /// </summary>
    public partial class Authorize : Window
    {
        public Authorize(UserAgentClient client)
        {
            InitializeComponent();

            var clientAuthorizationViewWebBrowserOrNull = clientAuthorizationView.Controls.OfType<System.Windows.Forms.WebBrowser>().FirstOrDefault();
            if (clientAuthorizationViewWebBrowserOrNull != null)
                clientAuthorizationViewWebBrowserOrNull.ScriptErrorsSuppressed = true;

            clientAuthorizationView.Client = client;
        }
        public IAuthorizationState Authorization
        {
            get { return this.clientAuthorizationView.Authorization; }
        }

        private void clientAuthorizationView_Completed(object sender, ClientAuthorizationCompleteEventArgs e)
        {
            this.DialogResult = e.Authorization != null;
            this.Close();
        }
    }
}

{'fraction_non_alphanumeric': 0.082842559874362, 'fraction_numerical': 0.0007852375343541421, 'mean_word_length': 3.0380348652931852, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1455510', 'n_tokens_mistral': 646, 'n_tokens_neox': 657, 'n_words': 140}