<commit_before># -*- coding:utf-8 -*-
import sys
import gtk
import gobject
import pango

sys.path.append("python-h8simulator")
from simpleh8simulator import *

class H8SimGUI :
  def __init__(self) :
    self.builder = gtk.Builder()
    self.builder.add_from_file("gui.glade")

    self.window = self.builder.get_object("window1")
    self.filechooserdialog = self.builder.get_object("filechooserdialog1")
    self.treeview = self.builder.get_object("treeview1")
    
    self.menu_open_item = self.builder.get_object("imagemenuitem2")
    self.menu_exit_item = self.builder.get_object("imagemenuitem5")
    
    self.dis_assembly = self.builder.get_object("textview1")
    self.run_button = self.builder.get_object("button1")
    self.step_button = self.builder.get_object("button2")
    self.reset_button = self.builder.get_object("button3")
    
    self.fdialog_ok_button = self.builder.get_object("button4")
    self.fdialog_cancel_button = self.builder.get_object("button5")
    
    self.fdialog_ok_button.connect("clicked", self.hideFileChooserDialog)
    self.menu_open_item.connect("activate", self.showFileChooserDialog)
    self.menu_exit_item.connect("activate", self.exit)
    self.run_button.connect("clicked", self.sim_run)
    self.step_button.connect("clicked", self.sim_step)
    self.reset_button.connect("clicked", self.sim_reset)
    self.window.connect("delete-event", self.exit);

    self.treeview.modify_font(pango.FontDescription('Courier'))
    self.treeview.append_column(gtk.TreeViewColumn('', gtk.CellRendererText(), text=0))
    self.treeview.append_column(gtk.TreeViewColumn('メモリ番地', gtk.CellRendererText(), text=1))
    self.treeview.append_column(gtk.TreeViewColumn('アセンブリ', gtk.CellRendererText(), text=2))
    self.treeview.append_column(gtk.TreeViewColumn('備考', gtk.CellRendererText(), text=3))
    col = gtk.TreeViewColumn('id', gtk.CellRendererText(), text=4)<commit_msg>modify x button<commit_after># -*- coding:utf-8 -*-
import sys
import gtk
import gobject
import pango

sys.path.append("python-h8simulator")
from simpleh8simulator import *

class H8SimGUI :
  def __init__(self) :
    self.builder = gtk.Builder()
    self.builder.add_from_file("gui.glade")

    self.window = self.builder.get_object("window1")
    self.filechooserdialog = self.builder.get_object("filechooserdialog1")
    self.treeview = self.builder.get_object("treeview1")
    
    self.menu_open_item = self.builder.get_object("imagemenuitem2")
    self.menu_exit_item = self.builder.get_object("imagemenuitem5")
    
    self.dis_assembly = self.builder.get_object("textview1")
    self.run_button = self.builder.get_object("button1")
    self.step_button = self.builder.get_object("button2")
    self.reset_button = self.builder.get_object("button3")
    
    self.fdialog_ok_button = self.builder.get_object("button4")
    self.fdialog_cancel_button = self.builder.get_object("button5")
    
    self.fdialog_ok_button.connect("clicked", self.hideFileChooserDialog)
    self.menu_open_item.connect("activate", self.showFileChooserDialog)
    self.menu_exit_item.connect("activate", self.exit)
    self.run_button.connect("clicked", self.sim_run)
    self.step_button.connect("clicked", self.sim_step)
    self.reset_button.connect("clicked", self.sim_reset)
    self.window.connect("destroy", self.exit);

    self.treeview.modify_font(pango.FontDescription('Courier'))
    self.treeview.append_column(gtk.TreeViewColumn('', gtk.CellRendererText(), text=0))
    self.treeview.append_column(gtk.TreeViewColumn('メモリ番地', gtk.CellRendererText(), text=1))
    self.treeview.append_column(gtk.TreeViewColumn('アセンブリ', gtk.CellRendererText(), text=2))
    self.treeview.append_column(gtk.TreeViewColumn('備考', gtk.CellRendererText(), text=3))
    col = gtk.TreeViewColumn('id', gtk.CellRendererText(), text=4)
{'fraction_non_alphanumeric': 0.13747054202670855, 'fraction_numerical': 0.010473946059177796, 'mean_word_length': 5.141479099678457, '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': '4676410', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1294, 'n_words': 149}