<commit_before>from sublime_plugin import WindowCommand
from ..libraries.quick_menu import QuickMenu

class DeviotImportLibraryCommand(WindowCommand):
    def run(self):
        QuickMenu().quick_import()<commit_msg>Avoid to import a library header in a non IOT file<commit_after>from sublime_plugin import WindowCommand
from ..libraries.quick_menu import QuickMenu
from ..libraries.project_check import ProjectCheck

class DeviotImportLibraryCommand(WindowCommand):
    def run(self):
        QuickMenu().quick_import()

    def is_enabled(self):
        is_iot = ProjectCheck().is_iot()
        return bool(is_iot)
{'fraction_non_alphanumeric': 0.07792207792207792, 'fraction_numerical': 0.0, 'mean_word_length': 4.876190476190477, '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': '3847020', 'n_tokens_mistral': 171, 'n_tokens_neox': 167, 'n_words': 45}