<commit_before>using DryIoc;
using Prism.Common;
using Xamarin.Forms;

namespace Prism.DryIoc
{
    /// <summary>
    /// Extension methods to register a <see cref="Xamarin.Forms.Page"/> with <see cref="PageNavigationRegistry"/> using <see cref="IContainer"/>
    /// </summary>
    public static class DryIocExtensions
    {
        /// <summary>
        /// Registers a Page for navigation using a convention based approach, which uses the name of the Type being passed in as the unique name.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        public static void RegisterTypeForNavigation<TPage>(this IContainer container) where TPage : Page
        {
            container.RegisterTypeForNavigation<TPage>(typeof(TPage).FullName);
        }

        /// <summary>
        /// Registers a Page for navigation.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        /// <param name="name">The unique name to register with the Page</param>
        public static void RegisterTypeForNavigation<TPage>(this IContainer container, string name) where TPage : Page
        {
            container.RegisterMany<TPage>(serviceKey: name);
            PageNavigationRegistry.Register(name, typeof(TPage));
        }

        /// <summary>
        /// Registers a Page for navigation.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        /// <typeparam name="TClass">The Class to use as the unique name for the Page</typeparam>
        public static void RegisterTypeForNavigation<TPage, TClass>(this IContainer container) where TPage : Page
            where TClass : class
        {
            container.RegisterTypeForNavigation<TPage>(typeof(TClass).FullName);
        }
    }
}<commit_msg>Use Name instead of FullName of type when registering pages for navigation<commit_after>using DryIoc;
using Prism.Common;
using Xamarin.Forms;

namespace Prism.DryIoc
{
    /// <summary>
    /// Extension methods to register a <see cref="Xamarin.Forms.Page"/> with <see cref="PageNavigationRegistry"/> using <see cref="IContainer"/>
    /// </summary>
    public static class DryIocExtensions
    {
        /// <summary>
        /// Registers a Page for navigation using a convention based approach, which uses the name of the Type being passed in as the unique name.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        public static void RegisterTypeForNavigation<TPage>(this IContainer container) where TPage : Page
        {
            container.RegisterTypeForNavigation<TPage>(typeof(TPage).Name);
        }

        /// <summary>
        /// Registers a Page for navigation.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        /// <param name="name">The unique name to register with the Page</param>
        public static void RegisterTypeForNavigation<TPage>(this IContainer container, string name) where TPage : Page
        {
            container.RegisterMany<TPage>(serviceKey: name);
            PageNavigationRegistry.Register(name, typeof(TPage));
        }

        /// <summary>
        /// Registers a Page for navigation.
        /// </summary>
        /// <typeparam name="TPage">The Type of Page to register</typeparam>
        /// <typeparam name="TClass">The Class to use as the unique name for the Page</typeparam>
        public static void RegisterTypeForNavigation<TPage, TClass>(this IContainer container) where TPage : Page
            where TClass : class
        {
            container.RegisterTypeForNavigation<TPage>(typeof(TClass).Name);
        }
    }
}
{'fraction_non_alphanumeric': 0.10877099440149293, 'fraction_numerical': 0.0, 'mean_word_length': 2.526315789473684, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '3430295', 'n_tokens_mistral': 952, 'n_tokens_neox': 949, 'n_words': 307}