<commit_before>/**
 * Library methods for server tasks
 *
 * @author <NAME>
 */

'use strict';

var path = require('path');

module.exports = function (gulp, gutil) {

  var serverConfig = {};
  var serverConfigPath = gutil.env.serverConfig || 'server.conf.json';

  var defaults = {
    serverUrl: undefined,
    pluginToken: undefined,
    community: undefined,
    strictMode: false,
    dryRun: false,
    allowStudioOverrides: false,
    toolVersion: '1.0.0',
    verbose: false,
    force: false,
    pluginPoints: [],
    sdkOutputDir: undefined,
    useLocalCompile: false,
    localSkinCompileVersion: 'v1.7-lia16.2',
    localSkinCompileSkin: 'responsive_peak',
    localSkinCompileFeature: 'responsivepeak',
    localSkinCompileDest: '.tmp/lia/styles',
    localServerDir: '.tmp/lia',
    localServerPort: 9000,

    //Hack to copy files to plugin - until sandbox is fully supported.
    sandboxPluginDir: undefined,
    pluginReloadUrl: '/t5/api/plugin'
  };

  try {
    serverConfig = require(path.join(process.cwd(), serverConfigPath));
  } catch (err) {
    throw new Error('Error reading server.conf.json at [' +
      path.join(process.cwd(), serverConfigPath) +
      ']. Please use template.server.conf.json to create server.conf.json.');
  }

  Object.keys(defaults).forEach(function (key) {
    if (!serverConfig.hasOwnProperty(key) || serverConfig[key] === undefined) {
      serverConfig[key] = defaults[key];<commit_msg>Adding new feature versions for 16.3<commit_after>/**
 * Library methods for server tasks
 *
 * @author <NAME>
 */

'use strict';

var path = require('path');

module.exports = function (gulp, gutil) {

  var serverConfig = {};
  var serverConfigPath = gutil.env.serverConfig || 'server.conf.json';

  var defaults = {
    serverUrl: undefined,
    pluginToken: undefined,
    community: undefined,
    strictMode: false,
    dryRun: false,
    allowStudioOverrides: false,
    toolVersion: '1.0.0',
    verbose: false,
    force: false,
    pluginPoints: [],
    sdkOutputDir: undefined,
    useLocalCompile: false,
    localSkinCompileVersion: 'v1.8-lia16.3',
    localSkinCompileSkin: 'responsive_peak',
    localSkinCompileFeature: 'responsivepeak',
    localSkinCompileDest: '.tmp/lia/styles',
    localServerDir: '.tmp/lia',
    localServerPort: 9000,

    //Hack to copy files to plugin - until sandbox is fully supported.
    sandboxPluginDir: undefined,
    pluginReloadUrl: '/t5/api/plugin'
  };

  try {
    serverConfig = require(path.join(process.cwd(), serverConfigPath));
  } catch (err) {
    throw new Error('Error reading server.conf.json at [' +
      path.join(process.cwd(), serverConfigPath) +
      ']. Please use template.server.conf.json to create server.conf.json.');
  }

  Object.keys(defaults).forEach(function (key) {
    if (!serverConfig.hasOwnProperty(key) || serverConfig[key] === undefined) {
      serverConfig[key] = defaults[key];
{'fraction_non_alphanumeric': 0.1314795743220048, 'fraction_numerical': 0.009955372468245795, 'mean_word_length': 3.588976377952756, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1299227', 'n_tokens_mistral': 939, 'n_tokens_neox': 897, 'n_words': 210}