<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using Newtonsoft.Json;

namespace Rackspace.CloudOffice
{
    internal static class BodyEncoder
    {
        public static string Encode(object data, string contentType)
        {
            switch (contentType)<commit_msg>Support sending an empty body<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using Newtonsoft.Json;

namespace Rackspace.CloudOffice
{
    internal static class BodyEncoder
    {
        public static string Encode(object data, string contentType)
        {
            if (data == null)
                return string.Empty;

            switch (contentType)
{'fraction_non_alphanumeric': 0.07124681933842239, 'fraction_numerical': 0.0, 'mean_word_length': 3.2085561497326203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5508186', 'n_tokens_mistral': 206, 'n_tokens_neox': 202, 'n_words': 62}