Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/b/l/blockBox-HEAD/blockbox/server.py   blockBox(Download)
from blockbox.constants import *
from blockbox.globals import *
from blockbox.heartbeat import Heartbeat
from blockbox.irc_client import ChatBotFactory
from blockbox.persistence import PersistenceEngine as Persist
        self.loops["printinfo"].start(60)
        if self.config["use_blockbeat"] or self.config["send_heartbeat"]:
            self.heartbeat = Heartbeat(self)
        if self.config["use_irc"]:
            self.irc_relay = ChatBotFactory(self)
        if (time.time() - self.last_heartbeat) > 180 and (self.config["use_blockbeat"] or self.config["send_heartbeat"]):
            self.heartbeat = None
            self.heartbeat = Heartbeat(self)
 
    def loadArchive(self, filename):