<commit_before>﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace principia {
namespace parallel_test_runner {

class ParallelTestRunner {
  enum Granularity {
    Package,
    TestCase,
    Test,
  }

  private static T ParseEnum<T>(string value) {
    return (T)Enum.Parse(typeof(T), value, true);
  }

  const string vsinstr =
      @"C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\" +
      @"Team Tools\Performance Tools\x64\vsinstr.exe";

  static Task RunProcessAsync(string file_name, string args) {
    var task_completion_source = new TaskCompletionSource<bool>();
    var process = new Process{StartInfo = {FileName = file_name,
                                           Arguments = args,
                                           UseShellExecute = false,
                                           RedirectStandardError = false,
                                           RedirectStandardOutput = true},<commit_msg>Fix the coverage instrumenter.<commit_after>﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace principia {
namespace parallel_test_runner {

class ParallelTestRunner {
  enum Granularity {
    Package,
    TestCase,
    Test,
  }

  private static T ParseEnum<T>(string value) {
    return (T)Enum.Parse(typeof(T), value, true);
  }

  const string vsinstr =
      @"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\" +
      @"Team Tools\Performance Tools\x64\vsinstr.exe";

  static Task RunProcessAsync(string file_name, string args) {
    var task_completion_source = new TaskCompletionSource<bool>();
    var process = new Process{StartInfo = {FileName = file_name,
                                           Arguments = args,
                                           UseShellExecute = false,
                                           RedirectStandardError = false,
                                           RedirectStandardOutput = true},
{'fraction_non_alphanumeric': 0.08277999114652501, 'fraction_numerical': 0.005312084993359893, 'mean_word_length': 2.3580980683506687, 'pattern_counts': {'":': 0, '<': 7, '<?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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6097673', 'n_tokens_mistral': 571, 'n_tokens_neox': 547, 'n_words': 144}