<commit_before>#!/usr/bin/env python
import sys

#import matplotlib 
#matplotlib.use('GTK') 
#from matplotlib.figure import Figure 
#from matplotlib.axes import Subplot 
#from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar 
#from matplotlib.numerix import arange, sin, pi 

import ConfigParser
import os

try: 
    import pygtk 
    pygtk.require("2.0") 
except: 
    pass 
try: 
    import gtk
    import gtk.gdk
    import gobject
    import gtk.glade 
except: 
    sys.exit(1)

#import cri_slm_fake as cri_slm
import cri_slm
 
class appGui: 
    def __init__(self, slm):
        self.slm = slm
        self.moveenabled = False
        dirname = os.path.dirname(sys.argv[0])
        gladefile = dirname + "/simple.glade"
        self.windowname = "window1" 
        self.wTree = gtk.glade.XML(gladefile, self.windowname)
        dic = {"on_mainWindow_destroy" : gtk.main_quit}
        self.wTree.signal_autoconnect(dic)
        self.window = self.wTree.get_widget(self.windowname)
        self.window.show_all()
        dic = {"on_window1_destroy" : gtk.main_quit, 
              }
        self.wTree.signal_autoconnect(dic)
        self.masklabel = self.wTree.get_widget("MaskLabel")
        self.masklabeltext = self.masklabel.get_label()
        self.framelabel = self.wTree.get_widget("FrameLabel")
        self.framelabeltext = self.framelabel.get_label()
        self.elementlabel = self.wTree.get_widget("ElementLabel")
        self.elementlabeltext = self.elementlabel.get_label()
        self.valuelabel = self.wTree.get_widget("ValueLabel")
        self.valuelabeltext = self.valuelabel.get_label()

        self.updatelabels()

#         self.poslabel = self.wTree.get_widget("PositionLabel")<commit_msg>slm: remove unused line for clarity<commit_after>#!/usr/bin/env python
import sys

#import matplotlib 
#matplotlib.use('GTK') 
#from matplotlib.figure import Figure 
#from matplotlib.axes import Subplot 
#from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar 
#from matplotlib.numerix import arange, sin, pi 

import ConfigParser
import os

try: 
    import pygtk 
    pygtk.require("2.0") 
except: 
    pass 
try: 
    import gtk
    import gtk.gdk
    import gobject
    import gtk.glade 
except: 
    sys.exit(1)

#import cri_slm_fake as cri_slm
import cri_slm
 
class appGui: 
    def __init__(self, slm):
        self.slm = slm
        self.moveenabled = False
        dirname = os.path.dirname(sys.argv[0])
        gladefile = dirname + "/simple.glade"
        self.windowname = "window1" 
        self.wTree = gtk.glade.XML(gladefile, self.windowname)
        dic = {"on_mainWindow_destroy" : gtk.main_quit}
        self.wTree.signal_autoconnect(dic)
        self.window = self.wTree.get_widget(self.windowname)
        self.window.show_all()
        dic = {"on_window1_destroy" : gtk.main_quit, 
              }
        self.wTree.signal_autoconnect(dic)
        self.masklabel = self.wTree.get_widget("MaskLabel")
        self.masklabeltext = self.masklabel.get_label()
        self.framelabel = self.wTree.get_widget("FrameLabel")
        self.framelabeltext = self.framelabel.get_label()
        self.elementlabel = self.wTree.get_widget("ElementLabel")
        self.elementlabeltext = self.elementlabel.get_label()
        self.valuelabel = self.wTree.get_widget("ValueLabel")
        self.valuelabeltext = self.valuelabel.get_label()

        self.updatelabels()

{'fraction_non_alphanumeric': 0.10217706821480406, 'fraction_numerical': 0.0034833091436865023, 'mean_word_length': 2.9473081328751434, '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': '633754', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1171, 'n_words': 206}