<commit_before>from UM.i18n import i18nCatalog
from cura.MachineAction import MachineAction
import cura.Settings.CuraContainerRegistry

from UM.Settings.DefinitionContainer import DefinitionContainer

from UM.Application import Application

from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot, QObject

catalog = i18nCatalog("cura")

class DiscoverOctoPrintAction(MachineAction, QObject, ):
    def __init__(self, parent = None):
        MachineAction.__init__(self, "DiscoverOctoPrintAction", catalog.i18nc("@action", "Connect OctoPrint"))

        self._qml_url = "DiscoverOctoPrintAction.qml"
        self._window = None
        self._context = None

        self._network_plugin = None

        cura.Settings.CuraContainerRegistry.getInstance().containerAdded.connect(self._onContainerAdded)

    printersChanged = pyqtSignal()

    @pyqtSlot()
    def startDiscovery(self):
        if not self._network_plugin:
            self._network_plugin = Application.getInstance().getOutputDeviceManager().getOutputDevicePlugin("OctoPrintPlugin")
            self._network_plugin.addPrinterSignal.connect(self._onPrinterDiscoveryChanged)
            self._network_plugin.removePrinterSignal.connect(self._onPrinterDiscoveryChanged)<commit_msg>Remove dangling argument<commit_after>from UM.i18n import i18nCatalog
from cura.MachineAction import MachineAction
import cura.Settings.CuraContainerRegistry

from UM.Settings.DefinitionContainer import DefinitionContainer

from UM.Application import Application

from PyQt5.QtCore import pyqtSignal, pyqtProperty, pyqtSlot, QObject

catalog = i18nCatalog("cura")

class DiscoverOctoPrintAction(MachineAction, QObject):
    def __init__(self, parent = None):
        MachineAction.__init__(self, "DiscoverOctoPrintAction", catalog.i18nc("@action", "Connect OctoPrint"))

        self._qml_url = "DiscoverOctoPrintAction.qml"
        self._window = None
        self._context = None

        self._network_plugin = None

        cura.Settings.CuraContainerRegistry.getInstance().containerAdded.connect(self._onContainerAdded)

    printersChanged = pyqtSignal()

    @pyqtSlot()
    def startDiscovery(self):
        if not self._network_plugin:
            self._network_plugin = Application.getInstance().getOutputDeviceManager().getOutputDevicePlugin("OctoPrintPlugin")
            self._network_plugin.addPrinterSignal.connect(self._onPrinterDiscoveryChanged)
            self._network_plugin.removePrinterSignal.connect(self._onPrinterDiscoveryChanged)
{'fraction_non_alphanumeric': 0.08110267678785457, 'fraction_numerical': 0.007191370355573312, 'mean_word_length': 4.665158371040724, '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': '2729110', 'n_tokens_mistral': 700, 'n_tokens_neox': 675, 'n_words': 121}