def __init__(self, apps=None, cycles=1, \
            use_coin=True, spamlibs=None, single_transaction=True):
        if spamlibs is None:
            spamlibs = getattr(settings, 'DILLA_SPAMLIBS', [])
        spamlibs.insert(0, 'dilla.spammers')
        for lib in spamlibs:
            log.debug('Importing spamlib %s' % lib)
            self._dyn_import(lib)

        app_list = apps or getattr(settings, 'DILLA_APPS', None)
        assert app_list is not None, \
        "Either you have not provided Dilla.apps \
        parameter or settings.DILLA_APPS \
        is missing"
        self.spam_registry = spam
        self.apps = app_list
        self.cycles = cycles
        self.use_coin = use_coin
        self.appmodels = {}
        self.current = None
        self.rows_affected = 0
        self.fields_spammed = 0
        self.fields_omitted = 0
dataset/ETHPy150Open aerosol/django-dilla/dilla/__init__.py/Dilla.__init__/original