def _get_django_vars():
    import re
    from django.test.testcases import TransactionTestCase
    camelcase = re.compile('([a-z][A-Z]|[A-Z][a-z])')

    def insert_underscore(m):
            """Insert an appropriate underscore into the name."""
            a, b = m.group(0)
            if b.islower():
                return '_{}{}'.format(a, b)
            else:
                return '{}_{}'.format(a, b)

    def pep8(name):
        """Replace camelcase name with PEP8 equivalent."""
        return str(camelcase.sub(insert_underscore, name).lower())

    class Dummy(TransactionTestCase):
        """A dummy test case for gathering current assertion helpers."""

        def nop():
            """A dummy test to get an initialized test case."""
            pass
    dummy_test = Dummy('nop')

    new_names = {}
    for assert_name in [at for at in dir(dummy_test)
                        if at.startswith('assert') and '_' not in at]:
        pepd = pep8(assert_name)
        new_names[pepd] = getattr(dummy_test, assert_name)
    return new_names
Starts collecting data once the workload starts
dataset/ETHPy150Open django-nose/django-nose/django_nose/tools.py/_get_django_vars--crossover with--dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/coreutil/__init__.py/CoreUtilization.start