<commit_before>from gi.repository import Zeitgeist, GObject
import time

log = Zeitgeist.Log.get_default()
mainloop = GObject.MainLoop()

def on_events_inserted(log, time_range, events):
    print "==="

ev = Zeitgeist.Event();
ev.set_property("interpretation", "foo://Interp");
ev.set_property("timestamp", time.time()*1000);
ev.debug_print()
log.insert_event(ev, None, on_events_inserted, None)

mainloop.run()<commit_msg>Remove debug prints from tests<commit_after>from gi.repository import Zeitgeist, GObject
import time

log = Zeitgeist.Log.get_default()
mainloop = GObject.MainLoop()

def on_events_inserted(log, time_range, events):
    print events

ev = Zeitgeist.Event();
ev.set_property("interpretation", "foo://Interp");
ev.set_property("timestamp", time.time()*1000);
ev.debug_print()
log.insert_event(ev, None, on_events_inserted, None)

mainloop.run()
{'fraction_non_alphanumeric': 0.1420323325635104, 'fraction_numerical': 0.009237875288683603, 'mean_word_length': 6.954128440366972, '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': '3079778', 'n_tokens_mistral': 301, 'n_tokens_neox': 294, 'n_words': 60}