<commit_before>'use strict';

module.exports = function(gulp, config) {
  return function() {
    var _ = require('lodash');
    var nodemon = require('gulp-nodemon');
    var notifier = require('node-notifier');
    var path = require('path');
    var env = _.extend({}, config.server.environmentVariables, process.env);

    nodemon({
      script: config.server.runnable,
      ext: 'js jade',
      watch: [config.build.distPath],
      delay: 1,
      legacyWatch: env.NODEMON_LEGACY_WATCH === true,
      env: env
    }).on('restart', function() {
      notifier.notify({
        title: 'Boar tasks',
        message: 'Server restarted',
        icon: path.join(__dirname, '..', 'boar.png')
      });
    });
  };
};<commit_msg>fix(nodemon): fix env var usage<commit_after>'use strict';

module.exports = function(gulp, config) {
  return function() {
    var _ = require('lodash');
    var nodemon = require('gulp-nodemon');
    var notifier = require('node-notifier');
    var path = require('path');
    var env = _.extend({}, config.server.environmentVariables, process.env);

    nodemon({
      script: config.server.runnable,
      ext: 'js jade',
      watch: [config.build.distPath],
      delay: 1,
      legacyWatch: env.NODEMON_LEGACY_WATCH === "true",
      env: env
    }).on('restart', function() {
      notifier.notify({
        title: 'Boar tasks',
        message: 'Server restarted',
        icon: path.join(__dirname, '..', 'boar.png')
      });
    });
  };
};
{'fraction_non_alphanumeric': 0.16733870967741934, 'fraction_numerical': 0.0013440860215053765, 'mean_word_length': 2.8081841432225065, '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': '56309', 'n_tokens_mistral': 480, 'n_tokens_neox': 471, 'n_words': 104}