<commit_before>const os = require('os')
const fs = require('fs')
const path = require('path')
const assert = require('assert')
const rimraf = require('rimraf')
const fetch = require('../../lib/fetch')

describe('lib/fetch', function () {
  this.timeout(10000)
  rimraf.sync(fetch.cachePath)

  describe('#template-name', () => {
    it('Should fetch repo from `https://github.com/zce-mock/unit-test`', () => {
      return fetch('zce-mock/unit-test')
        .then(source => assert.ok(fs.existsSync(source)))
        .catch(err => assert.ok(!err))
    })

    // rimraf cache when cache exist
    it('Should fetch repo from `https://github.com/zce-mock/unit-test`', () => {
      return fetch('zce-mock/unit-test')
        .then(source => assert.ok(fs.existsSync(source)))
        .catch(err => assert.ok(!err))
    })
  })<commit_msg>:rotating_light: Remove eslint warning<commit_after>const fs = require('fs')
const assert = require('assert')
const rimraf = require('rimraf')
const fetch = require('../../lib/fetch')

describe('lib/fetch', function () {
  this.timeout(10000)
  rimraf.sync(fetch.cachePath)

  describe('#template-name', () => {
    it('Should fetch repo from `https://github.com/zce-mock/unit-test`', () => {
      return fetch('zce-mock/unit-test')
        .then(source => assert.ok(fs.existsSync(source)))
        .catch(err => assert.ok(!err))
    })

    // rimraf cache when cache exist
    it('Should fetch repo from `https://github.com/zce-mock/unit-test`', () => {
      return fetch('zce-mock/unit-test')
        .then(source => assert.ok(fs.existsSync(source)))
        .catch(err => assert.ok(!err))
    })
  })
{'fraction_non_alphanumeric': 0.19744058500914077, 'fraction_numerical': 0.006093845216331505, 'mean_word_length': 3.298429319371728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '4192296', 'n_tokens_mistral': 539, 'n_tokens_neox': 524, 'n_words': 97}