<commit_before>var fs = require('fs');

module.exports = function (context, xmlZipBlob) {
    context.log('Node.js blob trigger function processed blob:', xmlZipBlob);
    context.log(`typeof xmlZipBlob:`, typeof xmlZipBlob);

    fs.writeFile('xmlZip.zip', xmlZipBlob, (err) => {
        if (err) {
            throw err;
        }

        context.log('saved blob to loal file called xmlZip.zip');
        context.done();
    });
};<commit_msg>Add more logs and try catch to see what's happening with function<commit_after>var fs = require('fs');

module.exports = function (context, xmlZipBlob) {
    context.log('Node.js blob trigger function processed blob:', xmlZipBlob);
    context.log(`typeof xmlZipBlob:`, typeof xmlZipBlob);

    try {
        fs.writeFile('xmlZip.zip', xmlZipBlob, 'utf8', (err) => {
            if (err) {
                throw err;
            }

            context.log('saved blob to loal file called xmlZip.zip');
            context.done();
        });
    }
    catch (e) {
        context.log(e);
    }

    context.log('end of function, continue execution?');

    setTimeout(function () {
        context.log('timeout worked');
    }, 2000);
};
{'fraction_non_alphanumeric': 0.14032121724429417, 'fraction_numerical': 0.00422654268808115, 'mean_word_length': 2.5238095238095237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '1956717', 'n_tokens_mistral': 367, 'n_tokens_neox': 341, 'n_words': 91}