<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Meticulous.Threading;

namespace Meticulous.SandBox
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var q = ExecutionQueue.Create())
            {
                q.Post(() =>
                {
                    q.Stop();<commit_msg>add remote class to sandbox<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Meticulous.Threading;

namespace Meticulous.SandBox
{

    public sealed class Remote<T>
    {
        private T _value;

        public Remote(T value)
        {
            _value = value;
        }

        public static implicit operator Remote<T>(T value)
        {
            return new Remote<T>(value);
        }

        public static implicit operator T(Remote<T> value)
        {
            if (value == null)
                return default(T);

            return value.Value;
        }

        public event EventHandler<EventArgs> Changed;

        public T Value
        {
            get { return _value; }
        }
    }

    public class RemoteFieldAttribute : Attribute
    {
        public RemoteFieldAttribute(string name)
        {
        }
    }

    class Program
    {
        [RemoteField("ServerVersion")]
        private static readonly Remote<string> _serverVersion = default(string);



        static void Main(string[] args)
        {
            _serverVersion.Changed += delegate(object sender, EventArgs eventArgs)
            {
                
            };

            using (var q = ExecutionQueue.Create())
            {
                q.Post(() =>
                {
                    q.Stop();
{'fraction_non_alphanumeric': 0.08702791461412152, 'fraction_numerical': 0.0, 'mean_word_length': 1.6151645207439198, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6945759', 'n_tokens_mistral': 479, 'n_tokens_neox': 462, 'n_words': 118}