<commit_before>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Portable.Xaml;
using Portable.Xaml.ComponentModel;
using System;
using System.Collections.Generic;

namespace Serializer.Xaml
{
    internal class CoreXamlSchemaContext : XamlSchemaContext
    {
        public const string CoreNamespace = "https://github.com/Core2D";

        public const string EditorNamespace = "https://github.com/Core2D.Editor";

        public const string SpatialNamespace = "https://github.com/Math.Spatial";

        private readonly Dictionary<Type, XamlType> _typeCache = new Dictionary<Type, XamlType>();

        protected override ICustomAttributeProvider GetCustomAttributeProvider(Type type)
        {
            return new CoreAttributeProvider(type);
        }

        public override XamlType GetXamlType(Type type)
        {
            if (!_typeCache.TryGetValue(type, out XamlType xamlType))
            {
                xamlType = new CoreXamlType(type, this);
                _typeCache.Add(type, xamlType);
            }<commit_msg>Update CoreXamlSchemaContext.cs<commit_after>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Portable.Xaml;
using Portable.Xaml.ComponentModel;
using System;
using System.Collections.Generic;

namespace Serializer.Xaml
{
    internal class CoreXamlSchemaContext : XamlSchemaContext
    {
        private readonly Dictionary<Type, XamlType> _typeCache = new Dictionary<Type, XamlType>();

        protected override ICustomAttributeProvider GetCustomAttributeProvider(Type type)
        {
            return new CoreAttributeProvider(type);
        }

        public override XamlType GetXamlType(Type type)
        {
            if (!_typeCache.TryGetValue(type, out XamlType xamlType))
            {
                xamlType = new CoreXamlType(type, this);
                _typeCache.Add(type, xamlType);
            }
{'fraction_non_alphanumeric': 0.08003857280617165, 'fraction_numerical': 0.0009643201542912247, 'mean_word_length': 2.9150943396226414, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, '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': '3621560', 'n_tokens_mistral': 544, 'n_tokens_neox': 532, 'n_words': 154}