<commit_before>﻿using System.Collections.Generic;
using System.Linq;
using Remotus.Base;
using Remotus.Base.Scripting;

namespace Remotus.Plugins.Scripting
{
    public class MemoryScriptDataStore : IScriptDataStore
    {
        public MemoryScriptDataStore()
        {
            Scripts = new List<Script>();

            var testScript = new Script
            {
                ID = "3FE0E633-771F-4B75-BFB7-BE520EC11FF1",
                Name = "Test script",
                Version = "1.0.0.0",
                Tasks = new ScriptTaskBase[]
                {
                    new ExecuteFunctionScriptTask
                    {
                        PluginID = "ABA6417A-65A2-4761-9B01-AA9DFFC074C0",
                        FunctionID = "78324B37-0F93-40C2-AC56-5B1D714CFC41",
                        Arguments = new FunctionArguments
                        {
                            Parameters = new ParameterCollection
                            {
                                {
                                    "DeviceID",
                                    new Parameter<string>
                                    {
                                        Name = "DeviceID",
                                        Required = false,
                                        Type = typeof(string),
                                        Value = null,
                                    }
                                },
                            },
                        },
                    },
                },
            };
            Scripts.Add(testScript);
        }

        public List<Script> Scripts { get; set; }

        public IEnumerable<Script> GetScripts()
        {
            return Scripts?.AsEnumerable() ?? new Script[0];
        }
    }
}<commit_msg>Test script: Mute and Pause script<commit_after>﻿using System.Collections.Generic;
using System.Linq;
using Remotus.Base;
using Remotus.Base.Scripting;

namespace Remotus.Plugins.Scripting
{
    public class MemoryScriptDataStore : IScriptDataStore
    {
        public MemoryScriptDataStore()
        {
            Scripts = new List<Script>();

            var testScript = new Script
            {
                ID = "3FE0E633-771F-4B75-BFB7-BE520EC11FF1",
                Name = "Mute and Pause Spotify script",
                Version = "1.0.0.0",
                Tasks = new ScriptTaskBase[]
                {
                    new ExecuteFunctionScriptTask
                    {
                        PluginID = "ABA6417A-65A2-4761-9B01-AA9DFFC074C0",      // Sound
                        FunctionID = "78324B37-0F93-40C2-AC56-5B1D714CFC41",    // Toggle mute device
                        Arguments = new FunctionArguments
                        {
                            Parameters = new ParameterCollection
                            {
                                {
                                    "DeviceID",
                                    new Parameter<string>
                                    {
                                        Name = "DeviceID",
                                        Required = false,
                                        Type = typeof(string),
                                        Value = null,
                                    }
                                },
                            },
                        },
                    },

                    new ExecuteFunctionScriptTask
                    {
                        PluginID = "79A54741-590C-464D-B1E9-0CC606771493",      // Spotify
                        //FunctionID = "2E23C7FD-BABE-4E29-A30F-C20ACB35D572",  // Toggle playing
                        FunctionID = "B525CAD9-27E6-4709-B29B-96A32438C7D0",    // Pause
                        Arguments = null,
                    },
                },
            };
            Scripts.Add(testScript);
        }

        public List<Script> Scripts { get; set; }

        public IEnumerable<Script> GetScripts()
        {
            return Scripts?.AsEnumerable() ?? new Script[0];
        }
    }
}
{'fraction_non_alphanumeric': 0.0750968992248062, 'fraction_numerical': 0.04626937984496124, 'mean_word_length': 0.838379341050757, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3405346', 'n_tokens_mistral': 1093, 'n_tokens_neox': 945, 'n_words': 164}