<commit_before>import requestPromise from 'request-promise';

export default class Maestro {
  constructor(customerUID, secretToken, URL) {
    this.customerUID = customerUID;
    this.secretToken = <PASSWORD>;
    this.URL = URL;
  }

  async createConferenceCall(name, maxReservations, startDate, duration, {contactEmail=null, greenroom=null, recording=null, backgroundMusic=null}={}) {

    var postParams = {contactEmail, greenroom, recording, backgroundMusic}

    Object.keys(postParams).forEach((key) => typeof postParams[key] === 'undefined' ? delete postParams[key] : true)
    Object.assign(postParams, {
      customer: this.customerUID,
      key: this.secretToken,
      name: name,
      reservationCount: 1,
      estimatedCallers1: maxReservations,
      startDate1: startDate,
      duration1: duration
    });

    var options = {
      uri: this.URL + '/createConferenceReserved',
      method: 'POST',
      form: postParams,
      json: true
    }

    return await requestPromise(options);
  }
}<commit_msg>Just have maestro return a promise<commit_after>import requestPromise from 'request-promise';

export default class Maestro {
  constructor(customerUID, secretToken, URL) {
    this.customerUID = customerUID;
    this.secretToken = <PASSWORD>Token;
    this.URL = URL;
  }

  createConferenceCall(name, maxReservations, startDate, duration, {contactEmail=null, greenroom=null, recording=null, backgroundMusic=null}={}) {

    var postParams = {contactEmail, greenroom, recording, backgroundMusic}

    Object.keys(postParams).forEach((key) => typeof postParams[key] === 'undefined' ? delete postParams[key] : true);

    Object.assign(postParams, {
      customer: this.customerUID,
      key: this.secretToken,
      name: name,
      reservationCount: 1,
      estimatedCallers1: maxReservations,
      startDate1: startDate,
      duration1: duration
    });

    var options = {
      uri: this.URL + '/createConferenceReserved',
      method: 'POST',
      form: postParams,
      json: true
    }

    return requestPromise(options);
  }
}
{'fraction_non_alphanumeric': 0.11137897782063645, 'fraction_numerical': 0.003857280617164899, 'mean_word_length': 3.7052154195011338, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4060016', 'n_tokens_mistral': 610, 'n_tokens_neox': 598, 'n_words': 139}