def get_example_rules(examples):
  """Returns the example rules with one rule for each example."""
  current_rules = set()
  # Add a rule for each example.
  for source_str, target_str in examples:
    rule = _example_to_rule(source_str, target_str)
    current_rules.add(rule)
  logging.info("Added example rules: %s.", len(current_rules))
  return current_rules
Returns the example rules with one rule for each example.
language/compgen/csl/induction/induction_utils.py