original_docstring: Check that the range of flows ignored by the consistency is valid.
docstring: Check that the range of flows ignored by the consistency is valid.
docstring_tokens: Check that the range of flows ignored by the consistency is valid .
code: def _validate_range(values):
      """Check that the range of flows ignored by the consistency is valid."""
      if len(values) != 2:
          msg = f"The tuple must have 2 items, not {len(values)}"
          raise ValueError(msg)
      first, second = values
      if not isinstance(first, int) or not isinstance(second, int):
          msg = f"Expected a tuple of integers, received {values}"
          raise TypeError(msg)
      if second < first:
          msg = f"The first value is bigger than the second: {values}"
          raise ValueError(msg)
code_tokens: def _validate_range ( values ) : if len ( values ) != 2 : msg = f"The tuple must have 2 items, not {len(values)}" raise ValueError ( msg ) first , second = values if not isinstance ( first , int ) or not isinstance ( second , int ) : msg = f"Expected a tuple of integers, received {values}" raise TypeError ( msg ) if second < first : msg = f"The first value is bigger than the second: {values}" raise ValueError ( msg )
short_docstring: Check that the range of flows ignored by the consistency is valid.
short_docstring_tokens: Check that the range of flows ignored by the consistency is valid .
comment: """Check that the range of flows ignored by the consistency is valid."""