<commit_before>// Copyright 2017, University of Colorado Boulder

/**
 * Unit tests, run with `mocha`
 *
 * @author <NAME> <<EMAIL>>
 */
/* eslint-env node */
'use strict';

// const chai = require( 'chai' );
const execute = require( '../js/grunt/execute' );

const gruntCommand = /^win/.test( process.platform ) ? 'grunt.cmd' : 'grunt';

describe( 'hooks', function() {
  afterEach( async () => {
    // Hard reset to undo what we just did
    await execute( 'git', [ 'reset', '--hard' ], '../chains' );
  } );
} );

describe( 'Generation', () => {
  it( 'Development HTML', async () => {
    await execute( gruntCommand, [ 'generate-development-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Test HTML', async () => {
    await execute( gruntCommand, [ 'generate-test-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Colors HTML', async () => {
    await execute( gruntCommand, [ 'generate-development-colors-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'A11Y View HTML', async () => {
    await execute( gruntCommand, [ 'generate-a11y-view-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Config', async () => {
    await execute( gruntCommand, [ 'generate-config' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Test Config', async () => {
    await execute( gruntCommand, [ 'generate-test-config' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Published README', async () => {
    await execute( gruntCommand, [ 'published-README' ], '../chains' );<commit_msg>Fixed hooks<commit_after>// Copyright 2017, University of Colorado Boulder

/**
 * Unit tests, run with `mocha`
 *
 * @author <NAME> <<EMAIL>>
 */
/* eslint-env node */
'use strict';

// const chai = require( 'chai' );
const execute = require( '../js/grunt/execute' );

const gruntCommand = /^win/.test( process.platform ) ? 'grunt.cmd' : 'grunt';

describe( 'Generation', () => {
  afterEach( async () => {
    // Hard reset to undo what we just did
    await execute( 'git', [ 'reset', '--hard' ], '../chains' );
    await execute( 'git', [ 'clean', '-f' ], '../chains' );
  } );
  
  it( 'Development HTML', async () => {
    await execute( gruntCommand, [ 'generate-development-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Test HTML', async () => {
    await execute( gruntCommand, [ 'generate-test-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Colors HTML', async () => {
    await execute( gruntCommand, [ 'generate-development-colors-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'A11Y View HTML', async () => {
    await execute( gruntCommand, [ 'generate-a11y-view-html' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Config', async () => {
    await execute( gruntCommand, [ 'generate-config' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Test Config', async () => {
    await execute( gruntCommand, [ 'generate-test-config' ], '../chains' );
  } ).timeout( 120000 );

  it( 'Published README', async () => {
    await execute( gruntCommand, [ 'published-README' ], '../chains' );
{'fraction_non_alphanumeric': 0.219664584018415, 'fraction_numerical': 0.028937849391647483, 'mean_word_length': 3.1275440976933515, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2062225', 'n_tokens_mistral': 1099, 'n_tokens_neox': 996, 'n_words': 262}