<commit_before>/* eslint-disable */
var fs = require('fs');
function copyFileSync(srcFile, destFile) {
  var BUF_LENGTH, buff, bytesRead, fdr, fdw, pos;
  BUF_LENGTH = 64 * 1024;
  buff = new Buffer(BUF_LENGTH);
  fdr = fs.openSync(srcFile, 'r');
  fdw = fs.openSync(destFile, 'w');
  bytesRead = 1;
  pos = 0;
  while (bytesRead > 0) {
    bytesRead = fs.readSync(fdr, buff, 0, BUF_LENGTH, pos);
    fs.writeSync(fdw, buff, 0, bytesRead);
    pos += bytesRead;
  }
  fs.closeSync(fdr);
  return fs.closeSync(fdw);
};

/* eslint:enable */
console.log(__dirname);
copyFileSync(__dirname+'/../src/style/_mdl_variables.scss', __dirname+'/../node_modules/material-design-lite/src/_variables.scss');
console.log('MDL variables override in package.json');<commit_msg>Secure mdl variables copy<commit_after>/* eslint-disable */
var fs = require('fs');
function copyFileSync(srcFile, destFile) {
    try {
        var BUF_LENGTH, buff, bytesRead, fdr, fdw, pos;
        BUF_LENGTH = 64 * 1024;
        buff = new Buffer(BUF_LENGTH);
        fdr = fs.openSync(srcFile, 'r');
        fdw = fs.openSync(destFile, 'w');
        bytesRead = 1;
        pos = 0;
        while (bytesRead > 0) {
          bytesRead = fs.readSync(fdr, buff, 0, BUF_LENGTH, pos);
          fs.writeSync(fdw, buff, 0, bytesRead);
          pos += bytesRead;
        }
        fs.closeSync(fdr);
        return fs.closeSync(fdw);
    } catch(error) {
        console.log(error);
    }
};

copyFileSync(__dirname + '/../src/style/_mdl_variables.scss', __dirname + '/../node_modules/material-design-lite/src/_variables.scss');
console.log('Material design lite SASS variables overriden !');
{'fraction_non_alphanumeric': 0.15556900726392253, 'fraction_numerical': 0.013317191283292978, 'mean_word_length': 3.1742424242424243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2463656', 'n_tokens_mistral': 600, 'n_tokens_neox': 573, 'n_words': 122}