<commit_before>const LIMIT = 10000;
const DESIGN_SYSTEM_SVG = /sprite-icons.svg$/;

module.exports = () => [
    {
        test: /\.(bmp|png|jpg|jpeg|gif|svg)$/,
        loader: 'url-loader',
        exclude: DESIGN_SYSTEM_SVG,
        options: {
            limit: LIMIT,
            name: 'assets/img/[name].[hash:8].[ext]'
        }
    },
    {
        test: DESIGN_SYSTEM_SVG,
        use: [
            {
                loader: 'svg-inline-loader'
            }
        ]
    },
    {
        test: /\.(woff|woff2|eot|ttf|otf)$/,
        use: [
            {
                loader: 'file-loader',
                options: {
                    name: 'assets/fonts/[name].[ext]'
                }
            }
        ]
    },
    {
        test: /\.po$/,
        use: [{ loader: 'json-loader' }, { loader: 'po-gettext-loader' }]
    }
];<commit_msg>Exlude the sprite-for-css svg (#22)<commit_after>const LIMIT = 10000;
const DESIGN_SYSTEM_ICONS_SVG = 'sprite-icons.svg';
const DESIGN_SYSTEM_CSS_SVG = 'sprite-for-css-only.svg';

module.exports = () => [
    {
        /**
         * oneOf allows to take the first match instead of all matches, .e.g
         *
         * without one of:
         *
         * sprite-icons.svg -> [svg-inline-loader, url-loader, file-loader]
         * img-1.svg -> [url loader, file loader]
         * design-system-icon.svg -> file loader
         *
         * with one of:
         *
         * sprite-icons.svg -> svg-inline-loader
         * img-1.svg -> url loader
         * design-system-icon.svg -> file loader
         */
        oneOf: [
            {
                test: new RegExp(`${DESIGN_SYSTEM_ICONS_SVG}$`),
                use: [
                    {
                        loader: 'svg-inline-loader'
                    }
                ]
            },
            {
                test: /\.(bmp|png|jpg|jpeg|gif|svg)$/,
                loader: 'url-loader',
                exclude: new RegExp(`${DESIGN_SYSTEM_CSS_SVG}`),
                options: {
                    limit: LIMIT,
                    name: 'assets/[name].[hash:8].[ext]'
                }
            },
            {
                test: /\.(bmp|png|jpg|jpeg|gif|svg|woff|woff2|eot|ttf|otf)$/,
                use: [
                    {
                        loader: 'file-loader',
                        options: {
                            name: 'assets/[name].[hash:8].[ext]'
                        }
                    }
                ]
            }
        ]
    }
];
{'fraction_non_alphanumeric': 0.14370546318289787, 'fraction_numerical': 0.007521773555027712, 'mean_word_length': 1.0544715447154471, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '807585', 'n_tokens_mistral': 814, 'n_tokens_neox': 749, 'n_words': 117}