<commit_before>import { RendererArgs } from "html-renderer-webpack-plugin";
import { html } from "common-tags";
import { FilledContext, HelmetProvider } from "react-helmet-async";
import { renderToString } from "react-dom/server";
import { createMemoryHistory } from "history";
import React from "react";

/* eslint-disable @typescript-eslint/no-var-requires */
export default function renderer({ path, stats }: RendererArgs): string {
  const { default: App } = require("./components/App");
  const history = createMemoryHistory({ initialEntries: [path!] });
  const helmetContext = {};

  const appHtml = renderToString(
    <HelmetProvider context={helmetContext}>
      <App history={history} />
    </HelmetProvider>
  );

  const { helmet } = helmetContext as FilledContext;

  const client = stats.entrypoints.client.assets[0];

  /* eslint-disable prettier/prettier */
  return html`
    <!DOCTYPE html>
    <html lang="en>
      <head>
        <meta name="version" content="${stats.hash}" />
        <meta charset="utf-8" />
        ${helmet.title.toString()}
        ${helmet.meta.toString()}
        ${helmet.link.toString()}
        <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:400,600|IBM+Plex+Serif:300" rel="stylesheet" />
        <link rel="manifest" href="/site.webmanifest" />
        <link rel="icon" href="/favicon.png" type="image/x-icon" />
        <link rel="apple-touch-icon" href="/icon.png" />
        <link rel="mask-icon" href="/icon.svg" color="#333333" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta name="theme-color" content="#ffffff" />
        <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
        <script async src="${client}"></script>
      </head>
      <body>
        ${appHtml}
      </body><commit_msg>fix: add missing closing quote<commit_after>import { RendererArgs } from "html-renderer-webpack-plugin";
import { html } from "common-tags";
import { FilledContext, HelmetProvider } from "react-helmet-async";
import { renderToString } from "react-dom/server";
import { createMemoryHistory } from "history";
import React from "react";

/* eslint-disable @typescript-eslint/no-var-requires */
export default function renderer({ path, stats }: RendererArgs): string {
  const { default: App } = require("./components/App");
  const history = createMemoryHistory({ initialEntries: [path!] });
  const helmetContext = {};

  const appHtml = renderToString(
    <HelmetProvider context={helmetContext}>
      <App history={history} />
    </HelmetProvider>
  );

  const { helmet } = helmetContext as FilledContext;

  const client = stats.entrypoints.client.assets[0];

  /* eslint-disable prettier/prettier */
  return html`
    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta name="version" content="${stats.hash}" />
        <meta charset="utf-8" />
        ${helmet.title.toString()}
        ${helmet.meta.toString()}
        ${helmet.link.toString()}
        <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:400,600|IBM+Plex+Serif:300" rel="stylesheet" />
        <link rel="manifest" href="/site.webmanifest" />
        <link rel="icon" href="/favicon.png" type="image/x-icon" />
        <link rel="apple-touch-icon" href="/icon.png" />
        <link rel="mask-icon" href="/icon.svg" color="#333333" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta name="theme-color" content="#ffffff" />
        <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
        <script async src="${client}"></script>
      </head>
      <body>
        ${appHtml}
      </body>
{'fraction_non_alphanumeric': 0.1694731124388919, 'fraction_numerical': 0.00977729494839761, 'mean_word_length': 3.44270205066345, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 2, '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': '3465082', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1116, 'n_words': 229}