<commit_before><?php

final class PhabricatorMetaMTAApplicationEmailHeraldField
  extends HeraldField {

  const FIELDCONST = 'application-email';

  public function getHeraldFieldName() {
    return pht('Receiving email address');
  }

  public function supportsObject($object) {
    return $this->getAdapter()->supportsApplicationEmail();
  }

  public function getHeraldFieldValue($object) {
    $phids = array();

    $email = $this->getAdapter()->getApplicationEmail();
    if ($email) {
      $phids[] = $email;
    }

    return $phids;
  }

  protected function getHeraldFieldStandardConditions() {
    return self::STANDARD_LIST;
  }

  public function getHeraldFieldValueType($condition) {
    switch ($condition) {
      case HeraldAdapter::CONDITION_EXISTS:
      case HeraldAdapter::CONDITION_NOT_EXISTS:
        return HeraldAdapter::VALUE_NONE;
      default:
        return HeraldAdapter::VALUE_APPLICATION_EMAIL;
    }<commit_msg>Fix a typo in the new "ApplicationEmailHeraldField"<commit_after><?php

final class PhabricatorMetaMTAApplicationEmailHeraldField
  extends HeraldField {

  const FIELDCONST = 'application-email';

  public function getHeraldFieldName() {
    return pht('Receiving email address');
  }

  public function supportsObject($object) {
    return $this->getAdapter()->supportsApplicationEmail();
  }

  public function getHeraldFieldValue($object) {
    $phids = array();

    $email = $this->getAdapter()->getApplicationEmail();
    if ($email) {
      $phids[] = $email->getPHID();
    }

    return $phids;
  }

  protected function getHeraldFieldStandardConditions() {
    return self::STANDARD_LIST;
  }

  public function getHeraldFieldValueType($condition) {
    switch ($condition) {
      case HeraldAdapter::CONDITION_EXISTS:
      case HeraldAdapter::CONDITION_NOT_EXISTS:
        return HeraldAdapter::VALUE_NONE;
      default:
        return HeraldAdapter::VALUE_APPLICATION_EMAIL;
    }
{'fraction_non_alphanumeric': 0.10499227997941328, 'fraction_numerical': 0.0, 'mean_word_length': 4.11578947368421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '2500954', 'n_tokens_mistral': 586, 'n_tokens_neox': 552, 'n_words': 112}