def ConfigurationFixups(self, config):
    """Ensure that gold-q and key-q are set from fixed-q. """
    key_q_value = config.GetValue('key-q')
    fixed_q = float(key_q_value) * 2.0
    gold_q = float(fixed_q) / 1.5
    if fixed_q > 63:
      fixed_q = 63
    if gold_q > 63:
      gold_q = 63
    config = config.ChangeValue('gold-q', str(int(gold_q)))
    config = config.ChangeValue('fixed-q', str(int(fixed_q)))
    return config
dataset/ETHPy150Open google/compare-codecs/lib/vp8_mpeg_1d.py/Vp8CodecMpeg1dMode.ConfigurationFixups/original