<commit_before><?php

class SentryLoggerRegistration extends PhabricatorAutoEventListener {
  public function register() {
    $sentry_dsn = PhabricatorEnv::getEnvConfigIfExists('sentry.dsn');
    if (empty($sentry_dsn)) {
      return;
    }

    $client = new Raven_Client($sentry_dsn);

    SentryLogger::setClient($client);
    PhutilErrorHandler::setErrorListener(array('SentryLogger', 'handleErrors'));
  }
}<commit_msg>Stub out handleEvent on registration<commit_after><?php

class SentryLoggerRegistration extends PhabricatorAutoEventListener {
  public function register() {
    $sentry_dsn = PhabricatorEnv::getEnvConfigIfExists('sentry.dsn');
    if (empty($sentry_dsn)) {
      return;
    }

    $client = new Raven_Client($sentry_dsn);

    SentryLogger::setClient($client);
    PhutilErrorHandler::setErrorListener(array('SentryLogger', 'handleErrors'));
  }

  // must be stubbed due to parent class
  public function handleEvent(PhutilEvent $event) {
  }
}
{'fraction_non_alphanumeric': 0.11613566289825282, 'fraction_numerical': 0.0, 'mean_word_length': 5.243589743589744, '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': '4617908', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 53}