<commit_before>import morepath

class App(morepath.App):
	pass

@App.path(path='')
class Root(object):
	pass

@App.html(model=Root)
def hello_word(self, request):
	file_obj = open('index.html', 'r')
	result = file_obj.read()
	file_obj.close()
	return result #"Hello world!"

if __name__ == '__main__':
	config=morepath.setup()
	config.scan()
	config.commit()
	morepath.run(App())<commit_msg>tabs to spaces & main function<commit_after>import morepath

class App(morepath.App):
    pass

@App.path(path='')
class Root(object):
    pass

@App.html(model=Root)
def hello_word(self, request):
    file_obj = open('index.html', 'r')
    result = file_obj.read()
    file_obj.close()
    return result #"Hello world!"

def main():
    config=morepath.setup()
    config.scan()
    config.commit()
    morepath.run(App())

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.16178194607268465, 'fraction_numerical': 0.0, 'mean_word_length': 4.4743589743589745, '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': '1319532', 'n_tokens_mistral': 313, 'n_tokens_neox': 308, 'n_words': 66}