<commit_before><?php

/**
 * @file
 * Contains DoSomethingCampaignsResource.
 */
class DoSomethingCampaignsResource extends RestfulEntityBaseNode {

  /**
   * Overrides RestfulEntityBaseNode::publicFieldsInfo().
   */
  public function publicFieldsInfo() {
    $public_fields = parent::publicFieldsInfo();

    $public_fields['type'] = array(
      'property' => 'field_campaign_type',
    );

    $public_fields['status'] = array(
      'property' => 'field_campaign_status',
    );

    $public_fields['call_to_action'] = array(
      'property' => 'field_call_to_action',
    );

    $public_fields['on_mobile_app'] = array(
      'property' => 'field_on_mobile_app',
    );

    // This is so wtf.
    // If I name it as 'cover_image' it doesn't work.
    // If I name it as just 'image' it works.
    $public_fields['image'] = array(
      'property' => 'field_image_campaign_cover',
      'resource' => array(
        'image' => 'assets',
      ),
    );

    $public_fields['primary_cause'] = array(
      'property' => 'field_primary_cause',
      'resource' => array(
        'cause' => 'terms',
      ),
    );

    $public_fields['cause'] = array(
      'property' => 'field_cause',
      'resource' => array(
        'cause' => 'terms',
      ),<commit_msg>Looks like cover_image works fine<commit_after><?php

/**
 * @file
 * Contains DoSomethingCampaignsResource.
 */
class DoSomethingCampaignsResource extends RestfulEntityBaseNode {

  /**
   * Overrides RestfulEntityBaseNode::publicFieldsInfo().
   */
  public function publicFieldsInfo() {
    $public_fields = parent::publicFieldsInfo();

    $public_fields['type'] = array(
      'property' => 'field_campaign_type',
    );

    $public_fields['status'] = array(
      'property' => 'field_campaign_status',
    );

    $public_fields['call_to_action'] = array(
      'property' => 'field_call_to_action',
    );

    $public_fields['on_mobile_app'] = array(
      'property' => 'field_on_mobile_app',
    );

    $public_fields['cover_image'] = array(
      'property' => 'field_image_campaign_cover',
      'resource' => array(
        'image' => 'assets',
      ),
    );

    $public_fields['primary_cause'] = array(
      'property' => 'field_primary_cause',
      'resource' => array(
        'cause' => 'terms',
      ),
    );

    $public_fields['cause'] = array(
      'property' => 'field_cause',
      'resource' => array(
        'cause' => 'terms',
      ),
{'fraction_non_alphanumeric': 0.15963978714695046, 'fraction_numerical': 0.0, 'mean_word_length': 3.013136288998358, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '3409069', 'n_tokens_mistral': 799, 'n_tokens_neox': 762, 'n_words': 136}