<commit_before>'use strict';

const define = require('./define');
const path = require('path');

const webpack = require('webpack');
const resolver = require('postcss-import-resolver')

const plugins = [];

plugins.push(
    require('precss'),
    require('postcss-import')({
        // addDependencyTo: webpack,
        path: [
            define.rs_root,
            path.resolve(define.rs_root, 'assets/styles')
        ],
        // resolve: resolver({
        //     alias: {
        //       '~': 'src/'
        //     }
        // })
    }),
    require('postcss-nested'),
    require('postcss-calc'),
    require('postcss-selector-not'),
    require('postcss-short-spacing'),
    require('postcss-simple-vars'),
    require('postcss-mixins'),
    require('postcss-nesting'),
    require('postcss-selector-matches'),
    require('postcss-custom-properties'),
    require('postcss-custom-selectors'),
    require('postcss-custom-media'),
    require('postcss-media-minmax'),
    require('postcss-url'),
    require('postcss-hexrgba'),
    require('postcss-position'),
    require('postcss-mq-keyframes'),
    require('postcss-quantity-queries'),
    require('pleeease-filters'),
    require("postcss-cssnext")({
        autoprefixer: false,
        warnForDuplicates: false
    }),
    require('css-mqpacker'),
    require('pixrem')({
        rootValue: 10
    }),
    require('postcss-reporter')({
        clearReportedMessages: true
    })
);

if (define.rs_production) {
    plugins.push(
        require('postcss-will-change-transition'),
        require('postcss-will-change'),
        require('postcss-discard-comments'),
        require('postcss-color-rgba-fallback'),
        require('postcss-emptymediaqueries'),
        require('cssnano')({
            safe: true,
            calc: false,
            zindex: false,
            sourcemap: true,
            autoprefixer: false,
            normalizeCharset: true,
            convertValues: { length: false },
            colormin: true
        }),
        require('postcss-flexbugs-fixes'),
        require('autoprefixer')({
            flexbox: 'no-2009'
        })
    );
}

module.exports = ({ file, options, env }) => ({
    parser: file.extname === '.sss' ? 'sugarss' : 'postcss-scss',<commit_msg>upgrade dependencies<commit_after>'use strict';

const define = require('./define');
const path = require('path');

const webpack = require('webpack');
const resolver = require('postcss-import-resolver')

const plugins = [];

plugins.push(
    require('precss'),
    require('postcss-import')({
        // addDependencyTo: webpack,
        path: [
            define.rs_root,
            path.resolve(define.rs_root, 'assets/styles')
        ],
        // resolve: resolver({
        //     alias: {
        //       '~': 'src/'
        //     }
        // })
    }),
    require('postcss-nested'),
    require('postcss-calc'),
    require('postcss-selector-not'),
    require('postcss-short-spacing'),
    require('postcss-simple-vars'),
    require('postcss-mixins'),
    require('postcss-nesting'),
    require('postcss-selector-matches'),
    require('postcss-custom-properties'),
    require('postcss-custom-selectors'),
    require('postcss-custom-media'),
    require('postcss-media-minmax'),
    require('postcss-url'),
    require('postcss-hexrgba'),
    require('postcss-position'),
    require('postcss-mq-keyframes'),
    require('postcss-quantity-queries'),
    require('pleeease-filters'),
    require("postcss-cssnext")({
        autoprefixer: false,
        warnForDuplicates: false
    }),
    require('css-mqpacker'),
    require('pixrem')({
        rootValue: 10
    }),
    require('postcss-reporter')({
        clearReportedMessages: true
    })
);

if (define.rs_production) {
    plugins.push(
        require('postcss-will-change-transition'),
        require('postcss-will-change'),
        require('postcss-discard-comments'),
        require('postcss-color-rgba-fallback'),
        require('postcss-emptymediaqueries'),
        require('cssnano')({
            safe: true,
            calc: false,
            zindex: false,
            sourcemap: true,
            autoprefixer: false,
            normalizeCharset: true,
            convertValues: { length: false },
            colormin: true
        }),
        require('postcss-flexbugs-fixes'),
        require('autoprefixer')({
            flexbox: 'no-2009'
        })
    );
}

module.exports = ({ file, options, env }) => ({
    // parser: file.extname === '.sss' ? 'sugarss' : 'postcss-scss',
{'fraction_non_alphanumeric': 0.16527472527472528, 'fraction_numerical': 0.0026373626373626374, 'mean_word_length': 2.4295403165033913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3364206', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1366, 'n_words': 196}