<commit_before>import Picture from '../models/Picture';
import selectMedia from './selectMedia';


/**
 * Preloads the media for the given image for SPEED. The media to use is selected using
 * the `selectMedia` helper.
 *
 * @param picture The picture to preload media for.
 */
export default function preloadMedia(picture: Picture) {
  console.log('preloadMedia', picture.path);
  const media = selectMedia(picture);
  const element = document.createElement('img');
  element.src = media.src;
}
<commit_msg>frontend/helpers/preloadMedia: remove debug<commit_after>import Picture from '../models/Picture';
import selectMedia from './selectMedia';


/**
 * Preloads the media for the given image for SPEED. The media to use is selected using
 * the `selectMedia` helper.
 *
 * @param picture The picture to preload media for.
 */
export default function preloadMedia(picture: Picture) {
  const media = selectMedia(picture);
  const element = document.createElement('img');
  element.src = media.src;
}

{'fraction_non_alphanumeric': 0.1106679960119641, 'fraction_numerical': 0.0, 'mean_word_length': 4.4863387978142075, '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': '4506829', 'n_tokens_mistral': 273, 'n_tokens_neox': 271, 'n_words': 100}