<commit_before><?php

/**
 * Collection of upgrade steps.
 */
class CRM_SmsConversation_Upgrader extends CRM_SmsConversation_Upgrader_Base {

  // By convention, functions that look like "function upgrade_NNNN()" are
  // upgrade tasks. They are executed in order (like Drupal's hook_update_N).

  public function upgrade_4700() {
    // Set is_active to required, default 1
    $this->ctx->log->info('Applying update 4700');
    CRM_Core_DAO::executeQuery('UPDATE `civicrm_sms_conversation` SET is_active = 1 WHERE is_active = NULL');
    CRM_Core_DAO::executeQuery('ALTER TABLE `civicrm_sms_conversation` CHANGE `is_active` `is_active` TINYINT(4) NOT NULL DEFAULT \'1\' COMMENT \'Is this conversation enabled?\'');
    return TRUE;
  }

}<commit_msg>change style for upgrade SQL<commit_after><?php

/**
 * Collection of upgrade steps.
 */
class CRM_SmsConversation_Upgrader extends CRM_SmsConversation_Upgrader_Base {

  // By convention, functions that look like "function upgrade_NNNN()" are
  // upgrade tasks. They are executed in order (like Drupal's hook_update_N).

  public function upgrade_4700() {
    // Set is_active to required, default 1
    $this->ctx->log->info('Applying update 4700');
    CRM_Core_DAO::executeQuery("UPDATE `civicrm_sms_conversation` SET is_active = 1 WHERE is_active = NULL");
    CRM_Core_DAO::executeQuery("ALTER TABLE `civicrm_sms_conversation` CHANGE `is_active` `is_active` TINYINT(4) NULL DEFAULT '1' COMMENT 'Is this conversation enabled?'");
    return TRUE;
  }

}
{'fraction_non_alphanumeric': 0.10721376571806751, 'fraction_numerical': 0.01588352084712111, 'mean_word_length': 4.8604651162790695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2113576', 'n_tokens_mistral': 509, 'n_tokens_neox': 481, 'n_words': 135}