<commit_before>using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using Core.Models;
using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;

namespace Core.Controllers
{
    public abstract class StoreController : ApiController
    {
        public IDocumentStore Store
        {
            get { return LazyDocStore.Value; }
        }

        private static readonly Lazy<IDocumentStore> LazyDocStore = new Lazy<IDocumentStore>(() =>
        {
            var store = new EmbeddableDocumentStore { DataDirectory = "vandelay-data" };
            //var store = new DocumentStore { DefaultDatabase = "VandelayData", Url = "http://localhost:8080" };
            store.Initialize();
            return store;
        });

        public IAsyncDocumentSession Session { get; set; }<commit_msg>point connection to shared raven store<commit_after>using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using Core.Models;
using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;

namespace Core.Controllers
{
    public abstract class StoreController : ApiController
    {
        public IDocumentStore Store
        {
            get { return LazyDocStore.Value; }
        }

        private static readonly Lazy<IDocumentStore> LazyDocStore = new Lazy<IDocumentStore>(() =>
        {
            var documentStore = new DocumentStore { ConnectionStringName = "RavenDB" };
            documentStore.Initialize();
            return documentStore;
        });

        public IAsyncDocumentSession Session { get; set; }
{'fraction_non_alphanumeric': 0.08919382504288165, 'fraction_numerical': 0.002287021154945683, 'mean_word_length': 2.9414414414414414, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '237065', 'n_tokens_mistral': 474, 'n_tokens_neox': 468, 'n_words': 121}