<commit_before># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

from UM.Tool import Tool
from UM.Scene.Selection import Selection
from UM.Application import Application

from . import PerObjectSettingsModel

class PerObjectSettingsTool(Tool):
    def __init__(self):
        super().__init__()

        self.setExposedProperties("Model", "SelectedIndex", "PrintSequence")

    def event(self, event):
        return False

    def getModel(self):
        return PerObjectSettingsModel.PerObjectSettingsModel()

    def getSelectedIndex(self):
        selected_object_id = id(Selection.getSelectedObject(0))
        index = self.getModel().find("id", selected_object_id)
        return index

    def getPrintSequence(self):
        settings = Application.getInstance().getMachineManager().getActiveProfile()
        return settings.getSettingValue("print_sequence")<commit_msg>Remove more remnants of print sequence message<commit_after># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

from UM.Tool import Tool
from UM.Scene.Selection import Selection
from UM.Application import Application

from . import PerObjectSettingsModel

class PerObjectSettingsTool(Tool):
    def __init__(self):
        super().__init__()

        self.setExposedProperties("Model", "SelectedIndex")

    def event(self, event):
        return False

    def getModel(self):
        return PerObjectSettingsModel.PerObjectSettingsModel()

    def getSelectedIndex(self):
        selected_object_id = id(Selection.getSelectedObject(0))
        index = self.getModel().find("id", selected_object_id)
        return index
{'fraction_non_alphanumeric': 0.08662345315262228, 'fraction_numerical': 0.007071302298173247, 'mean_word_length': 3.907514450867052, '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': '6032998', 'n_tokens_mistral': 470, 'n_tokens_neox': 444, 'n_words': 126}