<commit_before>
"""
plugin DataLoader responsible of loading data
"""

from sans.guiframe.plugin_base import PluginBase

class Plugin(PluginBase):
    
    def __init__(self, standalone=False):
        PluginBase.__init__(self, name="DataLaoder", standalone=standalone)
        
    def populate_file_menu(self):
        """
        get a menu item and append it under file menu of the application
        add load file menu item and load folder item
        """
        hint_load_folder = "Read file(s) from a folder and load"
        hint_load_folder += " them into the application"
        hint_load_file = "Read files and load them into the application"
        return [["Load File", hint_load_file, self._load_file],
                ["Load Folder", hint_load_folder ,self._load_file]]
  
    def _load_file(self, event):
        """
        Load file(s)
        """
    def _load_folder(self, event):
        """
        Load entire folder
        """<commit_msg>add loading back<commit_after>
"""
plugin DataLoader responsible of loading data
"""

from sans.guiframe.plugin_base import PluginBase

class Plugin(PluginBase):
    
    def __init__(self, standalone=False):
        PluginBase.__init__(self, name="DataLaoder", standalone=standalone)
        
    def populate_file_menu(self):
        """
        get a menu item and append it under file menu of the application
        add load file menu item and load folder item
        """
        hint_load_folder = "Read file(s) from a folder and load"
        hint_load_folder += " them into the application"
        hint_load_file = "Read files and load them into the application"
        
        return [["Load File", hint_load_file, self.parent._on_open],
                 #["Load File", hint_load_file, self._load_file],
                ["Load Folder", hint_load_folder ,self._load_folder]]
  
    def _load_file(self, event):
        """
        Load file(s)
        """
    def _load_folder(self, event):
        """
        Load entire folder
        """
        
{'fraction_non_alphanumeric': 0.0916256157635468, 'fraction_numerical': 0.0, 'mean_word_length': 2.454081632653061, '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': '6267600', 'n_tokens_mistral': 568, 'n_tokens_neox': 551, 'n_words': 176}