<commit_before>define([
  'moment-timezone'
], function (moment) {
  var formatters = {

    time: function (value, options) {
      _.defaults(options, {
        format: 'h:mma'
      });
      return formatters.date(value, options);
    },

    date: function (value, options) {
      _.defaults(options, {
        format: 'D MMMM YYYY'
      });
      var date = moment(value);
      return date.format(options.format);
    },

    dateRange: function (value, options) {
      _.defaults(options, {
        format: 'D MMM YYYY',
        subtract: 'day'
      });
      // avoid overlapping at the ends of a range i.e. 1 Mar-1 Apr => 1 Mar-31 Mar
      if (options.subtract) {
        value[1] = moment(value[1]).subtract(options.subtract, 1);
      }
      return formatters.date(value[0], options) + ' to ' +
        formatters.date(value[1], options);
    },

    duration: function (value, options) {
      _.defaults(options, {
        unit: 'ms',
        dps: 0
      });

      var divisor = 1;
      if (options.unit === 's') {
        divisor = 1000;
      } else if (options.unit === 'm') {
        divisor = 60000;
      }
      return formatters.number(value / divisor, options) + options.unit;
    },

    currency: function (value, options) {
      _.defaults(options, {
        symbol: '£',
        pence: false
      });
      if (options.pence) {
        options.dps = options.fixed = (options.pence ? 2 : 0);
      }
      return options.symbol + formatters.number(value, options);
    },

    percent: function (value, options) {
      _.defaults(options, {
        dps: 0
      });
      return formatters.number(value * 100, options) + '%';
    },

    integer: function (value, options) {
      _.defaults(options, {
        dps: 0
      });
      return formatters.number(value, options);
    },

    number: function (value, options) {
      _.defaults(options, {
        dps: 0,
        commas: true
      });<commit_msg>Removed conditional. It's always 2.<commit_after>define([
  'moment-timezone'
], function (moment) {
  var formatters = {

    time: function (value, options) {
      _.defaults(options, {
        format: 'h:mma'
      });
      return formatters.date(value, options);
    },

    date: function (value, options) {
      _.defaults(options, {
        format: 'D MMMM YYYY'
      });
      var date = moment(value);
      return date.format(options.format);
    },

    dateRange: function (value, options) {
      _.defaults(options, {
        format: 'D MMM YYYY',
        subtract: 'day'
      });
      // avoid overlapping at the ends of a range i.e. 1 Mar-1 Apr => 1 Mar-31 Mar
      if (options.subtract) {
        value[1] = moment(value[1]).subtract(options.subtract, 1);
      }
      return formatters.date(value[0], options) + ' to ' +
        formatters.date(value[1], options);
    },

    duration: function (value, options) {
      _.defaults(options, {
        unit: 'ms',
        dps: 0
      });

      var divisor = 1;
      if (options.unit === 's') {
        divisor = 1000;
      } else if (options.unit === 'm') {
        divisor = 60000;
      }
      return formatters.number(value / divisor, options) + options.unit;
    },

    currency: function (value, options) {
      _.defaults(options, {
        symbol: '£',
        pence: false
      });
      if (options.pence) {
        options.dps = options.fixed = 2;
      }
      return options.symbol + formatters.number(value, options);
    },

    percent: function (value, options) {
      _.defaults(options, {
        dps: 0
      });
      return formatters.number(value * 100, options) + '%';
    },

    integer: function (value, options) {
      _.defaults(options, {
        dps: 0
      });
      return formatters.number(value, options);
    },

    number: function (value, options) {
      _.defaults(options, {
        dps: 0,
        commas: true
      });
{'fraction_non_alphanumeric': 0.14476386036960986, 'fraction_numerical': 0.014887063655030801, 'mean_word_length': 1.9793577981651376, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7372627', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1197, 'n_words': 292}