<commit_before>﻿using System.Runtime.InteropServices;
using System.Security;

namespace Win32
{
	/// <summary>
	/// Class for miscellaneous kernel32.dll functions.
	/// </summary>
	[SuppressUnmanagedCodeSecurity()]
	public static class WinKernel
	{
		const string DLLName="Kernel32.dll";

		/// <summary>
		/// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other's last-error code.
		/// </summary>
		/// <remarks>This is for convenience only, you should use <see cref="Marshal.GetLastWin32Error"/>.</remarks>
		/// <returns>The last-error code.</returns>
		[DllImport(DLLName)]
		public static extern uint GetLastError();
	}
}<commit_msg>* Added SetLastError to WinKernel.<commit_after>﻿using System.Runtime.InteropServices;
using System.Security;

namespace Win32
{
	/// <summary>
	/// Class for miscellaneous kernel32.dll functions.
	/// </summary>
	[SuppressUnmanagedCodeSecurity()]
	public static class WinKernel
	{
		const string DLLName="Kernel32.dll";

		/// <summary>
		/// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other's last-error code.
		/// </summary>
		/// <remarks>This is for convenience only, you should use <see cref="Marshal.GetLastWin32Error"/>.</remarks>
		/// <returns>The last-error code.</returns>
		[DllImport(DLLName)]
		public static extern uint GetLastError();

		/// <summary>
		/// Sets the last-error code for the calling thread.
		/// </summary>
		[DllImport(DLLName)]
		public static extern void SetLastError(int error);

		/// <summary>
		/// Sets the last-error code for the calling thread.
		/// </summary>
		[DllImport(DLLName)]
		public static extern void SetLastError(uint error);
	}
}
{'fraction_non_alphanumeric': 0.1294885745375408, 'fraction_numerical': 0.008705114254624592, 'mean_word_length': 3.7153846153846155, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4474110', 'n_tokens_mistral': 587, 'n_tokens_neox': 534, 'n_words': 172}