<commit_before>﻿namespace GitTools.Testing
{
    using System;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Text;
    using LibGit2Sharp;

    public static class GitTestExtensions
    {
        private static int pad = 1;

        public static void DumpGraph(this IRepository repository)
        {
            var output = new StringBuilder();

            ProcessHelper.Run(
                o => output.AppendLine(o),
                e => output.AppendLineFormat("ERROR: {0}", e),
                null,
                "git",
                @"log --graph --abbrev-commit --decorate --date=relative --all",
                repository.Info.Path);

            Trace.Write(output.ToString());
        }

        public static Commit MakeACommit(this IRepository repository)
        {
            return CreateFileAndCommit(repository, Guid.NewGuid().ToString());<commit_msg>Output GitTestExtensions to Log instead of Trace<commit_after>﻿namespace GitTools.Testing
{
    using System;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Text;
    using LibGit2Sharp;
    using Logging;

    public static class GitTestExtensions
    {
        private static readonly ILog Log = LogProvider.GetCurrentClassLogger();

        private static int pad = 1;

        public static void DumpGraph(this IRepository repository)
        {
            var output = new StringBuilder();

            ProcessHelper.Run(
                o => output.AppendLine(o),
                e => output.AppendLineFormat("ERROR: {0}", e),
                null,
                "git",
                @"log --graph --abbrev-commit --decorate --date=relative --all",
                repository.Info.Path);

            Log.Info(output.ToString);
        }

        public static Commit MakeACommit(this IRepository repository)
        {
            return CreateFileAndCommit(repository, Guid.NewGuid().ToString());
{'fraction_non_alphanumeric': 0.09432048681541583, 'fraction_numerical': 0.0030425963488843813, 'mean_word_length': 1.9360119047619047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2366412', 'n_tokens_mistral': 511, 'n_tokens_neox': 483, 'n_words': 131}