<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Akka.Actor;
using Akka.Configuration;

namespace Akka.Remote
{
    public class RemoteDeployer : Deployer
    {
        public RemoteDeployer(Settings settings) : base(settings)
        {

        }

        protected override Scope ParseScope(Config config)
        {
            var remote = config.GetString("remote");
            if (remote == null)
                return Deploy.NoScopeGiven;

            ActorPath actorPath;
            if(ActorPath.TryParse(remote, out actorPath))
            {
                var address = actorPath.Address;
                return new RemoteScope(address);
            }

            throw new ConfigurationException(string.Format("unparseable remote node name [{0}]", "ARG0"));  
        }
    }
}<commit_msg>RemoteDepoy.ParseScope if remote configuration item is set to nothing (remote="") treat it as if it is missing (NoScopeGiven)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Akka.Actor;
using Akka.Configuration;

namespace Akka.Remote
{
    public class RemoteDeployer : Deployer
    {
        public RemoteDeployer(Settings settings) : base(settings)
        {

        }

        protected override Scope ParseScope(Config config)
        {
            var remote = config.GetString("remote");
			//valid case for remote to be missing == null or for 
			//remote to be nothing remote = ""
            if (string.IsNullOrWhiteSpace(remote))
                return Deploy.NoScopeGiven;

            ActorPath actorPath;
            if(ActorPath.TryParse(remote, out actorPath))
            {
                var address = actorPath.Address;
                return new RemoteScope(address);
            }

            throw new ConfigurationException(string.Format("unparseable remote node name [{0}]", "ARG0"));  
        }
    }
}
{'fraction_non_alphanumeric': 0.0874751491053678, 'fraction_numerical': 0.0019880715705765406, 'mean_word_length': 2.2838499184339316, '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': '6631592', 'n_tokens_mistral': 535, 'n_tokens_neox': 516, 'n_words': 143}