<commit_before>﻿using Castle.DynamicProxy;
using Concurrent;

namespace EasyActor.Proxy 
{
    internal class FiberDispatcherInterceptor<T> : IInterceptor
    {
        private readonly IFiber _Fiber;

        public FiberDispatcherInterceptor(IFiber fiber)
        {
            _Fiber = fiber;
        }

        public void Intercept(IInvocation invocation)
        {
            var proxyFiberSolver = FiberBehaviourCacherDispatcher<T>.GetTransformFunction(invocation);
            invocation.ReturnValue = proxyFiberSolver.Transform?.Invoke(_Fiber, invocation);
            if (proxyFiberSolver.Continue)
            {
                invocation.Proceed();
                return;
            }
        }
    }
}<commit_msg>Clean-up<commit_after>﻿using Castle.DynamicProxy;
using Concurrent;

namespace EasyActor.Proxy 
{
    internal class FiberDispatcherInterceptor<T> : IInterceptor
    {
        private readonly IFiber _Fiber;

        public FiberDispatcherInterceptor(IFiber fiber)
        {
            _Fiber = fiber;
        }

        public void Intercept(IInvocation invocation)
        {
            var proxyFiberSolver = FiberBehaviourCacherDispatcher<T>.GetTransformFunction(invocation);
            invocation.ReturnValue = proxyFiberSolver.Transform?.Invoke(_Fiber, invocation);
            if (proxyFiberSolver.Continue)
            {
                invocation.Proceed();
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.072778166550035, 'fraction_numerical': 0.0, 'mean_word_length': 2.2134831460674156, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7579989', 'n_tokens_mistral': 396, 'n_tokens_neox': 367, 'n_words': 65}