<commit_before>/*
  Copyright (c) Microsoft. All rights reserved.  
  Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
var fs, path;

module.exports = function(context) {
    
    // Skip processing if being called from within Visual Studio or MSBuild
    if (!process.env["MSBuildProjectDirectory"]) {
        fs = require('fs');
        path = require('path');

        context.opts.platforms.forEach(function(platform) {
            console.log("Processing res/native for " + platform);
            var resNative = path.join(process.cwd(), "res", "native", platform);
            if (fs.existsSync(resNative)) {
                copyFiles(resNative, path.join(process.cwd(), "platforms", platform));
            }
        });
    }

    // Recusive copy function for res/native processing
    function copyFiles(srcPath, destPath) {<commit_msg>Bug with location of platforms passed into context for hook<commit_after>/*
  Copyright (c) Microsoft. All rights reserved.  
  Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
var fs, path;

module.exports = function(context) {
    
    // Skip processing if being called from within Visual Studio or MSBuild
    if (!process.env["MSBuildProjectDirectory"]) {
        fs = require('fs');
        path = require('path');

        context.opts.cordova.platforms.forEach(function(platform) {
            console.log("Processing res/native for " + platform);
            var resNative = path.join(process.cwd(), "res", "native", platform);
            if (fs.existsSync(resNative)) {
                copyFiles(resNative, path.join(process.cwd(), "platforms", platform));
            }
        });            
    }

    // Recusive copy function for res/native processing
    function copyFiles(srcPath, destPath) {
{'fraction_non_alphanumeric': 0.11319742489270386, 'fraction_numerical': 0.0, 'mean_word_length': 2.7077534791252487, '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': '4193141', 'n_tokens_mistral': 485, 'n_tokens_neox': 479, 'n_words': 151}