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

using Orleans;

namespace Orleankka.CSharp
{
    using Services;
    using Utility;

    public abstract class Actor
    {
        ActorRef self;

        protected Actor()
        {}

        protected Actor(string id, IActorRuntime runtime)
        {
            Requires.NotNull(runtime, nameof(runtime));
            Requires.NotNullOrWhitespace(id, nameof(id));

            Runtime = runtime;
            Dispatcher = ActorBinding.Dispatcher(GetType());
            Path = GetType().ToActorPath(id);
        }

        protected Actor(string id, IActorRuntime runtime, Dispatcher dispatcher)
        {
            Requires.NotNull(runtime, nameof(runtime));
            Requires.NotNull(dispatcher, nameof(dispatcher));

            Runtime = runtime;
            Dispatcher = dispatcher;
            Path = GetType().ToActorPath(id);
        }
		
        internal void Initialize(ActorPath path, IActorRuntime runtime, Dispatcher dispatcher)
        {
            Path = path;
            Runtime = runtime;
            Dispatcher = dispatcher;
        }

        public string Id => Path.Id;

        public ActorPath Path           {get; private set;}
        public IActorRuntime Runtime    {get; private set;}
        public Dispatcher Dispatcher    {get; private set;}<commit_msg>Single ctor<commit_after>using System;
using System.Threading.Tasks;

using Orleans;

namespace Orleankka.CSharp
{
    using Services;
    using Utility;

    public abstract class Actor
    {
        ActorRef self;

        protected Actor()
        {}

        protected Actor(string id, IActorRuntime runtime, Dispatcher dispatcher = null)
        {
            Requires.NotNull(runtime, nameof(runtime));
            Requires.NotNullOrWhitespace(id, nameof(id));

            Runtime = runtime;
            Dispatcher = dispatcher ?? ActorBinding.Dispatcher(GetType());
            Path = GetType().ToActorPath(id);
        }

        internal void Initialize(ActorPath path, IActorRuntime runtime, Dispatcher dispatcher)
        {
            Path = path;
            Runtime = runtime;
            Dispatcher = Dispatcher ?? dispatcher;
        }

        public string Id => Path.Id;

        public ActorPath Path           {get; private set;}
        public IActorRuntime Runtime    {get; private set;}
        public Dispatcher Dispatcher    {get; private set;}
{'fraction_non_alphanumeric': 0.0821295914156005, 'fraction_numerical': 0.0, 'mean_word_length': 2.0722433460076046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1056632', 'n_tokens_mistral': 646, 'n_tokens_neox': 592, 'n_words': 164}