<commit_before>/*
    This file is part of List58.

    List58 is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    List58 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with List58.  If not, see <http://www.gnu.org/licenses/>.

*/

(function() {
    'use strict'
    
    var func_tools_module_name = '/2010/07/07/List58/share/func_tools'
    
    if(!window[func_tools_module_name]) {
        var html_ns = 'http://www.w3.org/1999/xhtml'
        
        function FuncTools() {}
        
        function new_func_tools() {
            var func_tools = new FuncTools
            func_tools.init()
            return func_tools
        }
        
        FuncTools.prototype.init = function() {}
        
        FuncTools.prototype.args_array = function(raw_args) {
            var args = []
        
            for(var i = 0; i < raw_args.length; ++i) {
                args.push(raw_args[i])
            }
            
            return args
        }
        
        FuncTools.prototype.func_bind = function(func, this_arg) {
            var args = this.args_array(arguments).slice(2)
            
            if(func.bind) {
                // using built 'func.bind()'. this is more effective way
                
                var bound = func.bind.apply(func, [this_arg].concat(args))
                
                return bound
            } else {
               // using emulation  of 'func.bind()'. this is less effective way
                
                var self_module = this
                
                var bound = function() {
                    var func_args = args.concat(self_module.args_array(arguments))
                    var func_res = func.apply(this_arg, func_args)
                    
                    return func_res
                }
                
                return bound
            }
        }
        
        window[func_tools_module_name] = new_func_tools_module()
    }
})()

<commit_msg>[htdocs/media/share/js/func_tools.js] typo fixes<commit_after>/*
    This file is part of List58.

    List58 is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    List58 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with List58.  If not, see <http://www.gnu.org/licenses/>.

*/

(function() {
    'use strict'
    
    var func_tools_module_name = '/2010/07/07/List58/share/func_tools'
    
    if(!window[func_tools_module_name]) {
        var html_ns = 'http://www.w3.org/1999/xhtml'
        
        function FuncToolsModule() {}
        
        function new_func_tools_module() {
            var func_tools_module = new FuncToolsModule
            func_tools_module.init()
            return func_tools_module
        }
        
        FuncToolsModule.prototype.init = function() {}
        
        FuncToolsModule.prototype.args_array = function(raw_args) {
            var args = []
        
            for(var i = 0; i < raw_args.length; ++i) {
                args.push(raw_args[i])
            }
            
            return args
        }
        
        FuncToolsModule.prototype.func_bind = function(func, this_arg) {
            var args = this.args_array(arguments).slice(2)
            
            if(func.bind) {
                // using built 'func.bind()'. this is more effective way
                
                var bound = func.bind.apply(func, [this_arg].concat(args))
                
                return bound
            } else {
               // using emulation  of 'func.bind()'. this is less effective way
                
                var self_module = this
                
                var bound = function() {
                    var func_args = args.concat(self_module.args_array(arguments))
                    var func_res = func.apply(this_arg, func_args)
                    
                    return func_res
                }
                
                return bound
            }
        }
        
        window[func_tools_module_name] = new_func_tools_module()
    }
})()


{'fraction_non_alphanumeric': 0.07565059511801493, 'fraction_numerical': 0.010490215856364737, 'mean_word_length': 1.534764826175869, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3934311', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1277, 'n_words': 386}