<commit_before>var localCSS = {};

module.exports = function(app) {
    return {
        addCSS: function (url) {
            localCSS[url] = true;
            return '';
        },
        writeCSS: function() {
            var str = '',
                keys = [],
                env = app.get('env');

            if (env === 'development') {
                Object.keys(localCSS).forEach(function(url) {
                    str += '<link rel="stylesheet" href="' + url + '"\>\n';
                });
            } else {
                str += '/combo?';
                Object.keys(localCSS).forEach(function(url) {
                    keys.push(url);
                });
                str += keys.join('&');
                str = '<link rel="stylesheet" href="' + str + '"\>\n';
            }
            return str;
        }<commit_msg>Fixed .min.css url change<commit_after>var localCSS = {};

module.exports = function(app) {
    return {
        addCSS: function (url) {
            localCSS[url] = true;
            return '';
        },
        writeCSS: function() {
            var str = '',
                keys = [],
                env = app.get('env');

            if (env === 'development') {
                Object.keys(localCSS).forEach(function(url) {
                    str += '<link rel="stylesheet" href="' + url + '"\>\n';
                });
            } else {
                str += '/combo?';
                Object.keys(localCSS).forEach(function(url) {
                    if ((env === 'production') && !/-min\.css$/.test(url)) {
                        url = url.replace(/\.css$/, '.min.css');
                    }
                    keys.push(url);
                });
                str += keys.join('&');
                str = '<link rel="stylesheet" href="' + str + '"\>\n';
            }
            return str;
        }
{'fraction_non_alphanumeric': 0.16809421841541755, 'fraction_numerical': 0.0, 'mean_word_length': 1.116647791619479, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1019028', 'n_tokens_mistral': 515, 'n_tokens_neox': 478, 'n_words': 96}