<commit_before>﻿using System.IO;
using FluentNHibernate.Automapping;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using HibernatingRhinos.Profiler.Appender.NHibernate;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using sampleapplication;
using SampleApplication.Domain;


namespace SampleApplication.NHibernate
{
	public static class NHibernateHelper
	{
		const string DbFile = "firstProject.db";
		static ISessionFactory _sessionFactory;

		/// <summary>
		/// Gets the NHibernate session factory.
		/// </summary>
		/// <value>The session factory.</value>
		static ISessionFactory SessionFactory
		{
			get
			{
				if ( _sessionFactory == null )
				{
					// Configure NHibernate Session Factory using FluentNHibernate.
					_sessionFactory =
							Fluently.Configure()
									//.Database( SQLiteConfiguration.Standard.UsingFile( DbFile ) )
									.Database( MsSqlConfiguration.MsSql2005.ConnectionString( c => c.Is( @"Data Source=localhost\BANCVUE;Initial Catalog=SampleApplication;Integrated Security=SSPI;" ) ) )
									.Mappings( m =>
									           	{
									           		m.AutoMappings.Add(
									           				AutoMap.AssemblyOf< ISampleApplicationAssembly >()
									           						.Where( t => t.Namespace == "SampleApplication.Domain" && t.Name != "Customer" ) );<commit_msg>Auto-commit from successful build on CHRIS-32F02A9F1 by Administrator at 10:38:52.85 on Fri 08/20/2010<commit_after>﻿using System.IO;
using FluentNHibernate.Automapping;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using HibernatingRhinos.Profiler.Appender.NHibernate;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using sampleapplication;
using SampleApplication.Domain;


namespace SampleApplication.NHibernate
{
	public static class NHibernateHelper
	{
		const string DbFile = "firstProject.db";
		static ISessionFactory _sessionFactory;

		/// <summary>
		/// Gets the NHibernate session factory.
		/// </summary>
		/// <value>The session factory.</value>
		static ISessionFactory SessionFactory
		{
			get
			{
				if ( _sessionFactory == null )
				{
					// Configure NHibernate Session Factory using FluentNHibernate.
					_sessionFactory =
							Fluently.Configure()
									.Database( SQLiteConfiguration.Standard.UsingFile( DbFile ) )
									//.Database( MsSqlConfiguration.MsSql2005.ConnectionString( c => c.Is( @"Data Source=localhost\BANCVUE;Initial Catalog=SampleApplication;Integrated Security=SSPI;" ) ) )
									.Mappings( m =>
									           	{
									           		m.AutoMappings.Add(
									           				AutoMap.AssemblyOf< ISampleApplicationAssembly >()
									           						.Where( t => t.Namespace == "SampleApplication.Domain" && t.Name != "Customer" ) );
{'fraction_non_alphanumeric': 0.10068075958437836, 'fraction_numerical': 0.01146542457900394, 'mean_word_length': 3.08187134502924, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '5996648', 'n_tokens_mistral': 1062, 'n_tokens_neox': 782, 'n_words': 172}