<commit_before># -*- coding: utf-8 -*-
"""
Updated on Mon Nov 10 2014

Create a titled box with labelled numeric entry fields.
Default values are provided as well. The set() method can change the number
of entry fields as well as the title. The get() method returns a dict with
the labels and values, 

@author: <NAME>, <NAME>
Datum:14.11.2013
"""
import sys
from PyQt4 import QtGui,QtCore
#from PyQt4.QtCore import SIGNAL

class NumBox(QtGui.QWidget):
    
    def __init__(self, title, labels = [], defaults = []):
        """
        Initialisierung
        text: ist der Text, der oberhalb der Eingabe stehen soll
        labels: Namen der Labels in einer Liste
        default: Dazugehörige Werte
        labels und default müssen immer gleiche Länge haben!!! Überprüfung muss noch gemacht werden
        """
        super(NumBox, self).__init__()   
        self.labels = labels
        self.qlables = [] # list with QLabels instances (pointers)
        self.default_werte = defaults
        self.textfield = []
        #print self.default_werte
        self.title = title
        self.initUI()    
        
    def initUI(self): 
        anz=len(self.labels)
        i=0
        
        self.qtitle = QtGui.QLabel(self)
        self.qtitle.setText(str(self.title))
        self.qtitle.setWordWrap(True)
        <commit_msg>cosmetic corrections Signed-off-by: chipmuenk <<EMAIL>><commit_after># -*- coding: utf-8 -*-
"""
Updated on Mon Nov 10 2014

Create a titled box with labelled numeric entry fields.
Default values are provided as well. The set() method can change the number
of entry fields as well as the title. The get() method returns a dict with
the labels and values, 

@author: <NAME>, <NAME>
Datum:14.11.2013
"""
import sys
from PyQt4 import QtGui,QtCore

class NumBox(QtGui.QWidget):
    
    def __init__(self, title, labels = [], defaults = []):
        """
        Initialisierung
        text: ist der Text, der oberhalb der Eingabe stehen soll
        labels: Namen der Labels in einer Liste
        default: Dazugehörige Werte
        labels und default müssen immer gleiche Länge haben!!! Überprüfung muss noch gemacht werden
        """
        super(NumBox, self).__init__()   
        self.labels = labels
        self.qlables = [] # list with QLabels instances (pointers)
        self.default_werte = defaults
        self.textfield = []
        #print self.default_werte
        self.title = title
        self.initUI()    
        
    def initUI(self): 
        anz=len(self.labels)
        i=0
        
        self.qtitle = QtGui.QLabel(self)
        self.qtitle.setText(str(self.title))
        self.qtitle.setWordWrap(True)
        
{'fraction_non_alphanumeric': 0.09172594533882442, 'fraction_numerical': 0.013103706476974916, 'mean_word_length': 2.4256410256410255, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2240421', 'n_tokens_mistral': 815, 'n_tokens_neox': 790, 'n_words': 262}