<commit_before>﻿using System;
using Metrics.Utils;

namespace Metrics.Tests.TestUtils
{
    public sealed class TestClock : Clock
    {
        private long nanoseconds = 0;
        public override long Nanoseconds { get { return this.nanoseconds; } }
        public void Advance(TimeUnit unit, long value)
        {
            this.nanoseconds += unit.ToNanoseconds(value);
            if (Advanced != null)
            {
                Advanced(this, EventArgs.Empty);
            }
        }

        public event EventHandler Advanced;
    }
}
<commit_msg>add method for local time<commit_after>﻿using System;
using Metrics.Utils;

namespace Metrics.Tests.TestUtils
{
    public sealed class TestClock : Clock
    {
        private long nanoseconds = 0;

        public override long Nanoseconds { get { return this.nanoseconds; } }

        public override DateTime LocalDateTime { get { return new DateTime(this.nanoseconds / 100L, DateTimeKind.Local); } }

        public void Advance(TimeUnit unit, long value)
        {
            this.nanoseconds += unit.ToNanoseconds(value);
            if (Advanced != null)
            {
                Advanced(this, EventArgs.Empty);
            }
        }

        public event EventHandler Advanced;
    }
}

{'fraction_non_alphanumeric': 0.0814873417721519, 'fraction_numerical': 0.003955696202531646, 'mean_word_length': 2.0853658536585367, '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': '2258946', 'n_tokens_mistral': 364, 'n_tokens_neox': 330, 'n_words': 92}