<commit_before>// To use this file in WebStorm, right click on the file name in the Project Panel (normally left) and select "Open Grunt Console"

/** @namespace __dirname */
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";

module.exports = function (grunt) {
    var fs          = require('fs');
    var http        = require('http');
    var https       = require('https');

    var srcDir      = __dirname + "/";
    var dstDir      = __dirname + "/delivery/";
    var gruntDir    = __dirname + "/build/";
    var pkg         = grunt.file.readJSON('package.json');
    var iocore      = {};//grunt.file.readJSON('io-package.json');
    var words       = null;

    var download = function(url, dest, cb) {
        var file = fs.createWriteStream(dest);
        var request = http.get(url, function(response) {
            response.pipe(file);
            file.on('finish', function() {
                file.close(cb);
            });
        });
    }

    var couchDBlink = "http://apache.lauf-forum.at/couchdb/binary/win/1.6.0/setup-couchdb-1.6.0_R16B02.exe";
    var modules     = [
        "js-controller"
    ];

    // Project configuration.
    grunt.initConfig({
        pkg: pkg,
        curl: {
            'io-package': {
                src: 'https://github.com/ioBroker/ioBroker.<%= grunt.task.current.args[0] %>/raw/master/io-package.json',
                dest: 'tmp/ioBroker.<%= grunt.task.current.args[0] %>.io-package.json'
            },
            'iobroker': {
                src: 'https://github.com/ioBroker/ioBroker.<%= grunt.task.current.args[0] %>/archive/master.zip',
                dest: 'tmp/ioBroker.<%= grunt.task.current.args[0] %>.zip'
            },
            'couchDB': {
                src: couchDBlink,
                dest: 'build/windows/couchDB/couchDBsetup.exe'
            }
        },
        clean: {
            all: [gruntDir + '.build', gruntDir + '.debian-pi-control', gruntDir + '.debian-pi-ready', gruntDir + '.windows-ready', "tmp"],
            'debian-pi-control': [gruntDir + '.debian-pi-ready/DEBIAN'],
            'debian-pi-control-sysroot': [gruntDir + '.debian-pi-ready/sysroot']
        },
        replace: {
            'debian-pi-version': {
                options: {
                    force: true,
                    patterns: [<commit_msg>(bluefox) update CouchDB for windows to 1.6.1 from 1.6.0<commit_after>// To use this file in WebStorm, right click on the file name in the Project Panel (normally left) and select "Open Grunt Console"

/** @namespace __dirname */
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";

module.exports = function (grunt) {
    var fs          = require('fs');
    var http        = require('http');
    var https       = require('https');

    var srcDir      = __dirname + "/";
    var dstDir      = __dirname + "/delivery/";
    var gruntDir    = __dirname + "/build/";
    var pkg         = grunt.file.readJSON('package.json');
    var iocore      = {};//grunt.file.readJSON('io-package.json');
    var words       = null;

    var download = function(url, dest, cb) {
        var file = fs.createWriteStream(dest);
        var request = http.get(url, function(response) {
            response.pipe(file);
            file.on('finish', function() {
                file.close(cb);
            });
        });
    }

    var couchDBlink = "http://apache.lauf-forum.at/couchdb/binary/win/1.6.1/setup-couchdb-1.6.1_R16B02.exe";
    var modules     = [
        "js-controller"
    ];

    // Project configuration.
    grunt.initConfig({
        pkg: pkg,
        curl: {
            'io-package': {
                src: 'https://github.com/ioBroker/ioBroker.<%= grunt.task.current.args[0] %>/raw/master/io-package.json',
                dest: 'tmp/ioBroker.<%= grunt.task.current.args[0] %>.io-package.json'
            },
            'iobroker': {
                src: 'https://github.com/ioBroker/ioBroker.<%= grunt.task.current.args[0] %>/archive/master.zip',
                dest: 'tmp/ioBroker.<%= grunt.task.current.args[0] %>.zip'
            },
            'couchDB': {
                src: couchDBlink,
                dest: 'build/windows/couchDB/couchDBsetup.exe'
            }
        },
        clean: {
            all: [gruntDir + '.build', gruntDir + '.debian-pi-control', gruntDir + '.debian-pi-ready', gruntDir + '.windows-ready', "tmp"],
            'debian-pi-control': [gruntDir + '.debian-pi-ready/DEBIAN'],
            'debian-pi-control-sysroot': [gruntDir + '.debian-pi-ready/sysroot']
        },
        replace: {
            'debian-pi-version': {
                options: {
                    force: true,
                    patterns: [
{'fraction_non_alphanumeric': 0.15881731784582892, 'fraction_numerical': 0.008447729672650475, 'mean_word_length': 1.7712112346401405, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1588591', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1483, 'n_words': 290}