<commit_before>from merc.messages import message


class ErrorMessage(Exception, message.Message):
  pass


class Error(ErrorMessage):
  NAME = "ERROR"

  def __init__(self, reason):
    self.reason = reason

  def as_params(self, client):
    return [self.reason]


class SimpleErrorMessage(ErrorMessage):
  def as_params(self, client):
    return [client.displayed_nickname, self.REASON]


class ParametrizedErrorMessage(ErrorMessage):
  ARITY = 2

  def __init__(self, param):
    self.param = param

  def as_params(self, client):
    return [client.displayed_nickname, self.param, self.REASON]


class ErroneousNickname(SimpleErrorMessage):
  NAME = "432"
  REASON = "Erroneous nickname"<commit_msg>no arities required<commit_after>from merc.messages import message


class ErrorMessage(Exception, message.Message):
  pass


class Error(ErrorMessage):
  NAME = "ERROR"

  def __init__(self, reason):
    self.reason = reason

  def as_params(self, client):
    return [self.reason]


class SimpleErrorMessage(ErrorMessage):
  def as_params(self, client):
    return [client.displayed_nickname, self.REASON]


class ParametrizedErrorMessage(ErrorMessage):
  def __init__(self, param):
    self.param = param

  def as_params(self, client):
    return [client.displayed_nickname, self.param, self.REASON]


class ErroneousNickname(SimpleErrorMessage):
  NAME = "432"
  REASON = "Erroneous nickname"
{'fraction_non_alphanumeric': 0.099214846538187, 'fraction_numerical': 0.004996431120628123, 'mean_word_length': 4.817427385892116, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7114186', 'n_tokens_mistral': 468, 'n_tokens_neox': 437, 'n_words': 105}