<commit_before>﻿using System.Xml.Serialization;

namespace DRC.Test
{
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    using DRC;
    using DRC.Defaults;
    using DRC.Interfaces;
    using NUnit.Framework;

    [TestFixture]
    public class RESTClientTest
    {
        [SetUp]
        public void Init()
        {
            WebRequest.RegisterPrefix ("test", new TestWebRequestCreate ());
        }

        [Test]
        public void InputAndOutputExtensionsMethodTest()
        {
            var isOutputDelegate = new Func<string, ClientRequest>(s => new ClientRequest { Body = Encoding.UTF8.GetBytes(s) });
            var isInputDelegate = new Func<WebResponse, string> (s => "test");
            var inputLikeAction = new Action<string, ClientRequest>((s, b) => b.ToString());
            Assert.IsTrue(isInputDelegate.IsInput ());<commit_msg>Minor cleanup<commit_after>﻿namespace DRC.Test
{
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    using System.Xml.Serialization;

    using DRC;
    using DRC.Defaults;
    using DRC.Interfaces;
    
    using NUnit.Framework;

    [TestFixture]
    public class RESTClientTest
    {
        [SetUp]
        public void Init()
        {
            WebRequest.RegisterPrefix ("test", new TestWebRequestCreate ());
        }

        [Test]
        public void InputAndOutputExtensionsMethodTest()
        {
            var isOutputDelegate = new Func<string, ClientRequest>(s => new ClientRequest { Body = Encoding.UTF8.GetBytes(s) });
            var isInputDelegate = new Func<WebResponse, string> (s => "test");
            var inputLikeAction = new Action<string, ClientRequest>((s, b) => b.ToString());
            Assert.IsTrue(isInputDelegate.IsInput ());
{'fraction_non_alphanumeric': 0.10584958217270195, 'fraction_numerical': 0.0011142061281337048, 'mean_word_length': 2.473887814313346, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '5300362', 'n_tokens_mistral': 516, 'n_tokens_neox': 508, 'n_words': 121}