<commit_before>﻿using System;
using System.Linq;
using System.Collections.Generic;

namespace CIV.Processes
{
    public class RestrictedProcess : IProcess
    {
        public IProcess Inner { get; set; }
        public ISet<String> Restrictions { get; set; }

        public IEnumerable<Transition> Transitions()
        {
            return (from t in Inner.Transitions()
                    where
                    !(Restrictions.Contains(t.Label) |
                      Restrictions.Contains(t.Label.Coaction()))
                    select new Transition
                    {
                        Label = t.Label,
                        Process = new RestrictedProcess
                        {
                            Inner = t.Process,
                            Restrictions = Restrictions
                        }
                    });
        }
    }
}<commit_msg>RestrictedProcess: added tau shortcut<commit_after>﻿using System;
using System.Linq;
using System.Collections.Generic;

namespace CIV.Processes
{
    public class RestrictedProcess : IProcess
    {
        public IProcess Inner { get; set; }
        public ISet<String> Restrictions { get; set; }

        public IEnumerable<Transition> Transitions()
        {
            return (from t in Inner.Transitions()
                    where
                    t.Label == "tau" ||
                    !(Restrictions.Contains(t.Label) ||
                      Restrictions.Contains(t.Label.Coaction()))
                    select new Transition
                    {
                        Label = t.Label,
                        Process = new RestrictedProcess
                        {
                            Inner = t.Process,
                            Restrictions = Restrictions
                        }
                    });
        }
    }
}
{'fraction_non_alphanumeric': 0.07533875338753387, 'fraction_numerical': 0.0, 'mean_word_length': 1.1440185830429732, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5880119', 'n_tokens_mistral': 447, 'n_tokens_neox': 409, 'n_words': 95}