<commit_before>﻿using Simulator.Engine;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Simulator
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  public partial class MainWindow : Window
  {
    private Analyzer analyzer;
    private Stopwatch stopwatch;
    private BackgroundWorker worker;
    private AppState appState;
    private State currentState;
    private RadioButton selectedRadio;

    private State initialState = null;

    private List<CheckBox> abilityChecks = null;

    private class RadioParams
    {
      public RadioParams(bool success, Engine.Condition condition)
      {
        this.success = success;
        this.condition = condition;
      }
      public bool success;
      public Engine.Condition condition;
    }

    private enum AppState
    {
      Uninitialized,
      Idle,
      Analyzing,
      Playback
    }

    public MainWindow()
    {
      analyzer = new Analyzer();
      analyzer.LogFile = "D:\\master_log2.txt";
      stopwatch = new Stopwatch();
      worker = new BackgroundWorker();
      appState = AppState.Uninitialized;
      currentState = null;
      abilityChecks = new List<CheckBox>();

      worker.DoWork += worker_StartAnalysis;
      worker.RunWorkerCompleted += worker_AnalysisComplete;

      InitializeComponent();
    }

    private void Window_Initialized(object sender, EventArgs e)
    {
      radioSuccessExcellent.Tag = new RadioParams(true, Engine.Condition.Excellent);
      radioSuccessGood.Tag = new RadioParams(true, Engine.Condition.Good);
      radioSuccessNormal.Tag = new RadioParams(true, Engine.Condition.Normal);
      radioSuccessPoor.Tag = new RadioParams(true, Engine.Condition.Poor);
      radioFailureExcellent.Tag = new RadioParams(false, Engine.Condition.Excellent);
      radioFailureGood.Tag = new RadioParams(false, Engine.Condition.Good);
      radioFailureNormal.Tag = new RadioParams(false, Engine.Condition.Normal);
      radioFailurePoor.Tag = new RadioParams(false, Engine.Condition.Poor);
<commit_msg>Remove logging by default.<commit_after>﻿using Simulator.Engine;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Simulator
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  public partial class MainWindow : Window
  {
    private Analyzer analyzer;
    private Stopwatch stopwatch;
    private BackgroundWorker worker;
    private AppState appState;
    private State currentState;
    private RadioButton selectedRadio;

    private State initialState = null;

    private List<CheckBox> abilityChecks = null;

    private class RadioParams
    {
      public RadioParams(bool success, Engine.Condition condition)
      {
        this.success = success;
        this.condition = condition;
      }
      public bool success;
      public Engine.Condition condition;
    }

    private enum AppState
    {
      Uninitialized,
      Idle,
      Analyzing,
      Playback
    }

    public MainWindow()
    {
      analyzer = new Analyzer();
      stopwatch = new Stopwatch();
      worker = new BackgroundWorker();
      appState = AppState.Uninitialized;
      currentState = null;
      abilityChecks = new List<CheckBox>();

      worker.DoWork += worker_StartAnalysis;
      worker.RunWorkerCompleted += worker_AnalysisComplete;

      InitializeComponent();
    }

    private void Window_Initialized(object sender, EventArgs e)
    {
      radioSuccessExcellent.Tag = new RadioParams(true, Engine.Condition.Excellent);
      radioSuccessGood.Tag = new RadioParams(true, Engine.Condition.Good);
      radioSuccessNormal.Tag = new RadioParams(true, Engine.Condition.Normal);
      radioSuccessPoor.Tag = new RadioParams(true, Engine.Condition.Poor);
      radioFailureExcellent.Tag = new RadioParams(false, Engine.Condition.Excellent);
      radioFailureGood.Tag = new RadioParams(false, Engine.Condition.Good);
      radioFailureNormal.Tag = new RadioParams(false, Engine.Condition.Normal);
      radioFailurePoor.Tag = new RadioParams(false, Engine.Condition.Poor);

{'fraction_non_alphanumeric': 0.08717207188597398, 'fraction_numerical': 0.0002065688907250568, 'mean_word_length': 3.49165120593692, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6617618', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1264, 'n_words': 323}