<commit_before>// @flow weak
/* eslint-disable no-console */

import path from 'path';
import fse from 'fs-extra';

function resolveBuildPath(file) {
  return path.resolve(__dirname, './build/', path.basename(file));
}

function copyFile(file) {
  const buildPath = resolveBuildPath(file);
  return new Promise((resolve) => {
    fse.copy(
      file,
      buildPath,
      (err) => {
        if (err) throw err;
        resolve();
      },
    );
  })
  .then(() => console.log(`Copied ${file} to ${buildPath}`));
}

function createPackageFile() {
  return new Promise((resolve) => {
    fse.readFile(path.resolve(__dirname, './package.json'), 'utf8', (err, data) => {
      if (err) {
        throw err;
      }

      resolve(data);
    });
  })
  .then((data) => JSON.parse(data))
  .then((packageData) => {
    const {
      author,
      version,
      description,
      keywords,
      repository,
      license,
      bugs,
      homepage,
    } = packageData;

    const minimalPackage = {
      name: 'mui-icons',
      author,
      version,
      description,
      keywords,<commit_msg>[svg-icons] Change target package name<commit_after>// @flow weak
/* eslint-disable no-console */

import path from 'path';
import fse from 'fs-extra';

function resolveBuildPath(file) {
  return path.resolve(__dirname, './build/', path.basename(file));
}

function copyFile(file) {
  const buildPath = resolveBuildPath(file);
  return new Promise((resolve) => {
    fse.copy(
      file,
      buildPath,
      (err) => {
        if (err) throw err;
        resolve();
      },
    );
  })
  .then(() => console.log(`Copied ${file} to ${buildPath}`));
}

function createPackageFile() {
  return new Promise((resolve) => {
    fse.readFile(path.resolve(__dirname, './package.json'), 'utf8', (err, data) => {
      if (err) {
        throw err;
      }

      resolve(data);
    });
  })
  .then((data) => JSON.parse(data))
  .then((packageData) => {
    const {
      author,
      version,
      description,
      keywords,
      repository,
      license,
      bugs,
      homepage,
    } = packageData;

    const minimalPackage = {
      name: 'material-ui-icons',
      author,
      version,
      description,
      keywords,
{'fraction_non_alphanumeric': 0.1574944071588367, 'fraction_numerical': 0.0008948545861297539, 'mean_word_length': 2.372549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5755864', 'n_tokens_mistral': 708, 'n_tokens_neox': 704, 'n_words': 157}