def __init__(self, accounts=None, debug=False):
        self.datastore = datastore.Datastore()
        if not accounts:
            accounts = Account.query.filter(Account.third_party==False).filter(Account.active==True).all()
            self.accounts = [account.name for account in accounts]
        else:
            self.accounts = accounts
        self.debug = debug
        self.created_items = []
        self.deleted_items = []
        self.changed_items = []
        self.ephemeral_items = []
        # TODO: grab these from DB, keyed on account
        self.rate_limit_delay = 0
        self.interval = 15
        self.honor_ephemerals = False
        self.ephemeral_paths = []
Start listening on the endpoint.
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/watcher.py/Watcher.__init__--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/application/internet.py/StreamServerEndpointService.privilegedStartService