<commit_before>import os
from PyQt4 import QtGui
import configobj
import configobj_gui

def main():
	datadir = os.path.dirname(__file__)
	specfile = os.path.join(datadir,'spec.txt')
	conffile = os.path.join(datadir,'config.txt')

	spec = configobj.ConfigObj(specfile, list_values=False)
	config = configobj.ConfigObj(conffile, configspec=spec)

	# Instead of creating a ConfigWindow we spawn an external process (will block)
	app = QtGui.QApplication()
	wnd = configobj_gui.ConfigWindow(conf, spec)
	wnd.show()
	app.exec_()
	print config

main()<commit_msg>Fix typo to make example.py work<commit_after>import sys
import os
from PyQt4 import QtGui
import configobj
import configobj_gui

def main():
	datadir = os.path.dirname(__file__)
	specfile = os.path.join(datadir,'spec.txt')
	conffile = os.path.join(datadir,'config.txt')

	spec = configobj.ConfigObj(specfile, list_values=False)
	config = configobj.ConfigObj(conffile, configspec=spec)

	# Instead of creating a ConfigWindow we spawn an external process (will block)
	app = QtGui.QApplication(sys.argv)
	wnd = configobj_gui.ConfigWindow(config, spec)
	wnd.show()
	app.exec_()
	print config

main()
{'fraction_non_alphanumeric': 0.10745233968804159, 'fraction_numerical': 0.0017331022530329288, 'mean_word_length': 5.637931034482759, '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': '5858060', 'n_tokens_mistral': 402, 'n_tokens_neox': 397, 'n_words': 98}