<commit_before>/*global module:false*/
module.exports = function (grunt) {

    grunt.initConfig({

        // Metadata.
        pkg: grunt.file.readJSON('package.json'),
        banner: '/*! \n * <%= pkg.title || pkg.name %> v<%= pkg.version %>\n' +
        ' * <%= pkg.homepage %>\n' +
        ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
        ' * License: <%= pkg.license %>\n' +
        ' */\n',

        // Task configuration.
        uglify: {
            options: {
                banner: '<%= banner %>',
                report: 'gzip'
            },
            build: {
                src: ['build/scrollToTop.js'],
                dest: 'build/scrollToTop.min.js'
            }
        },

        ngAnnotate: {
            options: {
                singleQuotes: true,
            },
            source: {
                expand: true,
                cwd: 'src',
                src: ['*.js'],
                dest: 'build'
            }
        },

        cssmin: {
            options: {
                banner: '<%= banner %>',
                report: 'gzip'
            },
            minify: {
                src: 'src/scrollToTop.css',
                dest: 'build/scrollToTop.min.css'
            }
        },

        jshint: {
            jshintrc: '.jshintrc',
            gruntfile: {
                src: 'Gruntfile.js'
            },
            src: {
                src: ['src/*.js']
            }
        },

        concat: {
            build: {
                options: {
                    banner: '<%= banner %>'
                },
                files: {
                    'build/scrollToTop.css': 'src/scrollToTop.css',
                    'build/scrollToTop.js': ['build/scrollToTop.js'],
                }
            }
        },
        gitcommit: {
            build: {
                files: [
                    {
                        src: ["build/*.js", "build/*.css"]
                    }
                ]
            }
        },
        gitadd: {
            task: {
                options: {
                    force: true
                },
                files: {
                    src: ["build/*.js", "build/*.css"]
                }
            }
        },
        watch: {
            scripts: {
                files: ['src/*.js'],
                tasks: ['uglify', 'concat:build'],
                options: {
                    spawn: false,
                },
            },
            css: {
                files: ['src/*.css'],
                tasks: ['cssmin', 'concat:build'],
                options: {
                    spawn: false,
                },
            }
        },

    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-ng-annotate');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-git');

    grunt.registerTask('default', ['jshint', 'ngAnnotate', 'uglify', 'cssmin', 'concat:build', 'gitadd', 'gitcommit:build']);
    grunt.registerTask('build', ['default']);

};<commit_msg>building project<commit_after>/*global module:false*/
module.exports = function (grunt) {

    grunt.initConfig({

        // Metadata.
        pkg: grunt.file.readJSON('package.json'),
        banner: '/*! \n * <%= pkg.title || pkg.name %> v<%= pkg.version %>\n' +
        ' * <%= pkg.homepage %>\n' +
        ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
        ' * License: <%= pkg.license %>\n' +
        ' */\n',

        // Task configuration.
        uglify: {
            options: {
                banner: '<%= banner %>',
                report: 'gzip'
            },
            build: {
                src: ['build/scrollToTop.js'],
                dest: 'build/scrollToTop.min.js'
            }
        },

        ngAnnotate: {
            options: {
                singleQuotes: true,
            },
            source: {
                expand: true,
                cwd: 'src',
                src: ['*.js'],
                dest: 'build'
            }
        },

        cssmin: {
            options: {
                banner: '<%= banner %>',
                report: 'gzip'
            },
            minify: {
                src: 'src/scrollToTop.css',
                dest: 'build/scrollToTop.min.css'
            }
        },

        jshint: {
            jshintrc: '.jshintrc',
            gruntfile: {
                src: 'Gruntfile.js'
            },
            src: {
                src: ['src/*.js']
            }
        },

        concat: {
            build: {
                options: {
                    banner: '<%= banner %>'
                },
                files: {
                    'build/scrollToTop.css': 'src/scrollToTop.css',
                    'build/scrollToTop.js': ['build/scrollToTop.js'],
                }
            }
        },
        gitcommit: {
            build: {
                files: [
                    {
                        src: ["build/*.js", "build/*.css"]
                    }
                ]
            }
        },
        gitadd: {
            task: {
                options: {
                    force: true,
                    branch:'master'
                },
                files: {
                    src: ["build/*.js", "build/*.css"]
                }
            }
        },
        gitpush: {
            build: {
                options: {
                    force: true
                },
            }
        },
        watch: {
            scripts: {
                files: ['src/*.js'],
                tasks: ['uglify', 'concat:build'],
                options: {
                    spawn: false,
                },
            },
            css: {
                files: ['src/*.css'],
                tasks: ['cssmin', 'concat:build'],
                options: {
                    spawn: false,
                },
            }
        },

    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-ng-annotate');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-git');

    grunt.registerTask('default', ['jshint', 'ngAnnotate', 'uglify', 'cssmin', 'concat:build', 'gitadd', 'gitcommit:build', 'gitpush:build']);
    grunt.registerTask('build', ['default']);

};
{'fraction_non_alphanumeric': 0.15386931647094249, 'fraction_numerical': 0.0, 'mean_word_length': 0.9812108559498957, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '1243149', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1836, 'n_words': 276}