<commit_before>﻿using System;
using System.Collections.Generic;

using FireSharp.Config;
using FireSharp.Interfaces;

using Hangfire.Server;
using Hangfire.Storage;
using Hangfire.Logging;
using Hangfire.Firebase.Queue;

namespace Hangfire.Firebase
{
    public sealed class FirebaseStorage : JobStorage
    {
        private readonly string url;
        private readonly IFirebaseConfig config;

        public FirebaseStorageOptions Options { get; private set; }
        public PersistentJobQueueProviderCollection QueueProviders { get; private set; }

        public FirebaseStorage(string url, string authSecret) : this(url, authSecret, new FirebaseStorageOptions()) { }

        public FirebaseStorage(string url, string authSecret, FirebaseStorageOptions options)
        {
            config = new FirebaseConfig
            {
                AuthSecret = authSecret,
                BasePath = url,
                RequestTimeout = options.RequestTimeout,
                Serializer = new Json.JsonSerializer()
            };

            this.url = url;
            Options = options;
        }

        public override IStorageConnection GetConnection() => new FirebaseConnection(config, QueueProviders);

        public override IMonitoringApi GetMonitoringApi() => new FirebaseMonitoringApi();
<commit_msg>initialized the queue provider collection<commit_after>﻿using System;
using System.Collections.Generic;

using FireSharp.Config;
using FireSharp.Interfaces;

using Hangfire.Server;
using Hangfire.Storage;
using Hangfire.Logging;
using Hangfire.Firebase.Queue;

namespace Hangfire.Firebase
{
    public sealed class FirebaseStorage : JobStorage
    {
        private readonly string url;
        private readonly IFirebaseConfig config;

        public FirebaseStorageOptions Options { get; private set; }
        public PersistentJobQueueProviderCollection QueueProviders { get; private set; }

        public FirebaseStorage(string url, string authSecret) : this(url, authSecret, new FirebaseStorageOptions()) { }

        public FirebaseStorage(string url, string authSecret, FirebaseStorageOptions options)
        {
            config = new FirebaseConfig
            {
                AuthSecret = authSecret,
                BasePath = url,
                RequestTimeout = options.RequestTimeout,
                Serializer = new Json.JsonSerializer()
            };

            this.url = url;
            Options = options;

            JobQueueProvider provider = new JobQueueProvider(this);
            QueueProviders = new PersistentJobQueueProviderCollection(provider);
        }

        public override IStorageConnection GetConnection() => new FirebaseConnection(config, QueueProviders);

        public override IMonitoringApi GetMonitoringApi() => new FirebaseMonitoringApi();

{'fraction_non_alphanumeric': 0.06538734896943853, 'fraction_numerical': 0.0, 'mean_word_length': 2.8614540466392318, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4536500', 'n_tokens_mistral': 691, 'n_tokens_neox': 653, 'n_words': 187}