<commit_before>import {
  createMessage,
} from '../api/messaging';

// Usage, assuming using Fluorine
// dispatch(executeCell(id,source)(channels))

export default function kernelInfo(channels) {
  if (!channels || !channels.shell) {
    throw new Error('shell channel not available for sending kernel info request');
  }
  const { shell } = channels;

  const message = createMessage('kernel_info_request');
  return shell
    .childOf(message)
    .map(msg => msg.content)
    .first()
    .toPromse();
}<commit_msg>Move copy pasta'ed comment out.<commit_after>import {
  createMessage,
} from '../api/messaging';

export default function kernelInfo(channels) {
  if (!channels || !channels.shell) {
    throw new Error('shell channel not available for sending kernel info request');
  }
  const { shell } = channels;

  const message = createMessage('kernel_info_request');
  return shell
    .childOf(message)
    .map(msg => msg.content)
    .first()
    .toPromse();
}
{'fraction_non_alphanumeric': 0.13128205128205128, 'fraction_numerical': 0.0, 'mean_word_length': 3.9292929292929295, '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': '7047077', 'n_tokens_mistral': 289, 'n_tokens_neox': 279, 'n_words': 79}