<commit_before>﻿using Microsoft.VisualStudio.Shell;
using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Runtime.InteropServices;
using System.Windows.Forms.Design;

namespace MasterDevs.VsOpenIn.Options
{

    [ClassInterface(ClassInterfaceType.AutoDual)]
    [CLSCompliant(false), ComVisible(true)]
    public class OptionDialog : DialogPage
    {
        public const string DEFAULT_PATH = @"C:\Program Files (x86)\vim\vim74\gvim.exe";

        /// <summary>
        /// explanation of arguments http://vim.wikia.com/wiki/Integrate_gvim_with_Visual_Studio
        /// </summary>
        public const string DEFAULT_ARGUMENTS = "--servername VimStudio --remote-silent \"+call cursor({CurrentLine}, {CurrentCol})\" \"{FullName}\"";
        public const string ARGUMENTS_DESCRIPTION = @"Default:
    --servername VimStudio --remote-silent ""+call cursor({0}, {1})"" ""{2}""" + VARIABLES;
        public const string DIRECTORY_DESCRIPTION = @"The working directory for the external editor" + VARIABLES;
        public const string VARIABLES = @"

Variables
    {CurrentLine} is Current Line Number
    {CurrentCol} is Current Column Number
    {FullName} is Full File Path
    {DirectoryName} is File Directory
    {FileName} is File Name";

        [Category("VS Open In")]
        [DisplayName("Path to external editor")]
        [Description("The full path to the external editor")]
        [DefaultValue(DEFAULT_PATH)]
        [Editor(typeof(FileNameEditor), typeof(UITypeEditor))]

        public string OpenPath { get; set; }

        [Category("VS Open In")]
        [DisplayName("Arguments to pass to the external editor")]
        [Description(ARGUMENTS_DESCRIPTION)]
        public string Arguments { get; set; }

        [Category("VS Open In")]
        [DisplayName("Initial Directory")]
        [Description(DIRECTORY_DESCRIPTION)]
        [DefaultValue("{DirectoryName}")]
        public string InitialDirectory { get; set; }
    }

}
<commit_msg>Clean up options dialog and text a bit.<commit_after>﻿using Microsoft.VisualStudio.Shell;
using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Runtime.InteropServices;
using System.Windows.Forms.Design;

namespace MasterDevs.VsOpenIn.Options
{

    [ClassInterface(ClassInterfaceType.AutoDual)]
    [CLSCompliant(false), ComVisible(true)]
    public class OptionDialog : DialogPage
    {
        #region Constants
        public const string DEFAULT_PATH = @"C:\Program Files (x86)\vim\vim74\gvim.exe";
        /// <summary>
        /// explanation of arguments http://vim.wikia.com/wiki/Integrate_gvim_with_Visual_Studio
        /// </summary>
        public const string DEFAULT_ARGUMENTS = "--servername VimStudio --remote-silent \"+call cursor({CurrentLine}, {CurrentCol})\" \"{FullName}\"";
        public const string DEFAULT_DIRECTORY = "{DirectoryName}";

        public const string DESCRIPTION_ARGUMENTS = "Default:\n    "  + DEFAULT_ARGUMENTS + DESCRIPTION_VARIABLES;
        public const string DESCRIPTION_DIRECTORY = @"The working directory for the external editor" + DESCRIPTION_VARIABLES;
        public const string DESCRIPTION_VARIABLES = "\n\n" + @"Variables
    {CurrentLine} is Current Line Number
    {CurrentCol} is Current Column Number
    {FullName} is Full File Path
    {DirectoryName} is File Directory
    {FileName} is File Name";

        #endregion

        public OptionDialog()
        {
            EditorPath = DEFAULT_PATH;
            Arguments = DEFAULT_ARGUMENTS;
            InitialDirectory = DEFAULT_DIRECTORY;
        }

        [Category("VS Open In")]
        [DisplayName("Editor Path")]
        [Description("The full path to the external editor")]
        [DefaultValue(DEFAULT_PATH)]
        [Editor(typeof(FileNameEditor), typeof(UITypeEditor))]
        public string EditorPath { get; set; }

        [Category("VS Open In")]
        [DisplayName("Editor Arguments")]
        [DefaultValue(DEFAULT_ARGUMENTS)]
        [Description(DESCRIPTION_ARGUMENTS)]
        public string Arguments { get; set; }

        [Category("VS Open In")]
        [DisplayName("Initial Directory")]
        [Description(DESCRIPTION_DIRECTORY)]
        [DefaultValue(DEFAULT_DIRECTORY)]
        public string InitialDirectory { get; set; }
    }

}

{'fraction_non_alphanumeric': 0.1092007434944238, 'fraction_numerical': 0.0025557620817843866, 'mean_word_length': 3.212328767123288, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4727042', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1149, 'n_words': 308}