<commit_before>//
// storymapjs configuration 
// 
// All file/directory paths are relative to the project directory.
//
// Regular expressions are in python regular expression format, but backslashes
// must be escaped for JSON.  When used to match files, matching will take
// place against the the file/directory path realtive to the project directory.
//
{
    //
    // name of the project as it will appear in the cdn and css/js banners
    //
    "name": "storymapjs",
    //
    // author string to appear in css/js banners
    //
    "author": "Northwestern University Knight Lab",
    //
    // build
    // 
    // These commands will be run the exact order in which they appear.
    // This order is determined in code by fabfile/__init__.py.
    //
    "build": {
        // copy files
        // input: list of objects specifying inputs and outputs
        //      @src: source file/directory
        //      @dst: destination file/directory
        //      @regex: regular expression to match files (if @src is directory)
        //
        "copy": [
            {
                "src": "website",
                "dst": "build",
                "regex": "(css/.*|img/.*|js/.*|.*\\.(ico|html))$"
            },
            {
                "src": "source",
                "dst": "build",
                "regex": "(css/.*|img/.*|.*\\.(ico|html)|gfx/.*\\.(png|jpg|gif))$"
            }
        ],
        // compile less files
        // input: list of objects specifying inputs and output
        // input: list of objects, where
        //      @src: source file/directory
        //      @dst: destination file/directory
        //      @regex: regular expression to match files (if @src is directory)
        //
        "lessc": [
            {
                "src": "source/less/VCO.StoryMap.less",
                "dst": "build/css/storymap.css"
            },
            {
                "src": "website/less/site.less",
                "dst": "build/css/site.css"
            }
        ],
        // 
        // process codekit style imports on files
        // input: list of objects specifying inputs and output
        //      @src:    source file
        //      @dst:    destination file
        //
        "process": [
            {
                "src": "source/js/VCO.StoryMap.js",
                "dst": "build/js/storymap.js"
            }            
        ],
        // concatenate files
        // input: list of objects, where
        //      @src: list of source files
        //      @dst: destination file
        "concat": [
        ],
        // minify files using uglifyjs
        // input list of objects specifying inputs and output
        //      @src:   source file/directory
        //      @dst:   destination file/directory 
        //      @opt:   options to pass to uglifyjs
        //      @ext:   extension to prepend to destination file name (optional, default = none)
        //
        "minify": [
            {
                "src": "build/js/storymap.js",
                "dst": "build/js/storymap.min.js",
                "opt": "--no-seqs"            
            }
        ],
        //
        // banner
        // input: list of file paths
        "banner": [
            "build/js/storymap.js",
            "build/js/storymap.min.js",
            "build/css/storymap.css"        
        ]
    },
    //
    // stage
    // input: regular expression to match files in the build directory
    //  
    "stage": [{
        "src": "build",
        "regex": "(css/storymap\\.css|js/storymap.*\\.js|gfx/.*)$"
    }],
    //
    // deploy
    // input: name of the S3 bucket that will host the website 
    //
    "deploy": {
        "bucket": "storymap.knightlab.com"
    }
}<commit_msg>updated banner configuration for latest fablib<commit_after>//
// storymapjs configuration 
// 
// All file/directory paths are relative to the project directory.
//
// Regular expressions are in python regular expression format, but backslashes
// must be escaped for JSON.  When used to match files, matching will take
// place against the the file/directory path realtive to the project directory.
//
{
    //
    // name of the project as it will appear in the cdn and css/js banners
    //
    "name": "storymapjs",
    //
    // author string to appear in css/js banners
    //
    "author": "Northwestern University Knight Lab",
    //
    // build
    // 
    // These commands will be run the exact order in which they appear.
    // This order is determined in code by fabfile/__init__.py.
    //
    "build": {
        // copy files
        // input: list of objects specifying inputs and outputs
        //      @src: source file/directory
        //      @dst: destination file/directory
        //      @regex: regular expression to match files (if @src is directory)
        //
        "copy": [
            {
                "src": "website",
                "dst": "build",
                "regex": "(css/.*|img/.*|js/.*|.*\\.(ico|html))$"
            },
            {
                "src": "source",
                "dst": "build",
                "regex": "(css/.*|img/.*|.*\\.(ico|html)|gfx/.*\\.(png|jpg|gif))$"
            }
        ],
        // compile less files
        // input: list of objects specifying inputs and output
        // input: list of objects, where
        //      @src: source file/directory
        //      @dst: destination file/directory
        //      @regex: regular expression to match files (if @src is directory)
        //
        "lessc": [
            {
                "src": "source/less/VCO.StoryMap.less",
                "dst": "build/css/storymap.css"
            },
            {
                "src": "website/less/site.less",
                "dst": "build/css/site.css"
            }
        ],
        // 
        // process codekit style imports on files
        // input: list of objects specifying inputs and output
        //      @src:    source file
        //      @dst:    destination file
        //
        "process": [
            {
                "src": "source/js/VCO.StoryMap.js",
                "dst": "build/js/storymap.js"
            }            
        ],
        // concatenate files
        // input: list of objects, where
        //      @src: list of source files
        //      @dst: destination file
        "concat": [
        ],
        // minify files using uglifyjs
        // input list of objects specifying inputs and output
        //      @src:   source file/directory
        //      @dst:   destination file/directory 
        //      @opt:   options to pass to uglifyjs
        //      @ext:   extension to prepend to destination file name (optional, default = none)
        //
        "minify": [
            {
                "src": "build/js/storymap.js",
                "dst": "build/js/storymap.min.js",
                "opt": "--no-seqs"            
            }
        ],
        //
        // banner
        // input: list of file paths
        "banner": [
            {
                "src": "build",
                "regex": "(js|css)/storymap.*\\.(js|css)$"
            }
        ]
    },
    //
    // stage
    // input: regular expression to match files in the build directory
    //  
    "stage": [{
        "src": "build",
        "regex": "(css/storymap\\.css|js/storymap.*\\.js|gfx/.*)$"
    }],
    //
    // deploy
    // input: name of the S3 bucket that will host the website 
    //
    "deploy": {
        "bucket": "storymap.knightlab.com"
    }
}
{'fraction_non_alphanumeric': 0.13280318091451293, 'fraction_numerical': 0.0002650762094102054, 'mean_word_length': 1.2742616033755274, 'pattern_counts': {'":': 60, '<': 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': '2296718', 'n_tokens_mistral': 2111, 'n_tokens_neox': 2045, 'n_words': 606}