<commit_before>﻿using OpenTK;
using OpenTK.Input;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Runtime.InteropServices;

namespace NFM.Entities {

	class Player : Entity {
		float Mouse_Yd = Meth.Pi / 2;
		float Mouse_Xd = 3 * (Meth.Pi / 4);

		Point Center;
		Point Delt;

		Dictionary<Key, bool> Keyboard;

		// TODO: Abstract later
		/*[DllImport("user32.dll")]
		static extern bool SetCursorPos(int X, int Y);*/

		bool SetCursorPos(Point P) {
			return false;
			//return SetCursorPos(P.X, P.Y);
		}

		/*[DllImport("user32.dll")]
		[return: MarshalAs(UnmanagedType.Bool)]
		static extern bool GetCursorPos(out Point lpPoint);*/

		Point GetCursorPos() {
			Point R = new Point();
			//GetCursorPos(out R);
			return R;
		}

		void AssureKey(Key K) {
			if (!Keyboard.ContainsKey(K))
				Keyboard.Add(K, false);
		}

		void AssureKey(params Key[] K) {
			foreach (var k in K)
				AssureKey(k);
		}
<commit_msg>Revert "SomeChanges"<commit_after>﻿using OpenTK;
using OpenTK.Input;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Runtime.InteropServices;

namespace NFM.Entities {

	class Player : Entity {
		float Mouse_Yd = Meth.Pi / 2;
		float Mouse_Xd = 3 * (Meth.Pi / 4);

		Point Center;
		Point Delt;

		Dictionary<Key, bool> Keyboard;

		// TODO: Abstract later
		[DllImport("user32.dll")]
		static extern bool SetCursorPos(int X, int Y);
		static bool SetCursorPos(Point P) {
			return SetCursorPos(P.X, P.Y);
		}
		[DllImport("user32.dll")]
		[return: MarshalAs(UnmanagedType.Bool)]
		static extern bool GetCursorPos(out Point lpPoint);
		static Point GetCursorPos() {
			Point R;
			GetCursorPos(out R);
			return R;
		}

		void AssureKey(Key K) {
			if (!Keyboard.ContainsKey(K))
				Keyboard.Add(K, false);
		}

		void AssureKey(params Key[] K) {
			foreach (var k in K)
				AssureKey(k);
		}

{'fraction_non_alphanumeric': 0.1286549707602339, 'fraction_numerical': 0.007442849548112706, 'mean_word_length': 3.6014669926650367, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7043376', 'n_tokens_mistral': 772, 'n_tokens_neox': 666, 'n_words': 175}