<commit_before>var reflect = {
    Width: "Height",
    Height: "Width",
    width: "height",
    height: "width",
    X: "Y",
    Y: "X",
    Top: "Left",
    Left: "Top",
    top: "left",
    left: "top",
    Right: "Bottom",
    Bottom: "Right",
    right: "bottom",
    bottom: "right"
};
var regkeys = keys(reflect);
var regexps = new RegExp(regkeys.join("|"), "g");
var rep = function (matched) {
    var searched = reflect[matched];
    if (searched) return searched;
    return matched;
};
function arriswise(func, argumentsList = [], thisObj) {
    var newf = String(func).replace(regexps, rep);
    return Function.apply(null, argumentsList.slice(0, argumentsList.length >> 1).concat("return " + newf)).apply(thisObj, argumentsList.slice(argumentsList.length >> 1).map(function (arg) {
        if (isString(arg)) {
            return arg.replace(regexps, rep);
        }
        return arg;
    }));
}<commit_msg>替换变量名<commit_after>var reflect = {
    Width: "Height",
    Height: "Width",
    width: "height",
    height: "width",
    X: "Y",
    Y: "X",
    Top: "Left",
    Left: "Top",
    top: "left",
    left: "top",
    Right: "Bottom",
    Bottom: "Right",
    right: "bottom",
    bottom: "right"
};
var regkeys = keys(reflect);
var regexps = new RegExp(regkeys.join("|"), "g");
var rep = function (matched) {
    var searched = reflect[matched];
    if (searched) return searched;
    return matched;
};
var replaceArg=function(arg){
    if (isString(arg)) {
        return arg.replace(regexps, rep);
    }
    return arg;
};
function arriswise(func, argumentsList = [], thisObj) {
    var newf = String(func).replace(regexps, rep);
    return Function.apply(null, argumentsList.slice(0, argumentsList.length >> 1).map(replaceArg).concat("return " + newf))
    .apply(thisObj, argumentsList.slice(argumentsList.length >> 1).map(replaceArg));
}
{'fraction_non_alphanumeric': 0.17113733905579398, 'fraction_numerical': 0.003218884120171674, 'mean_word_length': 3.30715935334873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4192933', 'n_tokens_mistral': 627, 'n_tokens_neox': 618, 'n_words': 152}