<commit_before># <NAME> <<EMAIL>>

##____________________________________________________________________________||
class WritePandasDataFrameToFile(object):
    def __init__(self, outPath):
        self._outPath = outPath

    def deliver(self, results):
        f = open(self._outPath, 'w')
        results.to_string(f, index = False)
        f.close()

##____________________________________________________________________________||<commit_msg>stop writing empty results<commit_after># <NAME> <<EMAIL>>

##____________________________________________________________________________||
class WritePandasDataFrameToFile(object):
    def __init__(self, outPath):
        self._outPath = outPath

    def deliver(self, results):
        if len(results.index) == 0: return
        f = open(self._outPath, 'w')
        results.to_string(f, index = False)
        f.close()

##____________________________________________________________________________||
{'fraction_non_alphanumeric': 0.10294117647058823, 'fraction_numerical': 0.0010504201680672268, 'mean_word_length': 4.95625, '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': '7045401', 'n_tokens_mistral': 224, 'n_tokens_neox': 220, 'n_words': 47}