<commit_before>﻿using UnityEngine;
using System.Collections;

public class BaseMenu : MonoBehaviour {
    public GUISkin Skin;
    protected Rect windowRect;
    protected BackendManager backendManager;

    public bool InRect(Vector3 mousePosition) {
        return windowRect.Contains(mousePosition);
    }

    public bool IsMouseOver() {
        Vector3 mp = Input.mousePosition;
        mp.y = Mathf.Abs(mp.y - Screen.height);
        return InRect(mp);
    }

    private void Awake() {
        backendManager = GetComponent<BackendManager>();
        if (backendManager == null) {
            Debug.LogWarning("BackendManager not found, disabling menu.");
            enabled = false;
        }
    }
}<commit_msg>IsMouseOver method of the BaseMenu now only returns true when the menu is also enabled.<commit_after>﻿using UnityEngine;
using System.Collections;

public class BaseMenu : MonoBehaviour {
    public GUISkin Skin;
    protected Rect windowRect;
    protected BackendManager backendManager;

    public bool InRect(Vector3 mousePosition) {
        return windowRect.Contains(mousePosition);
    }

    public bool IsMouseOver() {
        Vector3 mp = Input.mousePosition;
        mp.y = Mathf.Abs(mp.y - Screen.height);
        return InRect(mp) && enabled;
    }

    private void Awake() {
        backendManager = GetComponent<BackendManager>();
        if (backendManager == null) {
            Debug.LogWarning("BackendManager not found, disabling menu.");
            enabled = false;
        }
    }
}
{'fraction_non_alphanumeric': 0.08840864440078586, 'fraction_numerical': 0.0026195153896529143, 'mean_word_length': 2.7450980392156863, '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': '362955', 'n_tokens_mistral': 411, 'n_tokens_neox': 401, 'n_words': 113}