<commit_before>import BasicProvider from './basicprovider'

/**
 * Static Provider
 */
class StaticProvider extends BasicProvider
{
  constructor(container, id, resource, options={}) {
    super(container, id, resource, options)
  }

  /**
   * Provides the registered resource without any manipulation.
   *
   * @return {Promise}
   * @api public
   */
  get() {
    return new Promise(resolve => {
      return resolve(this.resource)
    })
  }
}

export default StaticProvider<commit_msg>refactor StaticProvider<commit_after>import BasicProvider from './basicprovider'

/**
 * Static Provider
 */
class StaticProvider extends BasicProvider
{
  constructor(container, id, resource, options={}) {
    super(container, id, resource, options)
  }

  /**
   * Provides the registered resource without any manipulation.
   *
   * @return {Promise}
   * @api public
   */
  get() {
    return new Promise(resolve => resolve(this.resource))
  }
}

export default StaticProvider
{'fraction_non_alphanumeric': 0.11510791366906475, 'fraction_numerical': 0.0, 'mean_word_length': 3.6161137440758293, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7198060', 'n_tokens_mistral': 280, 'n_tokens_neox': 266, 'n_words': 75}