<commit_before>using System;
using System.Reflection;

using NHibernate.Cfg;
using NHibernate.Engine;
using NHibernate.SqlCommand;

using NUnit.Framework;

namespace NHibernate.Test.ExpressionTest
{
	/// <summary>
	/// Contains all of the base functionallity for the ExpressionFixtures.
	/// </summary>
	public class BaseExpressionFixture
	{
		protected ISessionFactory factory;
		protected ISessionFactoryImplementor factoryImpl;

		[SetUp]
		public void SetUp() 
		{
			Configuration cfg = new Configuration();
			cfg.AddResource("NHibernate.DomainModel.Simple.hbm.xml", Assembly.Load("NHibernate.DomainModel"));

			factory = cfg.BuildSessionFactory();
			factoryImpl = (ISessionFactoryImplementor)factory;

		}

		/// <summary>
		/// Used to pull the Parameter[] and Number of Parameters out of the SqlString
		/// </summary>
		/// <param name="sqlString"></param>
		/// <param name="parameters"></param><commit_msg>Added a protected field dialect to help with Quoting.  Probably don't need it because the Test don't use chars that need to be Quoted.<commit_after>using System;
using System.Reflection;

using NHibernate.Cfg;
using NHibernate.Engine;
using NHibernate.SqlCommand;

using NUnit.Framework;

namespace NHibernate.Test.ExpressionTest
{
	/// <summary>
	/// Contains all of the base functionallity for the ExpressionFixtures.
	/// </summary>
	public class BaseExpressionFixture
	{
		protected ISessionFactory factory;
		protected ISessionFactoryImplementor factoryImpl;
		protected Dialect.Dialect dialect;
		
		[SetUp]
		public void SetUp() 
		{
			Configuration cfg = new Configuration();
			cfg.AddResource("NHibernate.DomainModel.Simple.hbm.xml", Assembly.Load("NHibernate.DomainModel"));

			factory = cfg.BuildSessionFactory();
			factoryImpl = (ISessionFactoryImplementor)factory;
			dialect = Dialect.Dialect.GetDialect();
		}

		/// <summary>
		/// Used to pull the Parameter[] and Number of Parameters out of the SqlString
		/// </summary>
		/// <param name="sqlString"></param>
		/// <param name="parameters"></param>
{'fraction_non_alphanumeric': 0.11263467189030363, 'fraction_numerical': 0.0, 'mean_word_length': 4.2927461139896375, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7148568', 'n_tokens_mistral': 647, 'n_tokens_neox': 570, 'n_words': 161}