<commit_before>using System;
using System.Data;

using NHibernate.SqlTypes;

namespace NHibernate.Type {

	/// <summary>
	/// DecimalType
	/// </summary>
	public class DecimalType : PrimitiveType, IIdentifierType, IVersionType {
	
		internal DecimalType(DecimalSqlType sqlType) : base(sqlType) {
		}

		public override object Get(IDataReader rs, int index) {
			return Convert.ToDecimal(rs[index]);
		}

		public override object Get(IDataReader rs, string name) {
			return Convert.ToDecimal(rs[name]);
		}

		public override System.Type PrimitiveClass {
			get { return typeof(Decimal); }
		}

		public override System.Type ReturnedClass {
			get { return typeof(Decimal); }
		}

		public override void Set(IDbCommand st, object value, int index) {
			IDataParameter parm = st.Parameters[index] as IDataParameter;
			parm.Value = value;
		}

		public override string Name {
			get { return "Decimal"; }
		}

		public object StringToObject(string xml) {
			return long.Parse(xml);
		}

		public object Next(object current) {
			return ((Decimal)current) + 1;
		}

		public object Seed {
			get { return 0; }
		}

		public override string ObjectToSQLString(object value) {
			return value.ToString();
		}
	}
}<commit_msg>Removed IVersionType interface from DecimalType.<commit_after>using System;
using System.Data;

using NHibernate.SqlTypes;

namespace NHibernate.Type 
{

	/// <summary>
	/// DecimalType
	/// </summary>
	public class DecimalType : PrimitiveType, IIdentifierType
	{
	
		internal DecimalType(DecimalSqlType sqlType) : base(sqlType) 
		{
		}

		public override object Get(IDataReader rs, int index) 
		{
			return Convert.ToDecimal(rs[index]);
		}

		public override object Get(IDataReader rs, string name) 
		{
			return Convert.ToDecimal(rs[name]);
		}

		public override System.Type PrimitiveClass 
		{
			get { return typeof(Decimal); }
		}

		public override System.Type ReturnedClass 
		{
			get { return typeof(Decimal); }
		}

		public override void Set(IDbCommand st, object value, int index) 
		{
			IDataParameter parm = st.Parameters[index] as IDataParameter;
			parm.Value = value;
		}

		public override string Name 
		{
			get { return "Decimal"; }
		}

		public object StringToObject(string xml) 
		{
			return long.Parse(xml);
		}

		public override string ObjectToSQLString(object value) 
		{
			return value.ToString();
		}
	}
}
{'fraction_non_alphanumeric': 0.1011426153195091, 'fraction_numerical': 0.0008463817181548879, 'mean_word_length': 3.546153846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3849301', 'n_tokens_mistral': 856, 'n_tokens_neox': 723, 'n_words': 194}