<commit_before>﻿using System.Collections.Generic;
using Markdown.MAML.Model.Markdown;
using System;

namespace Markdown.MAML.Model.MAML
{
    public class MamlParameter
    {
        public SourceExtent Extent { get; set; }

        public string Type { get; set; }

        public string Name { get; set; }

        public bool Required { get; set; }

        public string Description { get; set; }

        public string DefaultValue { get; set; }

        public bool VariableLength { get; set; }

        /// <summary>
        /// Corresponds to "Accept wildcard characters"
        /// </summary>
        public bool Globbing { get; set; }

        public string PipelineInput { get; set; }

        public string Position { get; set; }

        public string[] Aliases { get; set; }

        public bool ValueRequired { get; set; }

        public bool ValueVariableLength { get; set; }

        public string AttributesText { get; set; }

        public List<string> ParameterValueGroup
        {
            get { return _parameterValueGroup; }
        }

        private readonly List<string> _parameterValueGroup = new List<string>();
 

        public MamlParameter()
        {
            VariableLength = true;
            ValueVariableLength = false;
            Globbing = false;
            PipelineInput = "false";
            Position = "Named";
            Aliases = new string[] {};
        }

        public bool IsMetadataEqual(MamlParameter other)
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Name, other.Name) &&
                this.Required == other.Required &&
                StringComparer.OrdinalIgnoreCase.Equals(this.Position, other.Position) &&
                StringComparer.OrdinalIgnoreCase.Equals(this.PipelineInput, other.PipelineInput) &&
                this.Globbing == other.Globbing;
        }

        public bool IsSwitchParameter()
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Type, "SwitchParameter");
        }

        public bool IsNamed()
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Position, "Named");
        }
    }
}<commit_msg>Correct IsSwitchParameter() method<commit_after>﻿using System.Collections.Generic;
using Markdown.MAML.Model.Markdown;
using System;

namespace Markdown.MAML.Model.MAML
{
    public class MamlParameter
    {
        public SourceExtent Extent { get; set; }

        public string Type { get; set; }

        public string Name { get; set; }

        public bool Required { get; set; }

        public string Description { get; set; }

        public string DefaultValue { get; set; }

        public bool VariableLength { get; set; }

        /// <summary>
        /// Corresponds to "Accept wildcard characters"
        /// </summary>
        public bool Globbing { get; set; }

        public string PipelineInput { get; set; }

        public string Position { get; set; }

        public string[] Aliases { get; set; }

        public bool ValueRequired { get; set; }

        public bool ValueVariableLength { get; set; }

        public string AttributesText { get; set; }

        public List<string> ParameterValueGroup
        {
            get { return _parameterValueGroup; }
        }

        private readonly List<string> _parameterValueGroup = new List<string>();
 

        public MamlParameter()
        {
            VariableLength = true;
            ValueVariableLength = false;
            Globbing = false;
            PipelineInput = "false";
            Position = "Named";
            Aliases = new string[] {};
        }

        public bool IsMetadataEqual(MamlParameter other)
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Name, other.Name) &&
                this.Required == other.Required &&
                StringComparer.OrdinalIgnoreCase.Equals(this.Position, other.Position) &&
                StringComparer.OrdinalIgnoreCase.Equals(this.PipelineInput, other.PipelineInput) &&
                this.Globbing == other.Globbing;
        }

        public bool IsSwitchParameter()
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Type, "SwitchParameter") ||
                StringComparer.OrdinalIgnoreCase.Equals(this.Type, "switch");
        }

        public bool IsNamed()
        {
            return StringComparer.OrdinalIgnoreCase.Equals(this.Position, "Named");
        }
    }
}
{'fraction_non_alphanumeric': 0.09268841394825647, 'fraction_numerical': 0.0, 'mean_word_length': 2.018329938900204, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6879494', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1115, 'n_words': 288}