<commit_before>﻿using EntryPoint.ArgumentTypeParsers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace EntryPoint.Internals {
    [AttributeUsage(
        validOn: AttributeTargets.Field | AttributeTargets.Property, 
        AllowMultiple = true, 
        Inherited = true)]
    public class BaseArgumentAttribute : Attribute {
        internal BaseArgumentAttribute(IArgumentType argumentType) {
            ArgumentType = argumentType;
        }

        internal IArgumentType ArgumentType { get; private set; }

        public object DefaultValue { get; set; } = null;

        public char SingleDashChar { get; set; }
        internal int SingleDashIndex(string[] args) {
            if (SingleDashChar == char.MinValue) {
                return -1;
            }

            return args.SingleDashIndex(SingleDashChar);
        }

        public string DoubleDashName { get; set; }
        internal int DoubleDashIndex(string[] args) {
            if (DoubleDashName == string.Empty) {
                return -1;
            }

            return args.DoubleDashIndex(DoubleDashName);
        }
    }
}
<commit_msg>Only allow argument attributes on Properties<commit_after>﻿using EntryPoint.ArgumentTypeParsers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace EntryPoint.Internals {
    [AttributeUsage(
        validOn: AttributeTargets.Property, 
        AllowMultiple = true, 
        Inherited = true)]
    public class BaseArgumentAttribute : Attribute {
        internal BaseArgumentAttribute(IArgumentType argumentType) {
            ArgumentType = argumentType;
        }

        internal IArgumentType ArgumentType { get; private set; }

        public object DefaultValue { get; set; } = null;

        public char SingleDashChar { get; set; }
        internal int SingleDashIndex(string[] args) {
            if (SingleDashChar == char.MinValue) {
                return -1;
            }

            return args.SingleDashIndex(SingleDashChar);
        }

        public string DoubleDashName { get; set; }
        internal int DoubleDashIndex(string[] args) {
            if (DoubleDashName == string.Empty) {
                return -1;
            }

            return args.DoubleDashIndex(DoubleDashName);
        }
    }
}

{'fraction_non_alphanumeric': 0.07939189189189189, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 2.2857142857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7480741', 'n_tokens_mistral': 622, 'n_tokens_neox': 605, 'n_words': 150}