<commit_before>﻿using System;
using RedGate.SIPFrameworkShared;
using TSqlFlex.Core;

namespace TSqlFlex
{
    public class Extension : ISsmsAddin4
    {
        private ObjectExplorerNodeDescriptorBase currentNode;
        private ISsmsFunctionalityProvider6 ssmsProvider;
        private RunCommand runCommand;

        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            ssmsProvider = provider as ISsmsFunctionalityProvider6;
            if (ssmsProvider == null)
            {
                throw new ArgumentException("Could not initialize SIP provider for TSqlFlex extension.");
            }
            runCommand = new RunCommand(ssmsProvider);
            runCommand.SetSelectedDBNode(currentNode);

            ssmsProvider.AddToolbarItem(runCommand);
        }
        
        public void OnNodeChanged(ObjectExplorerNodeDescriptorBase node)
        {
            currentNode = node;
            if (runCommand != null)
            {
                runCommand.SetSelectedDBNode(currentNode);
            }
        }

        public void OnShutdown()
        {
        }

        public string Author { get { return "<NAME>"; } }
        public string Description { get { return "Scripts data to INSERT statements or Excel-compatible spreadsheets."; } }
        public string Name { get { return "T-SQL Flex"; } }
        public string Url { get { return @"https://twitter.com/nycdotnet"; } }
        public string Version { get { return Info.VersionNumbersOnly(); } }
    }
}<commit_msg>updated to use more useful URL in the metadata.<commit_after>﻿using System;
using RedGate.SIPFrameworkShared;
using TSqlFlex.Core;

namespace TSqlFlex
{
    public class Extension : ISsmsAddin4
    {
        private ObjectExplorerNodeDescriptorBase currentNode;
        private ISsmsFunctionalityProvider6 ssmsProvider;
        private RunCommand runCommand;

        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            ssmsProvider = provider as ISsmsFunctionalityProvider6;
            if (ssmsProvider == null)
            {
                throw new ArgumentException("Could not initialize SIP provider for TSqlFlex extension.");
            }
            runCommand = new RunCommand(ssmsProvider);
            runCommand.SetSelectedDBNode(currentNode);

            ssmsProvider.AddToolbarItem(runCommand);
        }
        
        public void OnNodeChanged(ObjectExplorerNodeDescriptorBase node)
        {
            currentNode = node;
            if (runCommand != null)
            {
                runCommand.SetSelectedDBNode(currentNode);
            }
        }

        public void OnShutdown()
        {
        }

        public string Author { get { return "<NAME>"; } }
        public string Description { get { return "Scripts data to INSERT statements or Excel-compatible spreadsheets."; } }
        public string Name { get { return "T-SQL Flex"; } }
        public string Url { get { return @"https://github.com/nycdotnet/TSqlFlex/"; } }
        public string Version { get { return Info.VersionNumbersOnly(); } }
    }
}
{'fraction_non_alphanumeric': 0.07406219942289195, 'fraction_numerical': 0.0019236934915036871, 'mean_word_length': 2.229813664596273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3364306', 'n_tokens_mistral': 799, 'n_tokens_neox': 762, 'n_words': 204}