<commit_before>'use strict';

const fs = require('fs-extra');
const ditaOtStylesDir = './node_modules/dita-ot/src/main/plugins/org.dita.xhtml/resource/';
const gulpWrapCss = require('../gulp-plugins/wrap-css');
const gulpDebug = require('gulp-debug');
const gulpChmod = require('gulp-chmod');
const gulpIf = require('gulp-if');
const gulpPostCss = require('gulp-postcss');
const gulpCsso = require('gulp-csso');
const autoPrefixer = require('autoprefixer')({
    browsers: ['last 1 version', 'ie 10', 'ie 11'],
    remove: false
});

/**
 * Add a specific scope to the dita-ot stylesheets.
 * This to make sure that they don't apply styles to elements outside of the preview.
 * @module wrap-dita-ot-css
 * @param {Object} buildOptions Build options.
 * @param {Object} gulp Instance of gulp.
 */
module.exports = (buildOptions, gulp) => {
    return cb => {
        // Compile Less
        return gulp.src(
            [
                `${ditaOtStylesDir}commonltr.css`,
                `${ditaOtStylesDir}commonrtl.css`
            ])
            .pipe(gulpChmod(666)) // Remove read-only flag
            .pipe(gulpIf('*ltr.css', gulpWrapCss({ globalRule: '.page-content.ltr' })))<commit_msg>KCWA-82 | Changes afetr cleanup<commit_after>'use strict';

const fs = require('fs-extra');
const ditaOtStylesDir = './node_modules/dita-ot/src/main/plugins/org.dita.xhtml/resource/';
const gulpWrapCss = require('../gulp-plugins/wrap-css');
const gulpDebug = require('gulp-debug');
const gulpChmod = require('gulp-chmod');
const gulpIf = require('gulp-if');
const gulpCsso = require('gulp-csso');

/**
 * Add a specific scope to the dita-ot stylesheets.
 * This to make sure that they don't apply styles to elements outside of the preview.
 * @module wrap-dita-ot-css
 * @param {Object} buildOptions Build options.
 * @param {Object} gulp Instance of gulp.
 */
module.exports = (buildOptions, gulp) => {
    return cb => {
        // Compile Less
        return gulp.src(
            [
                `${ditaOtStylesDir}commonltr.css`,
                `${ditaOtStylesDir}commonrtl.css`
            ])
            .pipe(gulpChmod(666)) // Remove read-only flag
            .pipe(gulpIf('*ltr.css', gulpWrapCss({ globalRule: '.page-content.ltr' })))
{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.005793226381461676, 'mean_word_length': 3.096715328467153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4615994', 'n_tokens_mistral': 755, 'n_tokens_neox': 738, 'n_words': 175}