<commit_before>Number zero? = method(
  "Returns true if this number is zero.",
  @ == 0
)

Number negation = method(
  "Returns the negation of this number",

  0 - @)

Number abs = method(
  "Returns the absolute value of this number",
  if(self < 0, negation, self)
)

Number          do(=== = generateMatchMethod(==))
Number Real     do(=== = generateMatchMethod(==))
Number Rational do(=== = generateMatchMethod(==))
Number Decimal  do(=== = generateMatchMethod(==))

Number Integer odd? = method(
  (@ % 2) != 0
)

Number Integer even? = method(
  (@ % 2) == 0
)<commit_msg>Add documentation to new Integer methods<commit_after>Number zero? = method(
  "Returns true if this number is zero.",
  @ == 0
)

Number negation = method(
  "Returns the negation of this number",

  0 - @)

Number abs = method(
  "Returns the absolute value of this number",
  if(self < 0, negation, self)
)

Number          do(=== = generateMatchMethod(==))
Number Real     do(=== = generateMatchMethod(==))
Number Rational do(=== = generateMatchMethod(==))
Number Decimal  do(=== = generateMatchMethod(==))

Number Integer odd? = method(
  "Returns true if this number is odd, false otherwise",
  (@ % 2) != 0
)

Number Integer even? = method(
  "Returns true if this number is even, false otherwise",
  (@ % 2) == 0
)
{'fraction_non_alphanumeric': 0.1490015360983103, 'fraction_numerical': 0.010752688172043012, 'mean_word_length': 3.7554744525547443, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5598375', 'n_tokens_mistral': 418, 'n_tokens_neox': 402, 'n_words': 147}