<commit_before>#!/usr/bin/env ./rhino

importPackage(java.io);
importPackage(java.lang);
importPackage(com.itextpdf.text);
importPackage(com.itextpdf.text.pdf);

var pi = 4 * Math.atan(1);

function mm2pt(mm) {
    return 72.0 * (mm / 25.4);
}

function pt2mm(pt) {
    return 25.4 * (pt / 72.0);
}

function deg2rad(deg) {
    return deg * pi / 180;
}

var modules = [];

function registerModule(modinfo) {
    var err = System.err;
    var command = modinfo['command'];
    modules[command] = modinfo;
}

load("cat.js");
load("colorinfo.js");
load("collect.js");
load("cut.js");
load("dup-pages.js");
load("info.js");
load("merge.js");
load("rotate.js");
load("rotateScale.js");
load("2up.js");

function usage() {
    var err = System.err;

    err.print("Usage:  jspdftk action [args]\n");
    err.print("  action [args]\n");
    quit(1);
}

function jspdftk(args) {
    var err = System.err;

    if (args.length < 1) {
	usage();
    }
    
    var installdir = "./";
    var prog = args[0];

    if (prog in modules) {
	args.shift();<commit_msg>reorder loading of modules in alphabetical order<commit_after>#!/usr/bin/env ./rhino

importPackage(java.io);
importPackage(java.lang);
importPackage(com.itextpdf.text);
importPackage(com.itextpdf.text.pdf);

var pi = 4 * Math.atan(1);

function mm2pt(mm) {
    return 72.0 * (mm / 25.4);
}

function pt2mm(pt) {
    return 25.4 * (pt / 72.0);
}

function deg2rad(deg) {
    return deg * pi / 180;
}

var modules = [];

function registerModule(modinfo) {
    var err = System.err;
    var command = modinfo['command'];
    modules[command] = modinfo;
}

load("2up.js");
load("cat.js");
load("colorinfo.js");
load("collect.js");
load("cut.js");
load("dup-pages.js");
load("info.js");
load("merge.js");
load("rotate.js");
load("rotateScale.js");

function usage() {
    var err = System.err;

    err.print("Usage:  jspdftk action [args]\n");
    err.print("  action [args]\n");
    quit(1);
}

function jspdftk(args) {
    var err = System.err;

    if (args.length < 1) {
	usage();
    }
    
    var installdir = "./";
    var prog = args[0];

    if (prog in modules) {
	args.shift();
{'fraction_non_alphanumeric': 0.19372952737482452, 'fraction_numerical': 0.022461394478240523, 'mean_word_length': 3.354378818737271, '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': '2514949', 'n_tokens_mistral': 850, 'n_tokens_neox': 808, 'n_words': 169}