<commit_before>var AWS = require("aws-sdk");
var lift = require("when/node").nodefn.lift;

var EB_FUNCTIONS = [
  "createApplications",
  "describeApplications"
];

function ElasticBeanstalk (config) {
  var _this = this;
  this._ebInstance = new AWS.ElasticBeanstalk(config || {});

  // Promisfy and bind all functions on helper `eb` function
  this._eb = {};
  EB_FUNCTIONS.forEach(function (fn) {
    _this._eb[fn] = lift(_this._ebInstance[fn].bind(_this));
  });
}
module.exports = ElasticBeanstalk;

/**
 * Creates an application on AWS.
 *
 * @param {Object} params
 * - {String} ApplicationName
 * - {String} Description
 */

ElasticBeanstalk.prototype.createApplication = function createApplication (params) {
  return this.eb.createApplication(params || {});
};

/**
 * Returns description of Application on AWS.
 *
 * @param {Object} params
 * - {Array} ApplicationNames
 */
ElasticBeanstalk.prototype.describeApplications = function describeApplications (params) {
  return this.eb.describeApplications(params);
};<commit_msg>Add eb.describeEnvironments<commit_after>var AWS = require("aws-sdk");
var lift = require("when/node").nodefn.lift;

var EB_FUNCTIONS = [
  "createApplications",
  "describeApplications",
  "describeEnvironments"
];

function ElasticBeanstalk (config) {
  var _this = this;
  this._ebInstance = new AWS.ElasticBeanstalk(config || {});

  // Promisfy and bind all functions on helper `eb` function
  this._eb = {};
  EB_FUNCTIONS.forEach(function (fn) {
    _this._eb[fn] = lift(_this._ebInstance[fn].bind(_this));
  });
}
module.exports = ElasticBeanstalk;

/**
 * Creates an application on AWS.
 *
 * @param {Object} params
 * - {String} ApplicationName
 * - {String} Description
 */

ElasticBeanstalk.prototype.createApplication = function createApplication (params) {
  return this.eb.createApplication(params || {});
};

/**
 * Returns description of Applications on AWS.
 *
 * @param {Object} params
 * - {Array} ApplicationNames
 */
ElasticBeanstalk.prototype.describeApplications = function describeApplications (params) {
  return this.eb.describeApplications(params);
};

/**
 * Returns description of Environments on AWS.
 *
 * @param {Object} params
 * - {String} ApplicationName
 * - {[String]} EnvironmentIds
 * - {[String]} EnvironmentNames
 * - {Boolean} IncludeDeleted
 * - {Mixed} IncludeDeletedBackTo
 * - {String} VersionLabel
 */
ElasticBeanstalk.prototype.describeEnvironments = function describeEnvironments (params) {
  return this.eb.describeEnvironments(params);
};
{'fraction_non_alphanumeric': 0.13568037974683544, 'fraction_numerical': 0.0, 'mean_word_length': 4.683146067415731, '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': '697770', 'n_tokens_mistral': 784, 'n_tokens_neox': 739, 'n_words': 169}