<commit_before>﻿using System;
using Light.DependencyInjection.Lifetimes;
using Light.DependencyInjection.Registrations;

namespace Light.DependencyInjection
{
    public static class DiContainerExtensions
    {
        public static DiContainer RegisterTransient<TConcrete>(this DiContainer container, Action<IRegistrationOptions<TConcrete>> configureRegistration = null)
        {
            return new RegistrationOptions<TConcrete>(container.Services.DefaultInstantiationInfoSelector).PerformRegistration(container, TransientLifetime.Instance, configureRegistration);
        }

        public static DiContainer RegisterSingleton<TConcrete>(this DiContainer container, Action<IRegistrationOptions<TConcrete>> configureRegistration = null)
        {
            return new RegistrationOptions<TConcrete>(container.Services.DefaultInstantiationInfoSelector).PerformRegistration(container, new SingletonLifetime(), configureRegistration);
        }<commit_msg>renamed generics for RegisterTransient and RegisterSingleton<commit_after>﻿using System;
using Light.DependencyInjection.Lifetimes;
using Light.DependencyInjection.Registrations;

namespace Light.DependencyInjection
{
    public static class DiContainerExtensions
    {
        public static DiContainer RegisterTransient<T>(this DiContainer container, Action<IRegistrationOptions<T>> configureRegistration = null)
        {
            return new RegistrationOptions<T>(container.Services.DefaultInstantiationInfoSelector).PerformRegistration(container, TransientLifetime.Instance, configureRegistration);
        }

        public static DiContainer RegisterSingleton<T>(this DiContainer container, Action<IRegistrationOptions<T>> configureRegistration = null)
        {
            return new RegistrationOptions<T>(container.Services.DefaultInstantiationInfoSelector).PerformRegistration(container, new SingletonLifetime(), configureRegistration);
        }
{'fraction_non_alphanumeric': 0.06760270410816432, 'fraction_numerical': 0.0, 'mean_word_length': 5.63448275862069, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6267930', 'n_tokens_mistral': 430, 'n_tokens_neox': 424, 'n_words': 87}