<commit_before>const path = require("path");
const { execSync } = require("child_process");

const finalize = function(hoppla) {
  if (hoppla.input.type === "demo") {
    execSync(`npm install --prefix "${hoppla.destination}"`, {
      stdio: "inherit"
    });

    const nameSpaceTemplate = path.join(
      hoppla.destination,
      "templates",
      "namespace"<commit_msg>[FEATURE] TPL finalize: switched from npm prefix to cwd for windows compatibility<commit_after>const path = require("path");
const { execSync } = require("child_process");

const finalize = function(hoppla) {
  if (hoppla.input.type === "demo") {
    execSync("npm install", {
      stdio: "inherit",
      cwd: hoppla.destination
    });

    const nameSpaceTemplate = path.join(
      hoppla.destination,
      "templates",
      "namespace"
{'fraction_non_alphanumeric': 0.14390243902439023, 'fraction_numerical': 0.0, 'mean_word_length': 3.6123595505617976, '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': '4367330', 'n_tokens_mistral': 254, 'n_tokens_neox': 246, 'n_words': 58}