<commit_before># <NAME> <<EMAIL>>
from AlphaTwirl.ProgressBar import ProgressReport

##____________________________________________________________________________||
class EventLoopProgressReportWriter(object):
    def write(self, component, event):
        return ProgressReport(name = component.name, done = event.iEvent + 1, total = event.nEvents)

##____________________________________________________________________________||
<commit_msg>add an argument taskid to EventLoopProgressReportWriter.write()<commit_after># <NAME> <<EMAIL>>
from AlphaTwirl.ProgressBar import ProgressReport

##____________________________________________________________________________||
class EventLoopProgressReportWriter(object):
    def write(self, taskid, component, event):
        return ProgressReport(
            name = component.name,
            done = event.iEvent + 1,
            total = event.nEvents,
            taskid = taskid
        )

##____________________________________________________________________________||

{'fraction_non_alphanumeric': 0.0801564027370479, 'fraction_numerical': 0.0019550342130987292, 'mean_word_length': 5.440251572327044, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3951585', 'n_tokens_mistral': 209, 'n_tokens_neox': 206, 'n_words': 51}