<commit_before>using System.Threading.Tasks;
using Akka.Actor;

namespace GridDomain.Node.Actors.CommandPipe.Processors
{
    public abstract class MessageActorProcessor : IMessageProcessor
    {
        protected MessageActorProcessor(IActorRef actorRef)
        {
            ActorRef = actorRef;
        }
        public IActorRef ActorRef { get; }

        public abstract Task Process(object message, Task workInProgress = null);
        protected Task<T> AskActor<T>(object message)
        {
            return ActorRef.Ask<T>(message);
        }
    }
}<commit_msg>refactoring processors<commit_after>using System.Threading.Tasks;
using Akka.Actor;

namespace GridDomain.Node.Actors.CommandPipe.Processors
{
    public abstract class MessageActorProcessor : IMessageProcessor
    {
        protected MessageActorProcessor(IActorRef actorRef)
        {
            _actorRef = actorRef;
        }

        private readonly IActorRef _actorRef;
        public IActorRef ActorRef => _actorRef;

        public abstract Task Process(object message, Task workInProgress = null);
        protected Task<T> AskActor<T>(object message)
        {
            return _actorRef.Ask<T>(message);
        }
    }
}
{'fraction_non_alphanumeric': 0.07526881720430108, 'fraction_numerical': 0.0, 'mean_word_length': 2.7116564417177913, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '2562402', 'n_tokens_mistral': 328, 'n_tokens_neox': 318, 'n_words': 73}