<commit_before>using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using ErwinMayerLabs.RenameVSWindowTitle.Resolvers;
using Microsoft.VisualStudio.Shell;

//http://stackoverflow.com/questions/24291249/dialogpage-string-array-not-persisted
//http://www.codeproject.com/Articles/351172/CodeStash-a-journey-into-the-dark-side-of-Visual-S

namespace ErwinMayerLabs.RenameVSWindowTitle {
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [CLSCompliant(false), ComVisible(true)]
    public class GlobalSettingsPageGrid : DialogPage {
        [Category("General")]
        [DisplayName("Always rewrite titles")]
        [Description("Default: true. If true, will rewrite titles even if no conflict with other instances is detected. Conflicts may not be detected if patterns have been changed from the default.")]
        [DefaultValue(true)]
        public bool AlwaysRewriteTitles { get; set; } = true;

        [Category("General")]
        [DisplayName("Farthest parent folder depth")]
        [Description("Default: 1. Distance of the farthest parent folder to be shown. 1 will only show the folder of the opened projet/solution file, before the project/folder name")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultFarthestParentDepth)]
        public int FarthestParentDepth { get; set; } = 1;

        [Category("General")]
        [DisplayName("Closest parent folder depth")]
        [Description("Default: 1. Distance of the closest parent folder to be shown. 1 will only show the folder of the opened projet/solution file, before the project/folder name.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultClosestParentDepth)]
        public int ClosestParentDepth { get; set; } = 1;

        [Category("Patterns")]
        [DisplayName("No document or solution open")]
        [Description("Default: [ideName]. See 'Supported Tags' section on the left for more guidance.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultPatternIfNothingOpen)]
        [Editor(typeof(EditablePatternEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string PatternIfNothingOpen { get; set; } = CustomizeVSWindowTitle.DefaultPatternIfNothingOpen;

        [Category("Patterns")]
        [DisplayName("Document (no solution) open")]
        [Description("Default: [documentName] - [ideName]. See 'Supported tags' section on the left for more guidance.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultPatternIfDocumentButNoSolutionOpen)]
        [Editor(typeof(EditablePatternEditor), typeof(System.Drawing.Design.UITypeEditor))]
        [PreviewRequires(PreviewRequiresAttribute.Requirement.Document)]
        public string PatternIfDocumentButNoSolutionOpen { get; set; } = CustomizeVSWindowTitle.DefaultPatternIfDocumentButNoSolutionOpen;<commit_msg>Fix misspelling of "project" in descriptions.<commit_after>using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using ErwinMayerLabs.RenameVSWindowTitle.Resolvers;
using Microsoft.VisualStudio.Shell;

//http://stackoverflow.com/questions/24291249/dialogpage-string-array-not-persisted
//http://www.codeproject.com/Articles/351172/CodeStash-a-journey-into-the-dark-side-of-Visual-S

namespace ErwinMayerLabs.RenameVSWindowTitle {
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [CLSCompliant(false), ComVisible(true)]
    public class GlobalSettingsPageGrid : DialogPage {
        [Category("General")]
        [DisplayName("Always rewrite titles")]
        [Description("Default: true. If true, will rewrite titles even if no conflict with other instances is detected. Conflicts may not be detected if patterns have been changed from the default.")]
        [DefaultValue(true)]
        public bool AlwaysRewriteTitles { get; set; } = true;

        [Category("General")]
        [DisplayName("Farthest parent folder depth")]
        [Description("Default: 1. Distance of the farthest parent folder to be shown. 1 will only show the folder of the opened project/solution file, before the project/folder name")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultFarthestParentDepth)]
        public int FarthestParentDepth { get; set; } = 1;

        [Category("General")]
        [DisplayName("Closest parent folder depth")]
        [Description("Default: 1. Distance of the closest parent folder to be shown. 1 will only show the folder of the opened project/solution file, before the project/folder name.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultClosestParentDepth)]
        public int ClosestParentDepth { get; set; } = 1;

        [Category("Patterns")]
        [DisplayName("No document or solution open")]
        [Description("Default: [ideName]. See 'Supported Tags' section on the left for more guidance.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultPatternIfNothingOpen)]
        [Editor(typeof(EditablePatternEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string PatternIfNothingOpen { get; set; } = CustomizeVSWindowTitle.DefaultPatternIfNothingOpen;

        [Category("Patterns")]
        [DisplayName("Document (no solution) open")]
        [Description("Default: [documentName] - [ideName]. See 'Supported tags' section on the left for more guidance.")]
        [DefaultValue(CustomizeVSWindowTitle.DefaultPatternIfDocumentButNoSolutionOpen)]
        [Editor(typeof(EditablePatternEditor), typeof(System.Drawing.Design.UITypeEditor))]
        [PreviewRequires(PreviewRequiresAttribute.Requirement.Document)]
        public string PatternIfDocumentButNoSolutionOpen { get; set; } = CustomizeVSWindowTitle.DefaultPatternIfDocumentButNoSolutionOpen;
{'fraction_non_alphanumeric': 0.09816059426954368, 'fraction_numerical': 0.007074637424831978, 'mean_word_length': 4.3805899143672695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7142886', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1462, 'n_words': 388}