<commit_before>
class Foo:
    """A simple class"""
    i = 12345
    def bar(self):
        print "Foo.bar in python script invoked"
       	return 'hello world'
    def blok(self,fn):
        print "before invoke: " + str(fn)
        fn()
        print "after invoke: " + str(fn)
    def grok(self,obj):
		print "passed to me: " + str(obj.a)
		return obj.f
    def dom(self,dom,i):
        print "before invoke dom"
        el = dom.getElementById(i)
        print "after invoke dom = " + str(el)
        return el
    def win(self,window):
	    return window.title
		
tiBind("foopy",Foo()) 

print "hello, world from inside Python module!"

f = Foo()
print f.bar()

f.blok(f.bar)

print "python module script now loaded...."
<commit_msg>fix for binding<commit_after>
class Foo:
    """A simple class"""
    i = 12345
    def bar(self):
        print "Foo.bar in python script invoked"
       	return 'hello world'
    def blok(self,fn):
        print "before invoke: " + str(fn)
        fn()
        print "after invoke: " + str(fn)
    def grok(self,obj):
		print "passed to me: " + str(obj.a)
		return obj.f
    def dom(self,dom,i):
        print "before invoke dom"
        el = dom.getElementById(i)
        print "after invoke dom = " + str(el)
        return el
    def win(self,window):
	    return window.title
		
Titanium.set("foopy",Foo(),Titanium) 

print "hello, world from inside Python module!"

f = Foo()
print f.bar()

f.blok(f.bar)

print "python module script now loaded...."

{'fraction_non_alphanumeric': 0.13226452905811623, 'fraction_numerical': 0.006680026720106881, 'mean_word_length': 2.4045454545454548, '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': '2334138', 'n_tokens_mistral': 526, 'n_tokens_neox': 493, 'n_words': 156}