<commit_before><?php

class CRM_Civirules_Utils_ObjectName {

  /**
   * Method to convert the object name to the entity for contacts
   *
   * @param string $objectName
   * @return string $entity
   * @access public
   * @static
   */
  public static function convertToEntity($objectName) {
    $entity = $objectName;
    switch($objectName) {
      case 'Individual':
      case 'Household':
      case 'Organization':
        $entity = 'contact';
        break;
    }
    return $entity;
  }

}<commit_msg>fixed #16 a contact update with a Profile is a contact entity<commit_after><?php

class CRM_Civirules_Utils_ObjectName {

  /**
   * Method to convert the object name to the entity for contacts
   *
   * @param string $objectName
   * @return string $entity
   * @access public
   * @static
   */
  public static function convertToEntity($objectName) {
    $entity = $objectName;
    switch($objectName) {
      case 'Individual':
      case 'Household':
      case 'Organization':
      case 'Profile':
        $entity = 'contact';
        break;
    }
    return $entity;
  }

}
{'fraction_non_alphanumeric': 0.10458715596330276, 'fraction_numerical': 0.001834862385321101, 'mean_word_length': 2.685810810810811, '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': '800106', 'n_tokens_mistral': 334, 'n_tokens_neox': 321, 'n_words': 95}