<commit_before>﻿using System;
using System.Diagnostics;
using Raven.Client.Embedded;

#region RavenDBSetup
// In process RavenServer
class RavenServer : IDisposable
{

    public RavenServer(Action<EmbeddableDocumentStore> initialization = null)
    {
        int port = 32076;
        DocumentStore = new EmbeddableDocumentStore
        {
            DataDirectory = "Data",
            UseEmbeddedHttpServer = true,
            DefaultDatabase = "NServiceBus",
            Configuration =
            {
                Port = port,
                PluginsDirectory = Environment.CurrentDirectory,
                HostName = "localhost"
            }
        };
        if (initialization != null)
        {
            initialization(DocumentStore);
        }
        DocumentStore.Initialize();
        //since we are hosting a fake raven server in process we need to remove it from the logging pipeline
        Trace.Listeners.Clear();
        Trace.Listeners.Add(new DefaultTraceListener());
        ManagementUrl = string.Format("http://localhost:{0}/", port);
        Console.WriteLine("Raven server started on {0}" + ManagementUrl);
    }

    public string ManagementUrl;

    public EmbeddableDocumentStore DocumentStore;

    public void Dispose()
    {
        if (DocumentStore != null)
        {
            DocumentStore.Dispose();
        }
    }
}
#endregion<commit_msg>fix sample<commit_after>﻿using System;
using System.Diagnostics;
using Raven.Client.Embedded;

// In process RavenServer
class RavenServer : IDisposable
{

    public RavenServer(Action<EmbeddableDocumentStore> initialization = null)
    {
        int port = 32076;
        DocumentStore = new EmbeddableDocumentStore
        {
            DataDirectory = "Data",
            UseEmbeddedHttpServer = true,
            DefaultDatabase = "NServiceBus",
            Configuration =
            {
                Port = port,
                PluginsDirectory = Environment.CurrentDirectory,
                HostName = "localhost"
            }
        };
        if (initialization != null)
        {
            initialization(DocumentStore);
        }
        DocumentStore.Initialize();
        //since we are hosting a fake raven server in process we need to remove it from the logging pipeline
        Trace.Listeners.Clear();
        Trace.Listeners.Add(new DefaultTraceListener());
        ManagementUrl = string.Format("http://localhost:{0}/", port);
        Console.WriteLine("Raven server started on {0}" + ManagementUrl);
    }

    public string ManagementUrl;

    public EmbeddableDocumentStore DocumentStore;

    public void Dispose()
    {
        if (DocumentStore != null)
        {
            DocumentStore.Dispose();
        }
    }
}
{'fraction_non_alphanumeric': 0.08543263964950712, 'fraction_numerical': 0.00511135450894487, 'mean_word_length': 2.089064261555806, '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': '4046903', 'n_tokens_mistral': 696, 'n_tokens_neox': 669, 'n_words': 171}