<commit_before>export default class OpenAds {
  constructor ({container}) {
    this._container = container
  }

  findAdsUseCase () {
    return this._container.getInstance({key: 'FindAdsUseCase'})
  }

  displayAdsUseCase () {
    return this._container.getInstance({key: 'DisplayAdsUseCase'})
  }

  environment () {
    return this._container.config
  }
}
<commit_msg>Add direct access to Use case methods from application<commit_after>export default class OpenAds {
  constructor ({container}) {
    this._container = container
  }

  /**
   *
   * @param {AdRequest} adRequest
   * @param {string} adRequest.position - Position where Ad will be displayed
   * @param {string} adRequest.containerId - DOM element where Ad will be rendered
   * @param {string} adRequest.segmentation - Segmentation to target the Ad
   * @param {string} adRequest.placement - Placement to target the Ad
   * @param {Array<Size>} adRequest.sizes - Collection of sizes accepted for given targeting segmentation
   */
  find ({adRequest}) {
    return this._container.getInstance({key: 'FindAdsUseCase'}).find({adRequest})
  }
  /**
   *
   * @param {AdRequest} adRequest
   * @param {string} adRequest.position - Position where Ad will be displayed
   * @param {string} adRequest.containerId - DOM element where Ad will be rendered
   * @param {string} adRequest.segmentation - Segmentation to target the Ad
   * @param {string} adRequest.placement - Placement to target the Ad
   * @param {Array<Size>} adRequest.sizes - Collection of sizes accepted for given targeting segmentation
   */
  display ({adRequest}) {
    return this._container.getInstance({key: 'DisplayAdsUseCase'}).display({adRequest})
  }

  environment () {
    return this._container.config
  }
}

{'fraction_non_alphanumeric': 0.10724472333143183, 'fraction_numerical': 0.0, 'mean_word_length': 3.845303867403315, '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': '2996186', 'n_tokens_mistral': 502, 'n_tokens_neox': 490, 'n_words': 146}