<commit_before>using System;

namespace Rhino.Mocks.Impl
{
	using System.Diagnostics;
	using System.IO;
	using Castle.Core.Interceptor;
	using Interfaces;
	using Utilities;

	/// <summary>
	/// Writes log information as stack traces about rhino mocks activity
	/// </summary>
	public class TraceWriterWithStackTraceExpectationWriter : IExpectationLogger
	{
		/// <summary>
		/// Allows to redirect output to a different location.
		/// </summary>
		public TextWriter AlternativeWriter;

	    /// <summary>
	    /// Logs the message
	    /// </summary>
	    /// <param name="message">The message.</param>
	    public void Log(string message)
	    {
	        WriteLine(message);
	    }

	    /// <summary>
		/// Logs the expectation as is was recorded
		/// </summary>
		/// <param name="invocation">The invocation.</param>
		/// <param name="expectation">The expectation.</param>
		public void LogRecordedExpectation(IInvocation invocation, IExpectation expectation)
		{
			string methodCall = MethodCallUtil.StringPresentation(invocation, invocation.Method, invocation.Arguments);
			WriteLine("Recorded expectation: {0}", methodCall);
			WriteCurrentMethod();
		}<commit_msg>Fixing little 'hitch' in TraceWriterWithStackTraceExpectationWriter (was causing a failing test)<commit_after>using System;

namespace Rhino.Mocks.Impl
{
	using System.Diagnostics;
	using System.IO;
	using Castle.Core.Interceptor;
	using Interfaces;
	using Utilities;

	/// <summary>
	/// Writes log information as stack traces about rhino mocks activity
	/// </summary>
	public class TraceWriterWithStackTraceExpectationWriter : IExpectationLogger
	{
		/// <summary>
		/// Allows to redirect output to a different location.
		/// </summary>
		public TextWriter AlternativeWriter;

	    /// <summary>
	    /// Logs the message
	    /// </summary>
	    /// <param name="message">The message.</param>
	    public void Log(string message)
	    {
	        Debug.WriteLine(message);
	    }

	    /// <summary>
		/// Logs the expectation as is was recorded
		/// </summary>
		/// <param name="invocation">The invocation.</param>
		/// <param name="expectation">The expectation.</param>
		public void LogRecordedExpectation(IInvocation invocation, IExpectation expectation)
		{
			string methodCall = MethodCallUtil.StringPresentation(invocation, invocation.Method, invocation.Arguments);
			WriteLine("Recorded expectation: {0}", methodCall);
			WriteCurrentMethod();
		}
{'fraction_non_alphanumeric': 0.12085210979106924, 'fraction_numerical': 0.0008193363375665711, 'mean_word_length': 3.4643510054844606, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '3138620', 'n_tokens_mistral': 727, 'n_tokens_neox': 657, 'n_words': 183}