<commit_before>var path = require('path')
var fs = require('fs')
var ora = require('ora')
var config = require('./config')
var replace = require('gulp-replace')

var varsPath = path.resolve(config.themePath, './src/common/var.css')
var filePath = path.resolve(process.cwd(), config.config)

exports.check = function () {
  if (!fs.existsSync(varsPath)) {
    ora('Pleace install `element-theme-default`').fail()
    process.exit(1)
  }
}

exports.init = function (_file) {
  var spinner = ora('Generator variables file').start()

  filePath = path.resolve(process.cwd(), _file ? _file : config.config)
  if (fs.existsSync(filePath)) {
    spinner.text = 'Variables file is exist.'<commit_msg>lint bug fixed<commit_after>var path = require('path')
var fs = require('fs')
var ora = require('ora')
var replace = require('gulp-replace')
var config = require('./config')

var varsPath = path.resolve(config.themePath, './src/common/var.css')
var filePath = path.resolve(process.cwd(), config.config)

exports.check = function () {
  if (!fs.existsSync(varsPath)) {
    ora('Pleace install `element-theme-default`').fail()
    process.exit(1)
  }
}

exports.init = function (_file) {
  var spinner = ora('Generator variables file').start()

  filePath = path.resolve(process.cwd(), _file ? _file : config.config)
  if (fs.existsSync(filePath)) {
    spinner.text = 'Variables file is exist.'
{'fraction_non_alphanumeric': 0.16750902527075812, 'fraction_numerical': 0.001444043321299639, 'mean_word_length': 4.52191235059761, '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': '6367918', 'n_tokens_mistral': 451, 'n_tokens_neox': 446, 'n_words': 103}