def extract_name(cert):
  if cert in "subject" and len(cert["subject"]) >= 0:
    s = cert["subject"]
    for x in s:
      if x[0][0] == "commonName":
        return x[0][1]
dataset/ETHPy150Open tweksteen/burst/burst/cert.py/extract_name/swapped operands of `in`