<commit_before>﻿using System;
using Xunit;
using Xunit.Sdk;

namespace Microsoft.Xunit.Performance
{
    [XunitTestCaseDiscoverer("Microsoft.Xunit.Performance.BenchmarkDiscoverer", "xunit.performance")]
    [TraitDiscoverer("Microsoft.Xunit.Performance.BenchmarkTraitDiscoverer", "xunit.performance")]
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class BenchmarkAttribute : FactAttribute, ITraitAttribute
    {
        /// <summary>
        /// The desired margin of error in the test results.  The default is 0.05, meaning that we want to measure the
        /// method's execution time to within +/-5%.  A smaller value allows detection of smaller changes in performance, but
        /// requires more test iterations, and thus more overall test execution time.  A larger value yields less accurate
        /// results, but in a shorter time.  
        /// </summary>
        public double MarginOfError { get; set; }
        internal const double DefaultMarginOfError = 0.10;

        /// <summary>
        /// The desired confidence in the test results.  The default is 0.95, meaning that we want to be 95% confident that
        /// the method's average execution time is within the range specified by <see cref="MarginOfError"/>.  Higher confidence
        /// values result in more test iterations, and thus more overall test execution time.
        /// </summary>
        public double Confidence { get; set; }
        internal const double DefaultConfidence = 0.95;

        /// <summary>
        /// If set, indicates whether the test allocates from the GC heap.  If true, test iterations will run until a GC occurs (and may
        /// continue to run due to other factors).  If null, the test framework will attempt to determine whether the test has been<commit_msg>Update comment<commit_after>﻿using System;
using Xunit;
using Xunit.Sdk;

namespace Microsoft.Xunit.Performance
{
    [XunitTestCaseDiscoverer("Microsoft.Xunit.Performance.BenchmarkDiscoverer", "xunit.performance")]
    [TraitDiscoverer("Microsoft.Xunit.Performance.BenchmarkTraitDiscoverer", "xunit.performance")]
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class BenchmarkAttribute : FactAttribute, ITraitAttribute
    {
        /// <summary>
        /// The desired margin of error in the test results.  The default is 0.10, meaning that we want to measure the
        /// method's execution time to within +/-10%.  A smaller value allows detection of smaller changes in performance, but
        /// requires more test iterations, and thus more overall test execution time.  A larger value yields less accurate
        /// results, but in a shorter time.  
        /// </summary>
        public double MarginOfError { get; set; }
        internal const double DefaultMarginOfError = 0.10;

        /// <summary>
        /// The desired confidence in the test results.  The default is 0.95, meaning that we want to be 95% confident that
        /// the method's average execution time is within the range specified by <see cref="MarginOfError"/>.  Higher confidence
        /// values result in more test iterations, and thus more overall test execution time.
        /// </summary>
        public double Confidence { get; set; }
        internal const double DefaultConfidence = 0.95;

        /// <summary>
        /// If set, indicates whether the test allocates from the GC heap.  If true, test iterations will run until a GC occurs (and may
        /// continue to run due to other factors).  If null, the test framework will attempt to determine whether the test has been
{'fraction_non_alphanumeric': 0.08269018743109151, 'fraction_numerical': 0.008544652701212789, 'mean_word_length': 2.868869936034115, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4726132', 'n_tokens_mistral': 927, 'n_tokens_neox': 877, 'n_words': 394}