<commit_before>namespace MassTransit.ServiceBus.Tests.JsonPlay
{
    using Newtonsoft.Json;
    using NUnit.Framework;
    using NUnit.Framework.SyntaxHelpers;

    [TestFixture]
    public class As_a_Json_Serializer
    {
        [Test]
        public void NAME()
        {
            string json = JavaScriptConvert.SerializeObject(new Bob("Chris"));

            Bob clone = JavaScriptConvert.DeserializeObject<Bob>(json);
            Assert.That(clone.Friend, Is.EqualTo("Chris"));
        }
    }


    public class Bob : IMessage
    {
        private string _friend;

        //for JSON
        public Bob()
        {
        }

        public Bob(string friend)<commit_msg>lower level json stuff<commit_after>namespace MassTransit.ServiceBus.Tests.JsonPlay
{
    using System.Globalization;
    using System.IO;
    using Newtonsoft.Json;
    using NUnit.Framework;
    using NUnit.Framework.SyntaxHelpers;

    [TestFixture]
    public class As_a_Json_Serializer
    {
        [Test]
        public void NAME()
        {
            string json = JavaScriptConvert.SerializeObject(new Bob("Chris"));

            
            

            Bob clone = JavaScriptConvert.DeserializeObject<Bob>(json);
            Assert.That(clone.Friend, Is.EqualTo("Chris"));
        }

        [Test]
        public void More_Control()
        {
            object value = new Bob("dru");

            StringWriter sw = new StringWriter(CultureInfo.InvariantCulture);
            JsonSerializer jsonSerializer = new JsonSerializer();
            
            using (JsonWriter jsonWriter = new JsonWriter(sw))
            {
                jsonWriter.Formatting = Formatting.Indented;
                jsonSerializer.Serialize(jsonWriter, value);
            }

            string json = sw.ToString();
            int i = 0;
        }
    }


    public class Bob : IMessage
    {
        private string _friend;

        //for JSON
        public Bob()
        {
        }

        public Bob(string friend)
{'fraction_non_alphanumeric': 0.08587119321018473, 'fraction_numerical': 0.0004992511233150275, 'mean_word_length': 1.8225352112676056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4738762', 'n_tokens_mistral': 532, 'n_tokens_neox': 511, 'n_words': 115}