<commit_before><?php
use CRM_Crowdfunding_ExtensionUtil as E;

/**
 * Contribution.Refreshcrowdfundingdata API specification (optional)
 * This is used for documentation and validation.
 *
 * @param array $spec description of fields supported by this API call
 * @return void
 * @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards
 */
function _civicrm_api3_contribution_Refreshcrowdfundingdata_spec(&$spec) {
  $spec['contribution']['api.required'] = 1;
}

/**
 * Contribution.Refreshcrowdfundingdata API
 *
 * @param array $params
 * @return array API result descriptor
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 * @throws API_Exception
 */
function civicrm_api3_contribution_Refreshcrowdfundingdata($params) {
  $crowdfunding = new CRM_Crowdfunding();
  $crowdfunding->refreshParentContributionStatus($params['id']);
}
<commit_msg>Minor fix<commit_after><?php
use CRM_Crowdfunding_ExtensionUtil as E;

/**
 * Contribution.Refreshcrowdfundingdata API specification (optional)
 * This is used for documentation and validation.
 *
 * @param array $spec description of fields supported by this API call
 * @return void
 * @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards
 */
function _civicrm_api3_contribution_Refreshcrowdfundingdata_spec(&$spec) {
  $spec['id']['api.required'] = 1;
}

/**
 * Contribution.Refreshcrowdfundingdata API
 *
 * @param array $params
 * @return array API result descriptor
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 * @throws API_Exception
 */
function civicrm_api3_contribution_Refreshcrowdfundingdata($params) {
  $crowdfunding = new CRM_Crowdfunding();
  $crowdfunding->refreshParentContributionStatus($params['id']);
}

{'fraction_non_alphanumeric': 0.10621468926553672, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 6.318181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '126482', 'n_tokens_mistral': 595, 'n_tokens_neox': 559, 'n_words': 115}