<commit_before>import Ember from 'ember';

const { RSVP, run } = Ember;

export function requestIdleCb(cb, opts) {
  if ('requestIdleCallback' in window) {
    return requestIdleCallback(cb, opts);
  } else {
    return run.shceduleOnce('afterRender', cb);
  }
}

export function requestIdlePromise({timeout}) {
  return new RSVP.Promise(resolve => {
    requestIdleCb(resolve, {timeout});
  });
}
<commit_msg>fix typo and do not export requestIdleCb function<commit_after>import Ember from 'ember';

const { RSVP, run } = Ember;

function requestIdleCb(cb, opts) {
  if ('requestIdleCallback' in window) {
    return requestIdleCallback(cb, opts);
  } else {
    return run.scheduleOnce('afterRender', cb);
  }
}

export function requestIdlePromise({timeout}) {
  return new RSVP.Promise(resolve => {
    requestIdleCb(resolve, {timeout});
  });
}

{'fraction_non_alphanumeric': 0.12956419316843346, 'fraction_numerical': 0.0, 'mean_word_length': 4.629139072847682, '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': '7537844', 'n_tokens_mistral': 286, 'n_tokens_neox': 281, 'n_words': 68}