<commit_before>﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Dapper.SimpleLoad
{
    [Serializable]
    public class AnnotatedSqlException : Exception, ISerializable
    {
        public AnnotatedSqlException(SqlException source, string sql, string splitOn, object parameters) : base(
                source.Message
                + Environment.NewLine
                + "For SQL: " + sql
                + Environment.NewLine
                + "Split On: " + splitOn
                + "Parameters: " + JsonConvert.SerializeObject(parameters),
            source)
        {
            Sql = sql;
            SplitOn = splitOn;
            Parameters = parameters;
        }

        protected AnnotatedSqlException(SerializationInfo info, StreamingContext context) : base(info, context)<commit_msg>Added a missing newline in the error message.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Dapper.SimpleLoad
{
    [Serializable]
    public class AnnotatedSqlException : Exception, ISerializable
    {
        public AnnotatedSqlException(SqlException source, string sql, string splitOn, object parameters) : base(
                source.Message
                + Environment.NewLine
                + "For SQL: " + sql
                + Environment.NewLine
                + "Split On: " + splitOn
                + Environment.NewLine
                + "Parameters: " + JsonConvert.SerializeObject(parameters),
            source)
        {
            Sql = sql;
            SplitOn = splitOn;
            Parameters = parameters;
        }

        protected AnnotatedSqlException(SerializationInfo info, StreamingContext context) : base(info, context)
{'fraction_non_alphanumeric': 0.0781094527363184, 'fraction_numerical': 0.0, 'mean_word_length': 2.362876254180602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6532401', 'n_tokens_mistral': 505, 'n_tokens_neox': 494, 'n_words': 125}