<commit_before>﻿namespace Nine.Storage
{
    using System.Diagnostics;
    using Xunit;

    public class AzureStoragePartitionKeyTest
    {
        [Theory]
        public void batch_storage_key_to_partition_key(string key, int partitionCount, int partitionKeyLength)
        {
            var partition = BatchedTableStorage<TestStorageObject>.GetPartitionKey(key, partitionCount, partitionKeyLength);
            Trace.WriteLine($"{ key } => { partition }");
        }
    }
}<commit_msg>Add a sample inline data to AzureStoragePartitionKeyTest<commit_after>﻿namespace Nine.Storage
{
    using System.Diagnostics;
    using Xunit;

    public class AzureStoragePartitionKeyTest
    {
        [Theory]
        [InlineData("abcdefg", 32, 4, 26)]
        public void batch_storage_key_to_partition_key(string key, int partitionCount, int partitionKeyLength, int expectedPartition)
        {
            var partition = BatchedTableStorage<TestStorageObject>.GetPartitionKey(key, partitionCount, partitionKeyLength);
            Trace.WriteLine($"{ key } => { partition }");
            Assert.Equal(expectedPartition, partition);
        }
    }
}
{'fraction_non_alphanumeric': 0.08631211857018309, 'fraction_numerical': 0.004359197907585004, 'mean_word_length': 3.251851851851852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1074170', 'n_tokens_mistral': 305, 'n_tokens_neox': 297, 'n_words': 66}