<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using EnvDTE;
using SSDTDevPack.Merge.UI;

namespace SSDTDevPack.QueryCosts
{
    public class ScriptCoster
    {
        private static string ConnectionString;
        private QueryCostStore Store;
        private DTE Dte;

        
        public ScriptCoster(DTE dte)
        {
            if (String.IsNullOrEmpty(ConnectionString))
            {
                var dialog = new ConnectDialog();
                dialog.ShowDialog();
                ConnectionString = dialog.ConnectionString;<commit_msg>if the connectioin dialog is cancelled cancel process, don't try to connect to an empty connection string<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using EnvDTE;
using SSDTDevPack.Merge.UI;

namespace SSDTDevPack.QueryCosts
{
    public class ScriptCoster
    {
        private static string ConnectionString;
        private QueryCostStore Store;
        private DTE Dte;

        
        public ScriptCoster(DTE dte)
        {
            if (String.IsNullOrEmpty(ConnectionString))
            {
                var dialog = new ConnectDialog();
                dialog.ShowDialog();
                ConnectionString = dialog.ConnectionString;

                if (String.IsNullOrEmpty(ConnectionString))
                    return;
{'fraction_non_alphanumeric': 0.06752608962553713, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 2.606194690265487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6877139', 'n_tokens_mistral': 426, 'n_tokens_neox': 411, 'n_words': 108}