<commit_before>module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

    copy: {
        main: {
            files: [
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/build/less',
                    src: ['**'],
                    dest: 'src/less/lib/admin-lte/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/dist/js',
                    src: ['**'],
                    dest: 'src/js/lib/admin-lte/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/plugins',
                    src: ['**/?*.css'],
                    dest: 'src/css/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/plugins',
                    src: ['**/?*.js'],
                    dest: 'src/js/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/less',
                    src: ['**'],
                    dest: 'src/less/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/dist/fonts',
                    src: ['**'],
                    dest: 'src/fonts/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/js',
                    src: ['**'],
                    dest: 'src/js/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/less',
                    src: ['**'],
                    dest: 'src/less/lib/fontawesome'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/fonts',
                    src: ['**'],
                    dest: 'src/fonts/lib/fontawesome'
                },
                {
                    expand: true,
                    cwd: 'bower_components/jquery/dist',
                    src: ['**'],
                    dest: 'src/js/lib/jquery'
                },
                {
                    expand: true,
                    cwd: 'bower_components/jsx-requirejs-plugin/js',
                    src: ['**'],
                    dest: 'src/js/lib/jsx-requirejs-plugin'
                },
                {
                    expand: true,
                    cwd: 'bower_components/',
                    src: ['react/*.js'],
                    dest: 'src/js/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components',
                    src: ['requirejs-text/*.js'],
                    dest: 'src/js/lib/'
                }
            ]
        }
    },
    requirejs: {
        build:{
            options: {
                appDir:"src/js",
                baseUrl:"./",
                dir:"../webroot/js",
                stubModules: ['jsx', 'text', 'JSXTransformer'],
                paths: {
                    requireLib: '../../bower_components/requirejs/require'
                },
                modules:[{
                    name: "config",
                    include: "requireLib"
                }],
            }
        },
        dev:{
            options: {
                appDir:"src/js",
                baseUrl:"./",
                dir:"../webroot/js",
                stubModules: ['jsx', 'text', 'JSXTransformer'],
                paths: {
                    requireLib: '../../bower_components/requirejs/require'
                },
                modules:[{
                    name: "config",
                    include: "requireLib"
                }],
                optimize: 'none'
            }
        }
    },
    less: {
        build: {
          options: {
              compress: true,
              paths: ['./', grunt.option('gintonic')+'assets/src/less/']
          },
          files: {
            "../webroot/css/default.css": "src/less/default.less",
            "../webroot/css/bare.css": "src/less/bare.less",
            "../webroot/css/admin.css": "src/less/admin.less"
          }
        },
        dev: {
          options: {
              compress: false,
              paths: ['./', grunt.option('gintonic')+'assets/src/less/']
          },
          files: {
            "../webroot/css/default.css": "src/less/default.less",
            "../webroot/css/bare.css": "src/less/bare.less",
            "../webroot/css/admin.css": "src/less/admin.less"
          }
        }
    }


    });

    // Load the plugin that provides the "uglify" task.
    grunt.loadNpmTasks('grunt-contrib-requirejs');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-less');

    // Default task(s).
    grunt.registerTask('default', ['copy','requirejs:build', 'less:build']);
    grunt.registerTask('dev', ['copy','requirejs:dev', 'less:dev']);

};<commit_msg>Default path added for plugin folder<commit_after>module.exports = function(grunt) {

    var gintonic = grunt.option('gintonic') ||"../vendor/gintonicweb/gintonic-cms/"; 

    // Project configuration.
    grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

    copy: {
        main: {
            files: [
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/build/less',
                    src: ['**'],
                    dest: 'src/less/lib/admin-lte/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/dist/js',
                    src: ['**'],
                    dest: 'src/js/lib/admin-lte/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/plugins',
                    src: ['**/?*.css'],
                    dest: 'src/css/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/admin-lte/plugins',
                    src: ['**/?*.js'],
                    dest: 'src/js/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/less',
                    src: ['**'],
                    dest: 'src/less/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/dist/fonts',
                    src: ['**'],
                    dest: 'src/fonts/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/js',
                    src: ['**'],
                    dest: 'src/js/lib/bootstrap'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/less',
                    src: ['**'],
                    dest: 'src/less/lib/fontawesome'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/fonts',
                    src: ['**'],
                    dest: 'src/fonts/lib/fontawesome'
                },
                {
                    expand: true,
                    cwd: 'bower_components/jquery/dist',
                    src: ['**'],
                    dest: 'src/js/lib/jquery'
                },
                {
                    expand: true,
                    cwd: 'bower_components/jsx-requirejs-plugin/js',
                    src: ['**'],
                    dest: 'src/js/lib/jsx-requirejs-plugin'
                },
                {
                    expand: true,
                    cwd: 'bower_components/',
                    src: ['react/*.js'],
                    dest: 'src/js/lib/'
                },
                {
                    expand: true,
                    cwd: 'bower_components',
                    src: ['requirejs-text/*.js'],
                    dest: 'src/js/lib/'
                }
            ]
        },
        dev: {
            files: [
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/dist/fonts',
                    src: ['**'],
                    dest: '../webroot/fonts/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/fonts',
                    src: ['**'],
                    dest: '../webroot/fonts/'
                },
            ]
        },
        build: {
            files: [
                {
                    expand: true,
                    cwd: 'bower_components/bootstrap/dist/fonts',
                    src: ['**'],
                    dest: '../webroot/fonts/'
                },
                {
                    expand: true,
                    cwd: 'bower_components/fontawesome/fonts',
                    src: ['**'],
                    dest: '../webroot/fonts/'
                },
            ]
        }

    },
    requirejs: {
        build:{
            options: {
                appDir:"src/js",
                baseUrl:"./",
                dir:"../webroot/js",
                stubModules: ['jsx', 'text', 'JSXTransformer'],
                paths: {
                    requireLib: '../../bower_components/requirejs/require'
                },
                modules:[{
                    name: "config",
                    include: "requireLib"
                }],
            }
        },
        dev:{
            options: {
                appDir:"src/js",
                baseUrl:"./",
                dir:"../webroot/js",
                stubModules: ['jsx', 'text', 'JSXTransformer'],
                paths: {
                    requireLib: '../../bower_components/requirejs/require'
                },
                modules:[{
                    name: "config",
                    include: "requireLib"
                }],
                optimize: 'none'
            }
        }
    },
    less: {
        build: {
          options: {
              compress: true,
              paths: ['./', gintonic+'assets/src/less/']
          },
          files: {
            "../webroot/css/default.css": "src/less/default.less",
            "../webroot/css/bare.css": "src/less/bare.less",
            "../webroot/css/admin.css": "src/less/admin.less"
          }
        },
        dev: {
          options: {
              compress: false,
              paths: ['./', gintonic+'assets/src/less/']
          },
          files: {
            "../webroot/css/default.css": "src/less/default.less",
            "../webroot/css/bare.css": "src/less/bare.less",
            "../webroot/css/admin.css": "src/less/admin.less"
          }
        }
    }


    });

    // Load the plugin that provides the "uglify" task.
    grunt.loadNpmTasks('grunt-contrib-requirejs');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-less');

    // Default task(s).
    grunt.registerTask('default', ['copy:main','requirejs:build', 'less:build', 'copy:build']);
    grunt.registerTask('dev', ['copy:main','requirejs:dev', 'less:dev', 'copy:dev']);

};
{'fraction_non_alphanumeric': 0.1423487544483986, 'fraction_numerical': 0.0, 'mean_word_length': 0.8741054001301236, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, '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': '1504571', 'n_tokens_mistral': 3179, 'n_tokens_neox': 2948, 'n_words': 419}