<commit_before>package unihx.pvt.editor;
import unihx.pvt.compiler.*;
import unityengine.*;
import unityeditor.*;
import haxe.ds.Vector;
using StringTools;

@:meta(UnityEditor.CustomEditor(typeof(UnityEngine.Transform)))
@:meta(UnityEditor.CanEditMultipleObjects)
@:meta(UnityEditor.InitializeOnLoad)
@:nativeGen
@:native('AllowDragDrop')
class AllowDragDrop extends Editor
{
	private var _target(get,never):Transform;

	static function __init__()
	{
		unityeditor.EditorApplication.hierarchyWindowItemOnGUI += function(instanceId:Int, r:Rect) {
			var obj = DragAndDrop.objectReferences;
			if (obj == null || obj.Length == 0 || !r.Contains(Event.current.mousePosition))
			{
				return;
			}

			var _target = EditorUtility.InstanceIDToObject(instanceId);
			if (!Std.is(_target,GameObject))
			{
				return;
			}

			var path = AssetDatabase.GetAssetPath(DragAndDrop.objectReferences[0]);
			if (path.endsWith('.hx'))
			{
				var last = GUI.color;
				GUI.color = new Color(164 / 255, 211 / 255, 237 / 255, 0.5);
				GUI.Box(r,"");<commit_msg>minor<commit_after>package unihx.pvt.editor;
import unihx.pvt.compiler.*;
import unityengine.*;
import unityeditor.*;
import haxe.ds.Vector;
using StringTools;

@:meta(UnityEditor.CustomEditor(typeof(UnityEngine.Transform)))
@:meta(UnityEditor.CanEditMultipleObjects)
@:meta(UnityEditor.InitializeOnLoad)
@:nativeGen
@:native('AllowDragDrop')
class AllowDragDrop extends Editor
{
	private var _target(get,never):Transform;

	static function __init__()
	{
		unityeditor.EditorApplication.hierarchyWindowItemOnGUI += function(instanceId:Int, r:Rect) {
			var obj = DragAndDrop.objectReferences;
			if (obj == null || obj.Length == 0 || !r.Contains(Event.current.mousePosition))
			{
				return;
			}

			var _target = EditorUtility.InstanceIDToObject(instanceId);
			if (!Std.is(_target,GameObject))
			{
				return;
			}

			var path = AssetDatabase.GetAssetPath(DragAndDrop.objectReferences[0]);
			if (path.endsWith('.hx') && Std.is(_target, GameObject))
			{
				var last = GUI.color;
				GUI.color = new Color(164 / 255, 211 / 255, 237 / 255, 0.5);
				GUI.Box(r,"");
{'fraction_non_alphanumeric': 0.13982050070854984, 'fraction_numerical': 0.020784128483703354, 'mean_word_length': 4.8347107438016526, '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': '5510275', 'n_tokens_mistral': 825, 'n_tokens_neox': 693, 'n_words': 129}