@oz.action
def server():

    if oz.settings["wsgi_mode"]:
        application = tornado.wsgi.WSGIApplication(oz._routes, **oz.settings)
        srv = wsgiref.simple_server.make_server("", oz.settings["port"], application)
        srv.serve_forever()
    else:
        application = tornado.web.Application(oz._routes, **oz.settings)

        if oz.settings["ssl_cert_file"] != None and oz.settings["ssl_key_file"] != None:
            ssl_options = {
                "certfile": oz.settings["ssl_cert_file"],
                "keyfile": oz.settings["ssl_key_file"],
                "cert_reqs": oz.settings["ssl_cert_reqs"],
                "ca_certs": oz.settings["ssl_ca_certs"]
            }
        else:
            ssl_options = None

        srv = tornado.httpserver.HTTPServer(application, ssl_options=ssl_options)
        srv.bind(oz.settings["port"])

        if oz.settings["debug"]:
            if oz.settings["server_workers"] != 1:
                print("WARNING: Debug is enabled, but multiple server workers have been configured. Only one server worker can run in debug mode.")

            srv.start(1)
        else:
            # Forks multiple sub-processes
            srv.start(oz.settings["server_workers"])
        
        tornado.ioloop.IOLoop.instance().start()
The number of interactions a user had with each of its contacts.
dataset/ETHPy150Open dailymuse/oz/oz/core/actions.py/server--crossover with--dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/individual.py/interactions_per_contact