<commit_before>const less2sass = require("./less2sass");
const less2css = require("./less2css");
const fs = require("fs").promises;
const path = require("path");
const packageJSON = require("../package.json");
const paths = require("./paths");

async function copyFonts() {
  const entries = await fs.readdir(paths.fontsSrc, { withFileTypes: true });
  for (let entry of entries) {
    const srcPath = path.join(paths.fontsSrc, entry.name);
    const destPath = path.join(paths.fontsDist, entry.name);
    console.log(srcPath, destPath);
    await fs.copyFile(srcPath, destPath);
  }
}

function extension(filePath, extension) {
  return filePath.replace(/\.less$/, extension);
}

async function clearDist() {
  await fs.rmdir(paths.dist, { recursive: true });
}

async function createDist() {
  await fs.mkdir(paths.distStyles, { recursive: true });
  await fs.mkdir(paths.fontsDist, { recursive: true });
  await fs.mkdir(paths.distDoc, { recursive: true });
}

async function generateCheatSheet() {
  const cssPath = path.join(extension(paths.distLessFile, ".css"));
  const css = await fs.readFile(cssPath, "UTF8");
  const regex = /\.(icon-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/g;
  const cheatSheetCssFile = "../dist/styles/simple-line-icons.css";
  const icons = [];
<commit_msg>fix: doc css file path<commit_after>const less2sass = require("./less2sass");
const less2css = require("./less2css");
const fs = require("fs").promises;
const path = require("path");
const packageJSON = require("../package.json");
const paths = require("./paths");

async function copyFonts() {
  const entries = await fs.readdir(paths.fontsSrc, { withFileTypes: true });
  for (let entry of entries) {
    const srcPath = path.join(paths.fontsSrc, entry.name);
    const destPath = path.join(paths.fontsDist, entry.name);
    console.log(srcPath, destPath);
    await fs.copyFile(srcPath, destPath);
  }
}

function extension(filePath, extension) {
  return filePath.replace(/\.less$/, extension);
}

async function clearDist() {
  await fs.rmdir(paths.dist, { recursive: true });
}

async function createDist() {
  await fs.mkdir(paths.distStyles, { recursive: true });
  await fs.mkdir(paths.fontsDist, { recursive: true });
  await fs.mkdir(paths.distDoc, { recursive: true });
}

async function generateCheatSheet() {
  const cssPath = path.join(extension(paths.distLessFile, ".css"));
  const css = await fs.readFile(cssPath, "UTF8");
  const regex = /\.(icon-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/g;
  const cheatSheetCssFile = "../styles/simple-line-icons.css";
  const icons = [];

{'fraction_non_alphanumeric': 0.17895545314900155, 'fraction_numerical': 0.0038402457757296467, 'mean_word_length': 4.5190677966101696, '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': '3464791', 'n_tokens_mistral': 872, 'n_tokens_neox': 849, 'n_words': 190}