<commit_before>﻿using System;
using System.Linq;
using System.Configuration;
using Enyim.Caching;
using Enyim.Caching.Memcached;
using Membase.Configuration;

namespace Membase
{
	/// <summary>
	/// Client which can be used to connect to NothScale's Memcached and Membase servers.
	/// </summary>
	public class MembaseClient : MemcachedClient
	{
		private static readonly Enyim.Caching.ILog log = Enyim.Caching.LogManager.GetLogger(typeof(MembaseClient));
		private static readonly IMembaseClientConfiguration DefaultConfig = (IMembaseClientConfiguration)ConfigurationManager.GetSection("membase");

		private IMembaseServerPool poolInstance;

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using the default configuration and bucket.
		/// </summary>
		/// <remarks>The configuration is taken from the /configuration/membase section.</remarks>
		public MembaseClient() : this(DefaultConfig, null, null) { }

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using the default configuration and the specified bucket.
		/// </summary>
		/// <remarks>The configuration is taken from the /configuration/membase section.</remarks>
		public MembaseClient(string bucketName, string bucketPassword) :
			this(DefaultConfig, bucketName, bucketPassword) { }

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using a custom configuration provider.
		/// </summary>
		/// <param name="configuration">The custom configuration provider.</param>
		public MembaseClient(IMembaseClientConfiguration configuration) :
			this(configuration, configuration.Bucket, configuration.BucketPassword) { }<commit_msg>Changed .ctor to correct overload<commit_after>﻿using System;
using System.Linq;
using System.Configuration;
using Enyim.Caching;
using Enyim.Caching.Memcached;
using Membase.Configuration;

namespace Membase
{
	/// <summary>
	/// Client which can be used to connect to NothScale's Memcached and Membase servers.
	/// </summary>
	public class MembaseClient : MemcachedClient
	{
		private static readonly Enyim.Caching.ILog log = Enyim.Caching.LogManager.GetLogger(typeof(MembaseClient));
		private static readonly IMembaseClientConfiguration DefaultConfig = (IMembaseClientConfiguration)ConfigurationManager.GetSection("membase");

		private IMembaseServerPool poolInstance;

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using the default configuration and bucket.
		/// </summary>
		/// <remarks>The configuration is taken from the /configuration/membase section.</remarks>
		public MembaseClient() : this(DefaultConfig) { }

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using the default configuration and the specified bucket.
		/// </summary>
		/// <remarks>The configuration is taken from the /configuration/membase section.</remarks>
		public MembaseClient(string bucketName, string bucketPassword) :
			this(DefaultConfig, bucketName, bucketPassword) { }

		/// <summary>
		/// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class using a custom configuration provider.
		/// </summary>
		/// <param name="configuration">The custom configuration provider.</param>
		public MembaseClient(IMembaseClientConfiguration configuration) :
			this(configuration, configuration.Bucket, configuration.BucketPassword) { }
{'fraction_non_alphanumeric': 0.1076527698458024, 'fraction_numerical': 0.0, 'mean_word_length': 4.686688311688312, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '6476924', 'n_tokens_mistral': 967, 'n_tokens_neox': 921, 'n_words': 282}