<commit_before>﻿using System;
namespace CSF.Screenplay.Scenarios
{
  /// <summary>
  /// Builder service which assists in the creation of service registrations.
  /// </summary>
  public interface IServiceRegistryBuilder
  {
    /// <summary>
    /// Registers a service which will be used across all scenarios within a test run.
    /// </summary>
    /// <param name="instance">Instance.</param>
    /// <param name="name">Name.</param>
    /// <typeparam name="TService">The 1st type parameter.</typeparam>
    void RegisterSingleton<TService>(TService instance, string name = null) where TService : class;

    /// <summary>
    /// Registers a service which will be constructed afresh (using the given factory function) for
    /// each scenario within a test run.
    /// </summary>
    /// <param name="factory">Factory.</param>
    /// <param name="name">Name.</param>
    /// <typeparam name="TService">The 1st type parameter.</typeparam>
    void RegisterPerScenario<TService>(Func<IServiceResolver,TService> factory, string name = null) where TService : class;
  }
}<commit_msg>Fix mistake in registration (method not on interface)<commit_after>﻿using System;
namespace CSF.Screenplay.Scenarios
{
  /// <summary>
  /// Builder service which assists in the creation of service registrations.
  /// </summary>
  public interface IServiceRegistryBuilder
  {
    /// <summary>
    /// Registers a service which will be used across all scenarios within a test run.
    /// </summary>
    /// <param name="instance">Instance.</param>
    /// <param name="name">Name.</param>
    /// <typeparam name="TService">The 1st type parameter.</typeparam>
    void RegisterSingleton<TService>(TService instance, string name = null) where TService : class;

    /// <summary>
    /// Registers a service which will be used across all scenarios within a test run.
    /// </summary>
    /// <param name="initialiser">Initialiser.</param>
    /// <param name="name">Name.</param>
    /// <typeparam name="TService">The 1st type parameter.</typeparam>
    void RegisterSingleton<TService>(Func<TService> initialiser, string name = null) where TService : class;

    /// <summary>
    /// Registers a service which will be constructed afresh (using the given factory function) for
    /// each scenario within a test run.
    /// </summary>
    /// <param name="factory">Factory.</param>
    /// <param name="name">Name.</param>
    /// <typeparam name="TService">The 1st type parameter.</typeparam>
    void RegisterPerScenario<TService>(Func<IServiceResolver,TService> factory, string name = null) where TService : class;
  }
}
{'fraction_non_alphanumeric': 0.14012982054219167, 'fraction_numerical': 0.0019091256204658267, 'mean_word_length': 3.232633279483037, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '1556961', 'n_tokens_mistral': 712, 'n_tokens_neox': 697, 'n_words': 227}