<commit_before>﻿// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Options.Providers;

namespace Microsoft.CodeAnalysis.Simplification
{
    [ExportOptionProvider, Shared]
    internal class SimplificationOptionsProvider : IOptionProvider
    {
        private readonly IEnumerable<IOption> _options = new List<IOption>
            {
                SimplificationOptions.PreferAliasToQualification,
                SimplificationOptions.PreferOmittingModuleNamesInQualification,
                SimplificationOptions.PreferImplicitTypeInference,
                SimplificationOptions.PreferImplicitTypeInLocalDeclaration,
                SimplificationOptions.AllowSimplificationToGenericType,
                SimplificationOptions.AllowSimplificationToBaseType
            }.ToImmutableArray();

        public IEnumerable<IOption> GetOptions()
        {
            return _options;
        }
    }
}<commit_msg>Add NamingPreferences to the SimplificationOptionProvider<commit_after>﻿// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Options.Providers;

namespace Microsoft.CodeAnalysis.Simplification
{
    [ExportOptionProvider, Shared]
    internal class SimplificationOptionsProvider : IOptionProvider
    {
        private readonly IEnumerable<IOption> _options = new List<IOption>
            {
                SimplificationOptions.PreferAliasToQualification,
                SimplificationOptions.PreferOmittingModuleNamesInQualification,
                SimplificationOptions.PreferImplicitTypeInference,
                SimplificationOptions.PreferImplicitTypeInLocalDeclaration,
                SimplificationOptions.AllowSimplificationToGenericType,
                SimplificationOptions.AllowSimplificationToBaseType,
                SimplificationOptions.NamingPreferences
            }.ToImmutableArray();

        public IEnumerable<IOption> GetOptions()
        {
            return _options;
        }
    }
}
{'fraction_non_alphanumeric': 0.05647438483259379, 'fraction_numerical': 0.0016135538523598225, 'mean_word_length': 3.253859348198971, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7061861', 'n_tokens_mistral': 603, 'n_tokens_neox': 582, 'n_words': 123}