<commit_before>import Resource from '../ClassyResource';

class Campaigns extends Resource {
  constructor(Classy) {
    super(Classy, {
      basic: ['retrieve', 'update'],
      lists: [
        'activity',
        'admins',
        'credential-sets',
        'donation-matching-plans',
        'ecards',
        'faqs',
        'fundraising-pages',
        'fundraising-teams',
        'messages',
        'posts',
        'questions',
        'recurring-donation-plans',
        'transactions',
        'ticket-types'
      ],
      creates: [
        'appeal-sets',
        'credential-sets',
        'donation-matching-plans',
        'ecards',
        'faqs',
        'fundraising-pages',
        'messages',
        'posts',
        'questions',
        'ticket-types',
        'transactions'
      ],
      path: '/campaigns'
    });

    /** Custom */
    this.publish = this.createMethod({
      method: 'POST',
      path: '/{id}/publish'
    });

    this.unpublish = this.createMethod({
      method: 'POST',
      path: '/{id}/unpublish'
    });

    this.deactivate = this.createMethod({
      method: 'POST',
      path: '/{id}/deactivate'
    });

    /** Retrieves */
    this.retrieveAppealSet = this.createMethod({
      method: 'GET',
      path: '/{id}/appeal-set'
    });

    this.retrieveTheme = this.createMethod({
      method: 'GET',
      path: '/{id}/themes'
    });

    this.retrieveOverview = this.createMethod({
      method: 'GET',
      path: '/{id}/overview'
    });

    this.retrieveCustomUrl = this.createMethod({
      method: 'GET',
      path: '/{id}/customUrl'
    })

  }
}

export default Campaigns;<commit_msg>fixed spacing<commit_after>import Resource from '../ClassyResource';

class Campaigns extends Resource {
  constructor(Classy) {
    super(Classy, {
      basic: ['retrieve', 'update'],
      lists: [
        'activity',
        'admins',
        'credential-sets',
        'donation-matching-plans',
        'ecards',
        'faqs',
        'fundraising-pages',
        'fundraising-teams',
        'messages',
        'posts',
        'questions',
        'recurring-donation-plans',
        'transactions',
        'ticket-types'
      ],
      creates: [
        'appeal-sets',
        'credential-sets',
        'donation-matching-plans',
        'ecards',
        'faqs',
        'fundraising-pages',
        'messages',
        'posts',
        'questions',
        'ticket-types',
        'transactions'
      ],
      path: '/campaigns'
    });

    /** Custom */
    this.publish = this.createMethod({
      method: 'POST',
      path: '/{id}/publish'
    });

    this.unpublish = this.createMethod({
      method: 'POST',
      path: '/{id}/unpublish'
    });

    this.deactivate = this.createMethod({
      method: 'POST',
      path: '/{id}/deactivate'
    });

    /** Retrieves */
    this.retrieveAppealSet = this.createMethod({
      method: 'GET',
      path: '/{id}/appeal-set'
    });

    this.retrieveTheme = this.createMethod({
      method: 'GET',
      path: '/{id}/themes'
    });

    this.retrieveOverview = this.createMethod({
      method: 'GET',
      path: '/{id}/overview'
    });

    this.retrieveCustomUrl = this.createMethod({
      method: 'GET',
      path: '/{id}/customUrl'
    });

  }
}

export default Campaigns;
{'fraction_non_alphanumeric': 0.1649080494422671, 'fraction_numerical': 0.0, 'mean_word_length': 1.8902439024390243, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1045791', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1020, 'n_words': 178}