<commit_before>﻿using System.Net.NetworkInformation;
using log4net;

namespace GNARLI
{
    public class UptimeLogger
    {
        private readonly ILog log;
        public bool logStatus { get; set; }

        public UptimeLogger(ILog log)
        {
            this.log = log;
            this.logStatus = true;
        }

        public void Log(PingReply pingReply)
        {
            if (logStatus)
            {
                if (pingReply.Status == IPStatus.Success)
                    log.Info($"{pingReply.Status.ToString()} : {pingReply.Address.MapToIPv4()} : {pingReply.RoundtripTime}");

                else
                    log.Info($"{pingReply.Status.ToString()} : {pingReply.Address.MapToIPv4()}");
            }
        }
    }
}<commit_msg>Removed ping address from failure log<commit_after>﻿using System.Net.NetworkInformation;
using log4net;

namespace GNARLI
{
    public class UptimeLogger
    {
        private readonly ILog log;
        public bool logStatus { get; set; }

        public UptimeLogger(ILog log)
        {
            this.log = log;
            this.logStatus = true;
        }

        public void Log(PingReply pingReply)
        {
            if (logStatus)
            {
                if (pingReply.Status == IPStatus.Success)
                    log.Info($"{pingReply.Status.ToString()} : {pingReply.Address.MapToIPv4()} : {pingReply.RoundtripTime}");

                else
                    log.Info($"{pingReply.Status.ToString()}");
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10667539267015706, 'fraction_numerical': 0.0032722513089005235, 'mean_word_length': 1.6637630662020906, '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': '5307292', 'n_tokens_mistral': 449, 'n_tokens_neox': 433, 'n_words': 84}