<commit_before># -*- coding: utf-8 -*-
"""
Created on Sat Mar 18 18:53:43 2017

@author: Aeolitus
"""
from Wolke import Wolke
import CharakterItems
from PyQt5 import QtWidgets, QtCore

class CharakterItemsWrapper(QtCore.QObject):
    modified = QtCore.pyqtSignal()
    
    def __init__(self):
        super().__init__()
        if Wolke.Debug:
            print("Initializing ItemsWrapper...")
        self.formIt = QtWidgets.QWidget()
        self.uiIt = CharakterItems.Ui_Form()
        self.uiIt.setupUi(self.formIt)
        
        
    def loadItems(self):
        count = 1
        for el in Wolke.Char.ausrüstung:
            eval("self.uiIt.lineEdit_" + str(count) + ".setText(\"" + el + "\")")
            count += 1
            if count > 20:
                break
        while count <= 20:
            eval("self.uiIt.lineEdit_" + str(count) + ".clear()")
            count += 1
    
    def updateFreie(self):
        Wolke.Char.ausrüstung.clear()
        for i in range(1,21):
            txt = eval("self.uiIt.lineEdit_" + str(i) + ".text()")
            if txt != "":
                Wolke.Char.ausrüstung.append(txt)
        #self.modified.emit() - Not needed since this is not costing any EP<commit_msg>Most likely fixed Issue #4 - cannot test on home computer, so ill have to do that from work since i cant reproduce it here.<commit_after># -*- coding: utf-8 -*-
"""
Created on Sat Mar 18 18:53:43 2017

@author: Aeolitus
"""
from Wolke import Wolke
import CharakterItems
from PyQt5 import QtWidgets, QtCore

class CharakterItemsWrapper(QtCore.QObject):
    modified = QtCore.pyqtSignal()
    
    def __init__(self):
        super().__init__()
        if Wolke.Debug:
            print("Initializing ItemsWrapper...")
        self.formIt = QtWidgets.QWidget()
        self.uiIt = CharakterItems.Ui_Form()
        self.uiIt.setupUi(self.formIt)
        self.currentlyLoading = False
        
        
    def loadItems(self):
        self.currentlyLoading = True
        count = 1
        for el in Wolke.Char.ausrüstung:
            eval("self.uiIt.lineEdit_" + str(count) + ".setText(\"" + el + "\")")
            count += 1
            if count > 20:
                break
        while count <= 20:
            eval("self.uiIt.lineEdit_" + str(count) + ".clear()")
            count += 1
        self.currentlyLoading = False
    
    def updateFreie(self):
        if not self.currentlyLoading:
            Wolke.Char.ausrüstung.clear()
            for i in range(1,21):
                txt = eval("self.uiIt.lineEdit_" + str(i) + ".text()")
                if txt != "":
                    Wolke.Char.ausrüstung.append(txt)
{'fraction_non_alphanumeric': 0.12372689551112788, 'fraction_numerical': 0.01848359109769898, 'mean_word_length': 1.9303867403314916, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '3184981', 'n_tokens_mistral': 868, 'n_tokens_neox': 814, 'n_words': 200}