<commit_before>//==================================================
//  Task
//  test:css
//  For the description see [SupeflyCSS Test Task]()
//==================================================

var gulp = require('gulp');
var cheerio = require('gulp-cheerio');
var highlight = require('gulp-highlight');
var path = require('path');

var PLI = require('superfly-css-pli');
var GLOB = require('glob-patterns');

var renderTestBlock = '\n    <div class="Test-render"></div>';

//---------------------------------------------------
//All the css files to be tested
//---------------------------------------------------
var glob = path.join(PLI.src.test.html, GLOB.ALL_HTML);

//---------------------------------
gulp.task('test:css', function() {
  return gulp
    .src(glob)
    .pipe(cheerio(function($, file) {
      $('.Test-markup > code').each(function() {
        var markup = $(this).html();
        //Insert the Test-render block after the Test-then block
        //Append the markup block to the Test-render block
        $($(this).parent().next()).after(renderTestBlock).next().append(markup);
      });
    }))
    .pipe(highlight())
    .pipe(gulp.dest(PLI.target.test.html));
});
<commit_msg>Update index.js<commit_after>//==================================================
//  Task
//  test:css
//  For the description see [SupeflyCSS Test Task](https://github.com/superfly-css/superfly-css-task-test/)
//==================================================

var gulp = require('gulp');
var cheerio = require('gulp-cheerio');
var highlight = require('gulp-highlight');
var path = require('path');

var PLI = require('superfly-css-pli');
var GLOB = require('glob-patterns');

var renderTestBlock = '\n    <div class="Test-render"></div>';

//---------------------------------------------------
//All the css files to be tested
//---------------------------------------------------
var glob = path.join(PLI.src.test.html, GLOB.ALL_HTML);

//---------------------------------
gulp.task('test:css', function() {
  return gulp
    .src(glob)
    .pipe(cheerio(function($, file) {
      $('.Test-markup > code').each(function() {
        var markup = $(this).html();
        //Insert the Test-render block after the Test-then block
        //Append the markup block to the Test-render block
        $($(this).parent().next()).after(renderTestBlock).next().append(markup);
      });
    }))
    .pipe(highlight())
    .pipe(gulp.dest(PLI.target.test.html));
});

{'fraction_non_alphanumeric': 0.3453587353060397, 'fraction_numerical': 0.0, 'mean_word_length': 2.312751677852349, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '4513307', 'n_tokens_mistral': 701, 'n_tokens_neox': 686, 'n_words': 151}