<commit_before># coding=utf-8
from __future__ import absolute_import

__author__ = "<NAME> <<EMAIL>>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'

import octoprint.plugin

class SystemCommandEditorPlugin(octoprint.plugin.SettingsPlugin,
								octoprint.plugin.TemplatePlugin,
								octoprint.plugin.BlueprintPlugin,
								octoprint.plugin.AssetPlugin):
	def get_settings_defaults(self):
		return dict(actions=[])

	def get_template_configs(self):
		if "editorcollection" in self._plugin_manager.enabled_plugins:
			return [
				dict(type="plugin_editorcollection_EditorCollection", template="systemcommandeditor_hookedsettings.jinja2", custom_bindings=True)
			]
		else:
			return [
				dict(type="settings", template="systemcommandeditor_hookedsettings.jinja2", custom_bindings=True)
			]

	def on_settings_save(self, data):
		pass

	def get_assets(self):
		return dict(
			js=["js/jquery.ui.sortable.js",
				"js/systemcommandeditor.js",
				"js/systemcommandeditorDialog.js"]
		)

	def get_update_information(self):
		return dict(
			systemcommandeditor=dict(
				displayName="System Command Editor Plugin",
				displayVersion=self._plugin_version,

				# version check: github repository
				type="github_release",
				user="Salanddora",
				repo="OctoPrint-SystemCommandEditor",
				current=self._plugin_version,

				# update method: pip
				pip="https://github.com/Salandora/OctoPrint-SystemCommandEditor/archive/{target_version}.zip"
			)
		)

# If you want your plugin to be registered within OctoPrint under a different name than what you defined in setup.py
# ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
__plugin_name__ = "System Command Editor"

def __plugin_load__():
	global __plugin_implementation__
	__plugin_implementation__ = SystemCommandEditorPlugin()

	global __plugin_hooks__
	__plugin_hooks__ = {
		"octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information
	}

	global __plugin_license__
	__plugin_license__ = "AGPLv3"<commit_msg>Fix: Typo, Salanddora => Salandora<commit_after># coding=utf-8
from __future__ import absolute_import

__author__ = "<NAME> <<EMAIL>>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'

import octoprint.plugin

class SystemCommandEditorPlugin(octoprint.plugin.SettingsPlugin,
								octoprint.plugin.TemplatePlugin,
								octoprint.plugin.BlueprintPlugin,
								octoprint.plugin.AssetPlugin):
	def get_settings_defaults(self):
		return dict(actions=[])

	def get_template_configs(self):
		if "editorcollection" in self._plugin_manager.enabled_plugins:
			return [
				dict(type="plugin_editorcollection_EditorCollection", template="systemcommandeditor_hookedsettings.jinja2", custom_bindings=True)
			]
		else:
			return [
				dict(type="settings", template="systemcommandeditor_hookedsettings.jinja2", custom_bindings=True)
			]

	def on_settings_save(self, data):
		pass

	def get_assets(self):
		return dict(
			js=["js/jquery.ui.sortable.js",
				"js/systemcommandeditor.js",
				"js/systemcommandeditorDialog.js"]
		)

	def get_update_information(self):
		return dict(
			systemcommandeditor=dict(
				displayName="System Command Editor Plugin",
				displayVersion=self._plugin_version,

				# version check: github repository
				type="github_release",
				user="Salandora",
				repo="OctoPrint-SystemCommandEditor",
				current=self._plugin_version,

				# update method: pip
				pip="https://github.com/Salandora/OctoPrint-SystemCommandEditor/archive/{target_version}.zip"
			)
		)

# If you want your plugin to be registered within OctoPrint under a different name than what you defined in setup.py
# ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
__plugin_name__ = "System Command Editor"

def __plugin_load__():
	global __plugin_implementation__
	__plugin_implementation__ = SystemCommandEditorPlugin()

	global __plugin_hooks__
	__plugin_hooks__ = {
		"octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information
	}

	global __plugin_license__
	__plugin_license__ = "AGPLv3"
{'fraction_non_alphanumeric': 0.09115523465703972, 'fraction_numerical': 0.0018050541516245488, 'mean_word_length': 5.2524682651622, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3387905', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1333, 'n_words': 286}