<commit_before>'use strict';

var applicationConf = process.requirePublish('conf.js');

/**
 * Gets the list of minified JavaScript files from the given list of files.
 *
 * It will just replace ".js" by ".min.js".
 *
 * @param Array files The list of files
 * @return Array The list of minified files
 */
function getMinifiedJSFiles(files) {
  var minifiedFiles = [];
  files.forEach(function(path) {
    minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js').replace('/publish/', ''));
  });
  return minifiedFiles;
}

module.exports = {

  // Concatenate back office client JavaScript library files
  'admin-libraries': {
    src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']),
    dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js'
  },

  // Concatenate all back office client JavaScript files
  'admin-js': {
    src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']),
    dest: '<%= publish.beJSAssets %>/openveoPublish.js'
  },
  frontJS: {

    // Concatenate all front JavaScript files
    src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']),

    // Concatenate all files into openveoPublishPlayer.js
    dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js'

  }
};<commit_msg>commands: rename concat:frontJS<commit_after>'use strict';

var applicationConf = process.requirePublish('conf.js');

/**
 * Gets the list of minified JavaScript files from the given list of files.
 *
 * It will just replace ".js" by ".min.js".
 *
 * @param Array files The list of files
 * @return Array The list of minified files
 */
function getMinifiedJSFiles(files) {
  var minifiedFiles = [];
  files.forEach(function(path) {
    minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js').replace('/publish/', ''));
  });
  return minifiedFiles;
}

module.exports = {

  // Concatenate back office client JavaScript library files
  'admin-libraries': {
    src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']),
    dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js'
  },

  // Concatenate all back office client JavaScript files
  'admin-js': {
    src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']),
    dest: '<%= publish.beJSAssets %>/openveoPublish.js'
  },

  // Concatenate all front office client JavaScript files
  'front-js': {
    src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']),
    dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js'
  }

};
{'fraction_non_alphanumeric': 0.1578137028483449, 'fraction_numerical': 0.0, 'mean_word_length': 4.4831223628691985, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3574014', 'n_tokens_mistral': 816, 'n_tokens_neox': 806, 'n_words': 185}