<commit_before>﻿using System;

namespace Nohros.Metrics.Reporting
{
  /// <summary>
  /// A simple reporter which prints out application metrics to the
  /// <see cref="System.Console"/> periodically.
  /// </summary>
  public class ConsoleReporter : AbstractPollingReporter
  {
    #region .ctor
    public ConsoleReporter(IMetricsRegistry registry) : base(registry) {
    }
    #endregion

    public override void Run() {
      var registry = MetricsRegsitry;
      var now = DateTime.UtcNow;
      registry.Report((metrics, timestamp) => {
        foreach (MetricValue metric in metrics) {
          Console.Write(timestamp.ToString("0") + "-");
          Console.WriteLine(metric.Name + ":" + metric.Value.ToString());
        }
      }, now);
    }
  }
}<commit_msg>CHanged the output of the Console reporter<commit_after>﻿using System;

namespace Nohros.Metrics.Reporting
{
  /// <summary>
  /// A simple reporter which prints out application metrics to the
  /// <see cref="System.Console"/> periodically.
  /// </summary>
  public class ConsoleReporter : AbstractPollingReporter
  {
    #region .ctor
    public ConsoleReporter(IMetricsRegistry registry) : base(registry) {
    }
    #endregion

    public override void Run() {
      var registry = MetricsRegsitry;
      var now = DateTime.UtcNow;
      registry.Report((metrics, timestamp) => {
        MetricName name = metrics.Key;
        foreach (MetricValue metric in metrics.Value) {
          Console.Write(timestamp.ToString("yyyy-MM-ddTHH:mm:ssZ") + ":"
            + name + ".");
          Console.WriteLine(metric.Name + "=" + metric.Value.ToString());
        }
      }, now);
    }
  }
}
{'fraction_non_alphanumeric': 0.1269554753309266, 'fraction_numerical': 0.0006016847172081829, 'mean_word_length': 2.720357941834452, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 11, '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': '6439956', 'n_tokens_mistral': 476, 'n_tokens_neox': 466, 'n_words': 112}