<commit_before>const serialize = require('serialize-javascript');

function createPreloadTag(href, as, extra) {
  return `<link rel="preload" href="${href}"${extra ? ' ' + extra : ''} as="${as}" />`;
}

function createStyleTag(href) {
  return `<link rel="stylesheet" href="${href}" />`;
}

function createScriptTag(src, extra) {
  return `<script src="${src}"${extra ? ' ' + extra : ''} /></script>`;
}

module.exports = function generateHtmlSnippets(meta, reactContent, assets, data, useDll) {
  const preloads = [];

  // generate styles html
  const styles = [];
  if (process.env.APP_MODE === 'development') {
    styles.push('<!-- styles are injected via hot loading in development -->');
  } else {<commit_msg>Fix prefer-template eslint errors<commit_after>const serialize = require('serialize-javascript');

function createPreloadTag(href, as, extra) {
  return `<link rel="preload" href="${href}"${extra ? ` ${extra}` : ''} as="${as}" />`;
}

function createStyleTag(href) {
  return `<link rel="stylesheet" href="${href}" />`;
}

function createScriptTag(src, extra) {
  return `<script src="${src}"${extra ? ` ${extra}` : ''} /></script>`;
}

module.exports = function generateHtmlSnippets(meta, reactContent, assets, data, useDll) {
  const preloads = [];

  // generate styles html
  const styles = [];
  if (process.env.APP_MODE === 'development') {
    styles.push('<!-- styles are injected via hot loading in development -->');
  } else {
{'fraction_non_alphanumeric': 0.19601100412654746, 'fraction_numerical': 0.0, 'mean_word_length': 4.75098814229249, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3096226', 'n_tokens_mistral': 453, 'n_tokens_neox': 444, 'n_words': 111}