<commit_before># -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4

import sys
import warnings

# hack for import funkiness together with flumotion.twisted.reflect.namedAny
from twisted.internet import reactor

from flumotion.common import registry, common
from flumotion.twisted import reflect

exitCode = 0

# count DeprecationWarning as an error
_old_showwarning = warnings.showwarning


def showwarning(message, category, filename, lineno, file=None, line=None):
    _old_showwarning(message, category, filename, lineno, file, line=line)
    if category is not DeprecationWarning:
        return
    # uncomment to see better where the problem comes from when it claims<commit_msg>drop line, for python 2.4<commit_after># -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4

import sys
import warnings

# hack for import funkiness together with flumotion.twisted.reflect.namedAny
from twisted.internet import reactor

from flumotion.common import registry, common
from flumotion.twisted import reflect

exitCode = 0

# count DeprecationWarning as an error
_old_showwarning = warnings.showwarning


def showwarning(message, category, filename, lineno, file=None, line=None):
    # python 2.4 does not have line as a kwarg
    _old_showwarning(message, category, filename, lineno, file)
    if category is not DeprecationWarning:
        return
    # uncomment to see better where the problem comes from when it claims
{'fraction_non_alphanumeric': 0.07496463932107496, 'fraction_numerical': 0.008486562942008486, 'mean_word_length': 4.752032520325203, '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': '3799547', 'n_tokens_mistral': 423, 'n_tokens_neox': 410, 'n_words': 147}