def GetCodeReviewSetting(key):
  """Returns a value for the given key for this repository."""
  global read_gcl_info
  if not read_gcl_info:
    read_gcl_info = True
    # First we check if we have a cached version.
    cached_settings_file = os.path.join(GetInfoDir(), CODEREVIEW_SETTINGS_FILE)
    if (not os.path.exists(cached_settings_file) or
        60*60*24*3 > os.stat(cached_settings_file).st_mtime):
      dir_info = GetSVNFileInfo(".")
      repo_root = dir_info["Repository Root"]
      url_path = dir_info["URL"]
      settings = ""
      while True:
        # Look for the codereview.settings file at the current level.
        svn_path = url_path + "/" + CODEREVIEW_SETTINGS_FILE
        settings, rc = RunShellWithReturnCode(["svn", "cat", svn_path])
        if not rc:
          # Exit the loop if the file was found.
          break
        # Make sure to mark settings as empty if not found.
        settings = ""
        if url_path == repo_root:
          # Reached the root. Abandoning search.
          break;
        # Go up one level to try again.
        url_path = os.path.dirname(url_path)

      # Write a cached version even if there isn't a file, so we don't try to
      # fetch it each time.
      WriteFile(cached_settings_file, settings)

    output = ReadFile(cached_settings_file)
    for line in output.splitlines():
      if not line or line.startswith("#"):
        continue
      k, v = line.split(": ", 1)
      CODEREVIEW_SETTINGS[k] = v
  return CODEREVIEW_SETTINGS.get(key, "")
dataset/ETHPy150Open CollabQ/CollabQ/bin/gcl.py/GetCodeReviewSetting/swapped operands of `>`