<commit_before>﻿using System.Collections.Generic;
using FluentAssertions;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.TextManager.Interop;
using Xunit;

namespace Lakewood.AutoScaleFormulaLanguageService.UnitTests
{
    public class AutoScaleFormulaLanguageService_Tests
    {
        private List<MatchedPairFoundEventArgs> _matchedPairs;

        public static IEnumerable<object[]> ParenMatchingTestCases => new[]
        {
            new object[]
            {
                "Single pair",
                "x = (y + z);",
                new MatchedPairFoundEventArgs[]
                {
                    new MatchedPairFoundEventArgs(
                        MakeTextSpan(1, 4, 1, 4) ,
                        MakeTextSpan(1, 10, 1, 10))
                }
            },

            new object[]
            {
                "Multiple pairs",<commit_msg>Set matched brace priority based on nesting<commit_after>﻿using System.Collections.Generic;
using FluentAssertions;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.TextManager.Interop;
using Xunit;

namespace Lakewood.AutoScaleFormulaLanguageService.UnitTests
{
    public class AutoScaleFormulaLanguageService_Tests
    {
        private List<MatchedPairFoundEventArgs> _matchedPairs;

        public static IEnumerable<object[]> ParenMatchingTestCases => new[]
        {
            new object[]
            {
                "Single pair",
                "x = (y + z);",
                new MatchedPairFoundEventArgs[]
                {
                    new MatchedPairFoundEventArgs(
                        MakeTextSpan(1, 4, 1, 4),
                        MakeTextSpan(1, 10, 1, 10))
                }
            },

            new object[]
            {
                "Multiple pairs",
{'fraction_non_alphanumeric': 0.07849640685461581, 'fraction_numerical': 0.01105583195135434, 'mean_word_length': 1.7591463414634145, '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': '7593437', 'n_tokens_mistral': 481, 'n_tokens_neox': 437, 'n_words': 97}