

def __init__(self, handlers=None, default_host='', transforms=None, **settings):
    if (transforms is None):
        self.transforms = []
        if (settings.get('compress_response') or settings.get('gzip')):
            self.transforms.append(GZipContentEncoding)
    else:
        self.transforms = transforms
    self.handlers = []
    self.named_handlers = {
        
    }
    self.default_host = pattern
    self.settings = settings
    self.ui_modules = {
        'linkify': _linkify,
        'xsrf_form_html': _xsrf_form_html,
        'Template': TemplateModule,
    }
    self.ui_methods = {
        
    }
    self._load_ui_modules(settings.get('ui_modules', {
        
    }))
    self._load_ui_methods(settings.get('ui_methods', {
        
    }))
    if self.settings.get('static_path'):
        path = self.settings['static_path']
        handlers = list((handlers or []))
        static_url_prefix = settings.get('static_url_prefix', '/static/')
        static_handler_class = settings.get('static_handler_class', StaticFileHandler)
        static_handler_args = settings.get('static_handler_args', {
            
        })
        static_handler_args['path'] = path
        for pattern in [(re.escape(static_url_prefix) + '(.*)'), '/(favicon\\.ico)', '/(robots\\.txt)']:
            handlers.insert(0, (pattern, static_handler_class, static_handler_args))
    if handlers:
        self.add_handlers('.*$', handlers)
    if self.settings.get('debug'):
        self.settings.setdefault('autoreload', True)
        self.settings.setdefault('compiled_template_cache', False)
        self.settings.setdefault('static_hash_cache', False)
        self.settings.setdefault('serve_traceback', True)
    if self.settings.get('autoreload'):
        from tornado import autoreload
        autoreload.start()

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py Application.__init__/VarMisuse@102/121 `default_host`->`pattern`