<commit_before>﻿using System;
using Codestellation.DarkFlow.Misc;

namespace Codestellation.DarkFlow.Execution
{
    public class Executor : Disposable, IExecutor
    {
        private readonly ITaskReleaser _releaser;
        private readonly ITaskRouter _router;

        public Executor(ITaskRouter router, TaskDispatcher dispatcher, ITaskReleaser releaser)
        {
            if (router == null)
            {
                throw new ArgumentNullException("router");
            }

            if (dispatcher == null)
            {
                throw new ArgumentNullException("dispatcher");
            }

            if (releaser == null)
            {
                throw new ArgumentNullException("releaser");
            }

            _router = router;
            _releaser = releaser;
        }

        public void Execute(ITask task)
        {
            EnsureNotDisposed();

            if (task == null)
            {
                throw new ArgumentNullException("task");
            }

            var envelope = new ExecutionEnvelope(task, _releaser);

            if (Logger.IsDebugEnabled)
            {
                Logger.Debug("Added {0}.");
            }
<commit_msg>Fixed missing parameter for logging<commit_after>﻿using System;
using Codestellation.DarkFlow.Misc;

namespace Codestellation.DarkFlow.Execution
{
    public class Executor : Disposable, IExecutor
    {
        private readonly ITaskReleaser _releaser;
        private readonly ITaskRouter _router;

        public Executor(ITaskRouter router, TaskDispatcher dispatcher, ITaskReleaser releaser)
        {
            if (router == null)
            {
                throw new ArgumentNullException("router");
            }

            if (dispatcher == null)
            {
                throw new ArgumentNullException("dispatcher");
            }

            if (releaser == null)
            {
                throw new ArgumentNullException("releaser");
            }

            _router = router;
            _releaser = releaser;
        }

        public void Execute(ITask task)
        {
            EnsureNotDisposed();

            if (task == null)
            {
                throw new ArgumentNullException("task");
            }

            var envelope = new ExecutionEnvelope(task, _releaser);

            if (Logger.IsDebugEnabled)
            {
                Logger.Debug("Added '{0}'.", task);
            }

{'fraction_non_alphanumeric': 0.07883986928104575, 'fraction_numerical': 0.0008169934640522876, 'mean_word_length': 1.5404564315352698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5912392', 'n_tokens_mistral': 626, 'n_tokens_neox': 580, 'n_words': 141}