<commit_before>﻿using System;
using Microsoft.ApplicationInsights.Metrics;


namespace Microsoft.ApplicationInsights
{
    /// <summary>
    /// </summary>
    public static class MetricDimensionNames
    {
        /// <summary>
        /// </summary>
        public static class TelemetryContext
        {
            private const string TelemetryContextPrefix = "TelemetryContext.";
            private const string PropertyPrefix = TelemetryContextPrefix + "Property_";
            private const string PropertyPostfix = "_";

            /// <summary></summary>
            public const string InstrumentationKey = TelemetryContextPrefix + "InstrumentationKey";

            /// <summary>
            /// </summary>
            /// <param name="propertyName"></param>
            /// <returns></returns>
            public static string Property(string propertyName)
            {
                Util.ValidateNotNullOrWhitespace(propertyName, nameof(propertyName));
                string dimName = PropertyPrefix + propertyName + PropertyPostfix;
                return dimName;
            }

            /// <summary>
            /// </summary>
            /// <param name="dimensionName"></param>
            /// <param name="propertyName"></param>
            /// <returns></returns>
            public static bool IsProperty(string dimensionName, out string propertyName)<commit_msg>Metrics: Doc comments for MetricDimensionNames.<commit_after>﻿using System;
using Microsoft.ApplicationInsights.Metrics;

namespace Microsoft.ApplicationInsights
{
    /// <summary>
    /// Contains constants used to refer to metric dimensions with special significance.
    /// </summary>
    public static class MetricDimensionNames
    {
        /// <summary>
        /// Contains constants used to refer to metric dimensions that will be mapped to fields
        /// within the <see cref="Microsoft.ApplicationInsights.DataContracts.TelemetryContext"/> attached to Application
        /// Insights metric telemetry that represents <see cref="MetricAggregate" /> objects sent to the Application Insights
        /// cloud ingestion endpoint.
        /// </summary>
        public static class TelemetryContext
        {
            private const string TelemetryContextPrefix = "TelemetryContext.";
            private const string PropertyPrefix = TelemetryContextPrefix + "Property_";
            private const string PropertyPostfix = "_";

            /// <summary></summary>
            public const string InstrumentationKey = TelemetryContextPrefix + "InstrumentationKey";

            /// <summary>
            /// </summary>
            /// <param name="propertyName"></param>
            /// <returns></returns>
            public static string Property(string propertyName)
            {
                Util.ValidateNotNullOrWhitespace(propertyName, nameof(propertyName));
                string dimName = PropertyPrefix + propertyName + PropertyPostfix;
                return dimName;
            }

            /// <summary>
            /// </summary>
            /// <param name="dimensionName"></param>
            /// <param name="propertyName"></param>
            /// <returns></returns>
            public static bool IsProperty(string dimensionName, out string propertyName)
{'fraction_non_alphanumeric': 0.10200364298724955, 'fraction_numerical': 0.0, 'mean_word_length': 2.0823199251637043, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '6546208', 'n_tokens_mistral': 725, 'n_tokens_neox': 710, 'n_words': 199}