<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Data;
using System.Windows.Input;
using MoneyEntry.Model;
using MoneyEntry.Properties;
using System.Configuration;
using MoneyEntry.DataAccess;
using Microsoft.Win32;
using System.Data;

namespace MoneyEntry.ViewModel
{
  public class MainWindowViewModel : WorkspaceViewModel
  {
    ReadOnlyCollection<CommandViewModel> _commands;
    RelayCommand _Exit;
    RelayCommand _OpenLoc;
    RelayCommand _BackUp;
    RelayCommand _Restore;
    ObservableCollection<Person> _people;
    private Person _currentUser;
    ObservableCollection<WorkspaceViewModel> _workspaces;
    OpenFileDialog _openFileDialog = new OpenFileDialog();

    private string _BackupLocation { get; set; }
    private string _InitialBackupLocation { get; set; }

    public MainWindowViewModel()
    {
      base.DisplayName = Strings.MainWindowViewModel_DisplayName;
      People = new ObservableCollection<Person>(Repository.GetPeople());

      _currentUser = _people.FirstOrDefault(x => x.FirstName == "Test");

      _BackupLocation = ConfigurationManager.AppSettings["DatabaseBackupsLocation"]; // Start the initial backup

      if (!Directory.Exists(_BackupLocation)) { Directory.CreateDirectory(_BackupLocation); }

      DateTime dt = DateTime.Now;
      _InitialBackupLocation = _BackupLocation + "\\ExpensesStart_" + dt.Year + "-" + dt.Month + "-" + dt.Day + ".bak";
<commit_msg>Made changes to main entry point<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Data;
using System.Windows.Input;
using MoneyEntry.Model;
using MoneyEntry.Properties;
using System.Configuration;
using MoneyEntry.DataAccess;
using Microsoft.Win32;
using System.Data;

namespace MoneyEntry.ViewModel
{
  public class MainWindowViewModel : WorkspaceViewModel
  {
    ReadOnlyCollection<CommandViewModel> _commands;
    RelayCommand _Exit;
    RelayCommand _OpenLoc;
    RelayCommand _BackUp;
    RelayCommand _Restore;
    ObservableCollection<Person> _people;
    private Person _currentUser;
    ObservableCollection<WorkspaceViewModel> _workspaces;
    OpenFileDialog _openFileDialog = new OpenFileDialog();

    private string _BackupLocation { get; set; }
    private string _InitialBackupLocation { get; set; }

    public MainWindowViewModel()
    {
      base.DisplayName = Strings.MainWindowViewModel_DisplayName;
      People = new ObservableCollection<Person>(Repository.GetPeople());

      _currentUser = _people.FirstOrDefault(x => x.FirstName == "Shared");

      _BackupLocation = ConfigurationManager.AppSettings["DatabaseBackupsLocation"]; // Start the initial backup

      if (!Directory.Exists(_BackupLocation)) { Directory.CreateDirectory(_BackupLocation); }

      DateTime dt = DateTime.Now;
      _InitialBackupLocation = _BackupLocation + "\\ExpensesStart_" + dt.Year + "-" + dt.Month + "-" + dt.Day + ".bak";

{'fraction_non_alphanumeric': 0.09044006069802732, 'fraction_numerical': 0.0012139605462822458, 'mean_word_length': 4.906810035842294, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1777756', 'n_tokens_mistral': 891, 'n_tokens_neox': 879, 'n_words': 207}