<commit_before>// Copyright (c) 2012 UX Productivity Pty Ltd. All rights reserved.

(function() {

    function valueString(arg)
    {
        try {
            if (typeof(arg) == "object") {
                var str = arg.toString();
                if (str == "[object Object]")
                    return "[object "+arg.constructor.name+"]";
                else
                    return str;
            }
            else if (typeof(arg) == "string") {
                return JSON.stringify(arg);
            }
            else if (typeof(arg) == "function") {
                if (arg.name)
                    return "<function "+arg.name+">";
                else
                    return "<anonymous function>";
            }
            else {
                return arg;
            }
        }<commit_msg>Further protect against leakage of code in error messages<commit_after>// Copyright (c) 2012 UX Productivity Pty Ltd. All rights reserved.

(function() {

    function valueString(arg)
    {
        try {
            if (typeof(arg) == "object") {
                var str = arg.toString();
                return "[object "+arg.constructor.name+"]";
            }
            else if (typeof(arg) == "string") {
                return JSON.stringify(arg);
            }
            else if (typeof(arg) == "function") {
                if (arg.name)
                    return "<function "+arg.name+">";
                else
                    return "<anonymous function>";
            }
            else {
                return arg;
            }
        }
{'fraction_non_alphanumeric': 0.11842938568714376, 'fraction_numerical': 0.00506649778340722, 'mean_word_length': 1.161422708618331, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7005058', 'n_tokens_mistral': 410, 'n_tokens_neox': 376, 'n_words': 107}