<commit_before><?php

final class PhabricatorPhurlURLTransaction
  extends PhabricatorApplicationTransaction {

  const TYPE_NAME = 'phurl.name';
  const TYPE_URL = 'phurl.longurl';
  const TYPE_DESCRIPTION = 'phurl.description';

  public function getApplicationName() {
    return 'phurl';
  }

  public function getApplicationTransactionType() {
    return PhabricatorPhurlURLPHIDType::TYPECONST;
  }

  public function getApplicationTransactionCommentObject() {
    return new PhabricatorPhurlURLTransactionComment();
  }

  public function getRequiredHandlePHIDs() {
    $phids = parent::getRequiredHandlePHIDs();

    switch ($this->getTransactionType()) {
      case self::TYPE_NAME:
      case self::TYPE_URL:
      case self::TYPE_DESCRIPTION:
        $phids[] = $this->getObjectPHID();
        break;
    }

    return $phids;
  }
<commit_msg>Fix missing mailtags in PHUrl<commit_after><?php

final class PhabricatorPhurlURLTransaction
  extends PhabricatorApplicationTransaction {

  const TYPE_NAME = 'phurl.name';
  const TYPE_URL = 'phurl.longurl';
  const TYPE_DESCRIPTION = 'phurl.description';

  const MAILTAG_CONTENT = 'phurl:content';
  const MAILTAG_OTHER = 'phurl:other';

  public function getApplicationName() {
    return 'phurl';
  }

  public function getApplicationTransactionType() {
    return PhabricatorPhurlURLPHIDType::TYPECONST;
  }

  public function getApplicationTransactionCommentObject() {
    return new PhabricatorPhurlURLTransactionComment();
  }

  public function getRequiredHandlePHIDs() {
    $phids = parent::getRequiredHandlePHIDs();

    switch ($this->getTransactionType()) {
      case self::TYPE_NAME:
      case self::TYPE_URL:
      case self::TYPE_DESCRIPTION:
        $phids[] = $this->getObjectPHID();
        break;
    }

    return $phids;
  }

{'fraction_non_alphanumeric': 0.09861495844875347, 'fraction_numerical': 0.0, 'mean_word_length': 4.219653179190751, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4153776', 'n_tokens_mistral': 546, 'n_tokens_neox': 533, 'n_words': 108}