<commit_before>﻿using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Windows.Input;
using Microsoft.Practices.Composite.Presentation.Commands;
using SandRibbon.Providers;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Xml.Linq;
using System.ComponentModel;
using System.Windows.Threading;
using System.Threading;

namespace SandRibbon
{
    public static class CompositeCommandExtensions
    {
        public static object lastValue(this CompositeCommand command)
        {
            if (CommandParameterProvider.parameters.ContainsKey(command))
                return CommandParameterProvider.parameters[command];
            throw new NotSetException(Commands.which(command));
        }
    }
    public class NotSetException : Exception {
        public NotSetException(string command):base(command)
        {
            
        }
    }
    public class Commands
    {
        public static CompositeCommand ListenToAudio = new CompositeCommand();
        public static CompositeCommand ReorderDragDone = new CompositeCommand();

        public static CompositeCommand ViewSubmissions = new CompositeCommand();
        public static CompositeCommand Reconnecting = new CompositeCommand();<commit_msg>updating notsetexception on lastvalue to be more meaningful<commit_after>﻿using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Windows.Input;
using Microsoft.Practices.Composite.Presentation.Commands;
using SandRibbon.Providers;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Xml.Linq;
using System.ComponentModel;
using System.Windows.Threading;
using System.Threading;

namespace SandRibbon
{
    public static class CompositeCommandExtensions
    {
        public static object lastValue(this CompositeCommand command)
        {
            if (CommandParameterProvider.parameters.ContainsKey(command))
                return CommandParameterProvider.parameters[command];
            throw new NotSetException(string.Format("Could not get the lastValue of command {0}", Commands.which(command)));
        }
    }
    public class NotSetException : Exception {
        public NotSetException(string command):base(command)
        {
            
        }
    }
    public class Commands
    {
        public static CompositeCommand ListenToAudio = new CompositeCommand();
        public static CompositeCommand ReorderDragDone = new CompositeCommand();

        public static CompositeCommand ViewSubmissions = new CompositeCommand();
        public static CompositeCommand Reconnecting = new CompositeCommand();
{'fraction_non_alphanumeric': 0.06784771956275915, 'fraction_numerical': 0.0003769317753486619, 'mean_word_length': 3.6156521739130434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5155335', 'n_tokens_mistral': 632, 'n_tokens_neox': 640, 'n_words': 172}