<commit_before>var fs        = require('fs'),
    uglifyJS  = require('uglify-js'),
    _         = require('lodash'),
    po2json   = require('po2json'),
    config    = require('./../../../server/configuration.js');

var FILE_ENCODING = 'utf-8',
    EOL = '\n';


function concat(file_list, callback) {
    var num_files = file_list.length,
        files = [],
        loaded = 0,
        error = false;

    file_list.forEach(function (file_path, idx) {
        if (error) {
            return;
        }
        fs.readFile(file_path, { encoding: FILE_ENCODING }, function (err, data) {
            if (error) {
                return;
            } else if (err) {
                error = true;
                return callback(err);
            }
            files[idx] = data + '\n\n';
            if (++loaded === num_files) {
                callback(null, files.join(EOL));
            }
        });
    });
}



config.loadConfig();


var source_files = [
    __dirname + '/app.js',
    __dirname + '/models/application.js',
    __dirname + '/models/gateway.js',
    __dirname + '/models/network.js',
    __dirname + '/models/member.js',
    __dirname + '/models/memberlist.js',
    __dirname + '/models/newconnection.js',
    __dirname + '/models/panel.js',
    __dirname + '/models/panellist.js',
    __dirname + '/models/networkpanellist.js',
    __dirname + '/models/query.js',
    __dirname + '/models/channel.js',
    __dirname + '/models/server.js',
    __dirname + '/models/applet.js',
    __dirname + '/models/pluginmanager.js',
    __dirname + '/models/datastore.js',

    __dirname + '/applets/settings.js',
    __dirname + '/applets/chanlist.js',
    __dirname + '/applets/scripteditor.js',

    __dirname + '/helpers/utils.js',

    __dirname + '/views/panel.js',
    __dirname + '/views/channel.js',
    __dirname + '/views/applet.js',
    __dirname + '/views/application.js',
    __dirname + '/views/apptoolbar.js',
    __dirname + '/views/controlbox.js',
    __dirname + '/views/favicon.js',
    __dirname + '/views/mediamessage.js',
    __dirname + '/views/member.js',
    __dirname + '/views/memberlist.js',
    __dirname + '/views/menubox.js',
    __dirname + '/views/networktabs.js',
    __dirname + '/views/nickchangebox.js',
    __dirname + '/views/resizehandler.js',
    __dirname + '/views/serverselect.js',
    __dirname + '/views/statusmessage.js',<commit_msg>Updating build script for previous commit<commit_after>var fs        = require('fs'),
    uglifyJS  = require('uglify-js'),
    _         = require('lodash'),
    po2json   = require('po2json'),
    config    = require('./../../../server/configuration.js');

var FILE_ENCODING = 'utf-8',
    EOL = '\n';


function concat(file_list, callback) {
    var num_files = file_list.length,
        files = [],
        loaded = 0,
        error = false;

    file_list.forEach(function (file_path, idx) {
        if (error) {
            return;
        }
        fs.readFile(file_path, { encoding: FILE_ENCODING }, function (err, data) {
            if (error) {
                return;
            } else if (err) {
                error = true;
                return callback(err);
            }
            files[idx] = data + '\n\n';
            if (++loaded === num_files) {
                callback(null, files.join(EOL));
            }
        });
    });
}



config.loadConfig();


var source_files = [
    __dirname + '/app.js',
    __dirname + '/models/application.js',
    __dirname + '/models/gateway.js',
    __dirname + '/models/network.js',
    __dirname + '/models/member.js',
    __dirname + '/models/memberlist.js',
    __dirname + '/models/newconnection.js',
    __dirname + '/models/panel.js',
    __dirname + '/models/panellist.js',
    __dirname + '/models/networkpanellist.js',
    __dirname + '/models/channel.js',
    __dirname + '/models/query.js',
    __dirname + '/models/server.js',
    __dirname + '/models/applet.js',
    __dirname + '/models/pluginmanager.js',
    __dirname + '/models/datastore.js',

    __dirname + '/applets/settings.js',
    __dirname + '/applets/chanlist.js',
    __dirname + '/applets/scripteditor.js',

    __dirname + '/helpers/utils.js',

    __dirname + '/views/panel.js',
    __dirname + '/views/channel.js',
    __dirname + '/views/applet.js',
    __dirname + '/views/application.js',
    __dirname + '/views/apptoolbar.js',
    __dirname + '/views/controlbox.js',
    __dirname + '/views/favicon.js',
    __dirname + '/views/mediamessage.js',
    __dirname + '/views/member.js',
    __dirname + '/views/memberlist.js',
    __dirname + '/views/menubox.js',
    __dirname + '/views/networktabs.js',
    __dirname + '/views/nickchangebox.js',
    __dirname + '/views/resizehandler.js',
    __dirname + '/views/serverselect.js',
    __dirname + '/views/statusmessage.js',
{'fraction_non_alphanumeric': 0.16473029045643153, 'fraction_numerical': 0.0016597510373443983, 'mean_word_length': 2.2269076305220885, 'pattern_counts': {'":': 0, '<': 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': '2329437', 'n_tokens_mistral': 1559, 'n_tokens_neox': 1518, 'n_words': 266}