old_contents: import logging
  import time
  
  from flask import request
  
  from content import app, redis
  
  PLUGIN_SET = "statistics:plugins"
  # (plugin_name): set(plugin_version)
  PLUGIN_VERSION_LIST = "statistics:live:{}:versions"
  # (plugin_name, plugin_version): zset(server_guid: expiration_time)
  VERSION_SERVER_HASH = "statistics:live:{}:version:{}:servers"
  # (plugin_name, server_guid): hash("players": player_count, "server": server_version)
  SERVER_DATA_SET = "statistics:live:{}:server:{}:data"
  # (plugin_name): list(recorded_time)
  RECORD_LIST = "statistics:{}:record-list"
  # (plugin_name, recorded_time): hash(plugin_version: plugin_count)
  RECORD_PLUGIN_VERSION_PLUGIN_COUNTS = "statistics:{}:record:{}:version-counts"
  # (plugin_name, recorded_time): int
  RECORD_TOTAL_PLAYERS = "statistics:{}:record:{}:total-player-count"
  # (plugin_name, recorded_time): set(plugin_version)
  RECORD_PLUGIN_VERSIONS = "statistics:{}:record:{}:versions"
  # (plugin_name, recorded_time, plugin_version): hash(server_version: plugin_count)
  RECORD_SERVER_VERSION_PLUGIN_COUNTS = "statistics:{}:record:{}:version:{}:server-version-counts"
  
  
  @app.route("/statistics/v1/<plugin>/post", methods=["POST"])
  def statistics_record(plugin):
      if request.content_length > 512:
          return """Error: too large of a message""", 400
      json = request.get_json()
      if json is None:
          logging.info("Non-json data sent to plugin/skywars/post: {}", request.get_data().decode())
          return """Error: invalid data""", 400
  
      guid = json["guid"]
      plugin_version = json["plugin_version"]
      server_version = json["server_version"]
      player_count = json["player_count"]
  
      if (guid is None or plugin_version is None or player_count is None
          or server_version is None or not isinstance(player_count, int)):
          logging.info("Invalid request to skywars statistics: {}", json)
          return """Error: invalid data""", 400
  
      plugin = plugin.lower().strip()
  
      pipe = redis.pipeline(transaction=True)
  
      pipe.sadd(PLUGIN_SET, plugin)
      pipe.sadd(PLUGIN_VERSION_LIST.format(plugin), plugin_version)
  
      servers_hash_key = VERSION_SERVER_HASH.format(plugin, plugin_version)
      expiration_time = int(time.time()) + 2 * 60 * 60  # expires in two hours
      pipe.zadd(servers_hash_key, expiration_time, guid)
  
      data_key = SERVER_DATA_SET.format(plugin, guid)
      pipe.hmset(data_key, {"players": player_count, "server": server_version})
      pipe.expire(data_key, 2 * 61 * 60)  # one minute after key above expires
  
      pipe.execute()
      return """Data successfully submitted""", 200
  
new_contents: import logging
  import time
  
  from flask import request
  
  from content import app, redis
  
  PLUGIN_SET = "statistics:plugins"
  # (plugin_name): set(plugin_version)
  PLUGIN_VERSION_LIST = "statistics:live:{}:versions"
  # (plugin_name, plugin_version): zset(server_guid: expiration_time)
  VERSION_SERVER_HASH = "statistics:live:{}:version:{}:servers"
  # (plugin_name, server_guid): hash("players": player_count, "server": server_version)
  SERVER_DATA_SET = "statistics:live:{}:server:{}:data"
  # (plugin_name): list(recorded_time)
  RECORD_LIST = "statistics:{}:record-list"
  # (plugin_name, recorded_time): hash(plugin_version: plugin_count)
  RECORD_PLUGIN_VERSION_PLUGIN_COUNTS = "statistics:{}:record:{}:version-counts"
  # (plugin_name, recorded_time): int
  RECORD_TOTAL_PLAYERS = "statistics:{}:record:{}:total-player-count"
  # (plugin_name, recorded_time): set(plugin_version)
  RECORD_PLUGIN_VERSIONS = "statistics:{}:record:{}:versions"
  # (plugin_name, recorded_time, plugin_version): hash(server_version: plugin_count)
  RECORD_SERVER_VERSION_PLUGIN_COUNTS = "statistics:{}:record:{}:version:{}:server-version-counts"
  
  
  @app.route("/statistics/v1/<plugin>/post", methods=["POST"])
  def statistics_record(plugin):
      if request.content_length > 512:
          return """Error: too large of a message""", 400
      json = request.get_json()
      if json is None:
          logging.info("Non-json data sent to plugin/skywars/post: {}", request.get_data().decode())
          return """Error: invalid data""", 400
  
      guid = json["instance_uuid"]
      plugin_version = json["plugin_version"]
      server_version = json["server_version"]
      player_count = json["player_count"]
  
      if (guid is None or plugin_version is None or player_count is None
          or server_version is None or not isinstance(player_count, int)):
          logging.info("Invalid request to skywars statistics: {}", json)
          return """Error: invalid data""", 400
  
      plugin = plugin.lower().strip()
  
      pipe = redis.pipeline(transaction=True)
  
      pipe.sadd(PLUGIN_SET, plugin)
      pipe.sadd(PLUGIN_VERSION_LIST.format(plugin), plugin_version)
  
      servers_hash_key = VERSION_SERVER_HASH.format(plugin, plugin_version)
      expiration_time = int(time.time()) + 2 * 60 * 60  # expires in two hours
      pipe.zadd(servers_hash_key, expiration_time, guid)
  
      data_key = SERVER_DATA_SET.format(plugin, guid)
      pipe.hmset(data_key, {"players": player_count, "server": server_version})
      pipe.expire(data_key, 2 * 61 * 60)  # one minute after key above expires
  
      pipe.execute()
      return """Data successfully submitted""", 200
  
subject: Rename one parameter