<commit_before>(function(angular) {
    'use strict';

    // Ensure FH module is defined
    try {
        angular.module('FH')
    } catch (e) {
        angular.module('FH', []);
    }

    angular.module('FH').service('FH.Act', function($rootScope, $window) {
        // Error strings used for error type detection
        var ACT_ERRORS = {
            UNKNOWN_ACT: 'no such function',
            INTERNAL_ERROR: 'internal error in',
            TIMEOUT: 'timeout'
        };

        // Expose error types for checks by user
        var ERRORS = this.ERRORS = {
            UNKNOWN_ACT: 'UNKNOWN_ACT',
            INTERNAL_ERROR: 'INTERNAL_ERROR',
            TIMEOUT: 'TIMEOUT',
            NETWORK: 'NETWORK'
        };

        // Controls whether debug logging is enabled
        var printLogs = true;


        /**
         * Log debug output for this module.
         * @param {String}  str
         */
        function debug() {
            if(printLogs === true) {
                args = Array.prototype.slice.call(arguments);
                args.unshift('$fh.act ' + new Date().toISOString() + ': ');

                console.debug.apply(console, args);
            }
        }
<commit_msg>Update errors<commit_after>(function(angular) {
    'use strict';

    // Ensure FH module is defined
    try {
        angular.module('FH')
    } catch (e) {
        angular.module('FH', []);
    }

    angular.module('FH').service('FH.Act', function($rootScope, $window) {
        // Error strings used for error type detection
        var ACT_ERRORS = {
            UNKNOWN_ACT: 'no such function',
            INTERNAL_ERROR: 'internal error in',
            TIMEOUT: 'timeout'
        };

        // Expose error types for checks by user
        var ERRORS = this.ERRORS = {
            UNKNOWN_ACT: 'UNKNOWN_ACT',
            CLOUD_ERROR: 'CLOUD_ERROR',
            TIMEOUT: 'TIMEOUT',
            NETWORK: 'NETWORK'
        };

        // Controls whether debug logging is enabled
        var printLogs = true;


        /**
         * Log debug output for this module.
         * @param {String}  str
         */
        function debug() {
            if(printLogs === true) {
                args = Array.prototype.slice.call(arguments);
                args.unshift('$fh.act ' + new Date().toISOString() + ': ');

                console.debug.apply(console, args);
            }
        }

{'fraction_non_alphanumeric': 0.12136325852036575, 'fraction_numerical': 0.0, 'mean_word_length': 1.6106290672451193, 'pattern_counts': {'":': 0, '<': 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': '2034077', 'n_tokens_mistral': 692, 'n_tokens_neox': 655, 'n_words': 165}