<commit_before># -*- Mode: Python; test-case-name: flumotion.test.test_greeter -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Flumotion - a streaming media server
# Copyright (C) 2004,2005 Fluendo, S.L. (www.fluendo.com). All rights reserved.

# This file may be distributed and/or modified under the terms of
# the GNU General Public License version 2 as published by
# the Free Software Foundation.
# This file is distributed without any warranty; without even the implied
# warranty of merchantability or fitness for a particular purpose.
# See "LICENSE.GPL" in the source distribution for more information.

# Licensees having purchased or holding a valid Flumotion Advanced
# Streaming Server license may use this file in accordance with the
# Flumotion Advanced Streaming Server Commercial License Agreement.
# See "LICENSE.Flumotion" in the source distribution for more information.

# Headers in this file shall remain intact.

try:
    import gobject
    import gtk
except RuntimeError:
    import os
    os._exit(0)

_INTERVAL = 1 # in ms

_WINDOW = None
def set_window(w):
    global _WINDOW
    _WINDOW = w

_FAILED = False
def assert_not_failed():
    assert not _FAILED

def _assert(expr):
    if not expr:
        raise # to show the backtrace
    FAILED = True

def timeout_add(proc, increase=True):
    def proc_no_return():
        proc()<commit_msg>break build<commit_after># -*- Mode: Python; test-case-name: flumotion.test.test_greeter -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Flumotion - a streaming media server
# Copyright (C) 2004,2005 Fluendo, S.L. (www.fluendo.com). All rights reserved.

# This file may be distributed and/or modified under the terms of
# the GNU General Public License version 2 as published by
# the Free Software Foundation.
# This file is distributed without any warranty; without even the implied
# warranty of merchantability or fitness for a particular purpose.
# See "LICENSE.GPL" in the source distribution for more information.

# Licensees having purchased or holding a valid Flumotion Advanced
# Streaming Server license may use this file in accordance with the
# Flumotion Advanced Streaming Server Commercial License Agreement.
# See "LICENSE.Flumotion" in the source distribution for more information.

# Headers in this file shall remain intact.

try:
    import gobject
    import gtk
except RuntimeError:
    import os
    os._exit(0)

_INTERVAL = 1 # in ms
#_INTERVAL = 300 # in ms

_WINDOW = None
def set_window(w):
    global _WINDOW
    _WINDOW = w

_FAILED = False
def assert_not_failed():
    assert not _FAILED

def _assert(expr):
    if not expr:
        raise # to show the backtrace
    FAILED = True

def timeout_add(proc, increase=True):
    def proc_no_return():
        proc()
{'fraction_non_alphanumeric': 0.07349177330895795, 'fraction_numerical': 0.0113345521023766, 'mean_word_length': 3.851063829787234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5416673', 'n_tokens_mistral': 803, 'n_tokens_neox': 783, 'n_words': 332}