def get_datetime_exact_match(source, target):
  """Return seed rules based on exact match for dates and times."""
  rules = set()
  for arg in ("date", "time"):
    regex = r":%s \( (.+?) \)" % arg
    matches = re.findall(regex, target)
    for match in matches:
      source_rhs = string_utils.format_source(match)
      if source_rhs.lower() not in source.lower():
        continue
      target_rhs = match
      rules.add(
          qcfg_rule.QCFGRule(
              tuple(source_rhs.split(" ")), tuple(target_rhs.split(" ")), 0))
  return rules
Return seed rules based on exact match for dates and times.
language/compgen/csl/tasks/smcalflow/tools/generate_identity_rules.py