<commit_before>/* -----------------------------------------------------------------------------
 * VARS
 * -------------------------------------------------------------------------- */
// Paths for file assets
// -----------------------------------------------------------------------------
var paths = {
        src:  'src/',
        dest: 'dist/'
    },
    // custom plugin settings
    // -------------------------------------------------------------------------
    settings = {
        imagemin: {
            // Default is 3 (16 trials)
            optimizationLevel: 3
        }
    },
    // watched filename patterns
    // -------------------------------------------------------------------------
    watchedPatterns = {
        img: paths.src + '**/*.{png,mcmeta,txt}'
    },
    // Patch name
    patchName = 'NoPatchName',
    // Define versions to process
    versions = ['1.6.4', '1.7.10'],
    // Suffix to add onto created size pack directories
    suff = 'x',
    // Initial size of source images (should be 512px)
    initialSize = 512,
    // Downsize the original pack this many times (inclusive), e.g.:
    // 512, 256, 128, 64, 32
    resizeLevels = 5,
    // Pre-populate a list of sizes
    sizes = (function () {
        var a = [];

        for (var l = 0; l < resizeLevels; l++) {
            var size = initialSize / Math.pow(2, l);
            a.push(size);
        } // /for ... resizeLevels

        return a;
    })();

/* -----------------------------------------------------------------------------
 * GULP PLUGINS
 * -------------------------------------------------------------------------- */
var gulp = require('gulp'),
    $ = require('gulp-load-plugins')({
        pattern: '*',
        camelize: true
    }),
    path = require('path');

/* -----------------------------------------------------------------------------
 * Global Functions
 * -------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------<commit_msg>Gulpfile: move some patch-specific vars to top for easier customisation<commit_after>// Project setup
// Edit the below section to customise the patch
// -----------------------------------------------------------------------------
// Set patch name - will be used to name .zip files
var patchName = 'NoPatchName';
// Initial size of source images - set this to the starting size of the patch
// E.g. if resizing a 128x patch, set to 128
var initialSize = 512;
// Define which version folders inside src/ should be processed
var versions = ['1.6.4', '1.7.10'];
// Set how many times the original patch should be downsized (inclusive)
// E.g. processing a 512x patch 5 times would produce: 512, 256, 128, 64, 32
var resizeLevels = 5;


/* -----------------------------------------------------------------------------
 * VARS
 * -------------------------------------------------------------------------- */
// Paths for file assets
// -----------------------------------------------------------------------------
var paths = {
        src:  'src/',
        dest: 'dist/'
    },
    // custom plugin settings
    // -------------------------------------------------------------------------
    settings = {
        imagemin: {
            // Default is 3 (16 trials)
            optimizationLevel: 3
        }
    },
    // watched filename patterns
    // -------------------------------------------------------------------------
    watchedPatterns = {
        img: paths.src + '**/*.{png,mcmeta,txt}'
    },
    // Suffix to add onto created size pack directories
    suff = 'x',
    // Pre-populate a list of sizes
    sizes = (function () {
        var a = [];

        for (var l = 0; l < resizeLevels; l++) {
            var size = initialSize / Math.pow(2, l);
            a.push(size);
        } // /for ... resizeLevels

        return a;
    })();

/* -----------------------------------------------------------------------------
 * GULP PLUGINS
 * -------------------------------------------------------------------------- */
var gulp = require('gulp'),
    $ = require('gulp-load-plugins')({
        pattern: '*',
        camelize: true
    }),
    path = require('path');

/* -----------------------------------------------------------------------------
 * Global Functions
 * -------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.4450122195067763, 'fraction_numerical': 0.01621861808487003, 'mean_word_length': 0.711787072243346, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2672306', 'n_tokens_mistral': 1004, 'n_tokens_neox': 929, 'n_words': 296}