<commit_before>using System;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;

namespace Stratis.Bitcoin.MemoryPool
{
	public class MempoolModule : Module
	{
		public override void Configure(FullNode node, ServiceCollection serviceCollection)
		{
			// temporary types
			serviceCollection.AddSingleton(node.Chain);
			serviceCollection.AddSingleton(node.Args);
			serviceCollection.AddSingleton(node.ConnectionManager);
			serviceCollection.AddSingleton(node.CoinView);
			serviceCollection.AddSingleton(node.ConsensusLoop.Validator);
			serviceCollection.AddSingleton(node.DateTimeProvider);
			serviceCollection.AddSingleton(node.ChainBehaviorState);
			serviceCollection.AddSingleton(node.GlobalCancellation);

			serviceCollection.AddSingleton<MempoolScheduler>();
			serviceCollection.AddSingleton<TxMempool>();
			serviceCollection.AddSingleton<FeeRate>(MempoolValidator.MinRelayTxFee);
			serviceCollection.AddSingleton<MempoolValidator>();
			serviceCollection.AddSingleton<MempoolOrphans>();
			serviceCollection.AddSingleton<MempoolManager>();
			serviceCollection.AddSingleton<MempoolBehavior>();
			serviceCollection.AddSingleton<MempoolSignaled>();
		}

		public override void Start(FullNode node, IServiceProvider service)
		{
			node.ConnectionManager.Parameters.TemplateBehaviors.Add(service.GetService<MempoolBehavior>());
			node.Signals.Blocks.Subscribe(service.GetService<MempoolSignaled>());
			node.MempoolManager = service.GetService<MempoolManager>();
		}
	}
}<commit_msg>Add a todo<commit_after>using System;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;

namespace Stratis.Bitcoin.MemoryPool
{
	public class MempoolModule : Module
	{
		public override void Configure(FullNode node, ServiceCollection serviceCollection)
		{
			// TODO: some of this types are required and will move to a NodeBuilder implementations
			// temporary types
			serviceCollection.AddSingleton(node.Chain);
			serviceCollection.AddSingleton(node.Args);
			serviceCollection.AddSingleton(node.ConnectionManager);
			serviceCollection.AddSingleton(node.CoinView);
			serviceCollection.AddSingleton(node.ConsensusLoop.Validator);
			serviceCollection.AddSingleton(node.DateTimeProvider);
			serviceCollection.AddSingleton(node.ChainBehaviorState);
			serviceCollection.AddSingleton(node.GlobalCancellation);

			serviceCollection.AddSingleton<MempoolScheduler>();
			serviceCollection.AddSingleton<TxMempool>();
			serviceCollection.AddSingleton<FeeRate>(MempoolValidator.MinRelayTxFee);
			serviceCollection.AddSingleton<MempoolValidator>();
			serviceCollection.AddSingleton<MempoolOrphans>();
			serviceCollection.AddSingleton<MempoolManager>();
			serviceCollection.AddSingleton<MempoolBehavior>();
			serviceCollection.AddSingleton<MempoolSignaled>();
		}

		public override void Start(FullNode node, IServiceProvider service)
		{
			node.ConnectionManager.Parameters.TemplateBehaviors.Add(service.GetService<MempoolBehavior>());
			node.Signals.Blocks.Subscribe(service.GetService<MempoolSignaled>());
			node.MempoolManager = service.GetService<MempoolManager>();
		}
	}
}
{'fraction_non_alphanumeric': 0.09607969151670952, 'fraction_numerical': 0.0, 'mean_word_length': 7.170603674540683, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4643255', 'n_tokens_mistral': 965, 'n_tokens_neox': 836, 'n_words': 112}