docs: def init_app(state):
      """
      Prepare the Flask application for Flask-Split.
  
      :param state: :class:`BlueprintSetupState` instance
      """
      app = state.app
  
      app.config.setdefault('SPLIT_ALLOW_MULTIPLE_EXPERIMENTS', False)
      app.config.setdefault('SPLIT_DB_FAILOVER', False)
      app.config.setdefault('SPLIT_IGNORE_IP_ADDRESSES', [])
      app.config.setdefault('SPLIT_ROBOT_REGEX', r"""
          (?i)\b(
              Baidu|
              Gigabot|
              Googlebot|
              libwww-perl|
              lwp-trivial|
              msnbot|
              SiteUptime|
              Slurp|
              WordPress|
              ZIBB|
              ZyBorg
          )\b
      """)
  
      app.jinja_env.globals.update({
          'ab_test': ab_test,
          'finished': finished
      })
  
      @app.template_filter()
      def percentage(number):
          number *= 100
          if abs(number) < 10:
              return "%.1f%%" % round(number, 1)
          else:
              return "%d%%" % round(number)