<commit_before>﻿//  ----------------------------------------------------------------------------------
//  Copyright Microsoft Corporation
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//  http://www.apache.org/licenses/LICENSE-2.0
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//  ----------------------------------------------------------------------------------

namespace DurableTask
{
    using System;
    using System.Globalization;
    using System.IO;
    using System.Text;
    using Newtonsoft.Json;

    // TODO : 
    //      1. Have to figure out the licensing issues with using Json.Net
    //      2. Must have a mechanism by which a user can simply pass in an XmlObjectSerializer based serializer rather than having to wrap
    //          it in a dataconverter
    public class JsonDataConverter : DataConverter
    {
        readonly JsonSerializer serializer;

        public JsonDataConverter()
            : this(new JsonSerializerSettings {TypeNameHandling = TypeNameHandling.Objects})
        {
        }<commit_msg>Remove stale todo comments<commit_after>﻿//  ----------------------------------------------------------------------------------
//  Copyright Microsoft Corporation
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//  http://www.apache.org/licenses/LICENSE-2.0
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//  ----------------------------------------------------------------------------------

namespace DurableTask
{
    using System;
    using System.Globalization;
    using System.IO;
    using System.Text;
    using Newtonsoft.Json;

    public class JsonDataConverter : DataConverter
    {
        readonly JsonSerializer serializer;

        public JsonDataConverter()
            : this(new JsonSerializerSettings {TypeNameHandling = TypeNameHandling.Objects})
        {
        }
{'fraction_non_alphanumeric': 0.1852409638554217, 'fraction_numerical': 0.0037650602409638554, 'mean_word_length': 1.856989247311828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3371714', 'n_tokens_mistral': 585, 'n_tokens_neox': 579, 'n_words': 255}