<commit_before>import e from 'lib/engine/engine'
import _ from 'lodash'
import {sampleMean, sampleStdev, percentile, cutoff, sortDescending} from 'lib/dataAnalysis.js'

function sStats(simulation){
  if (!_.has(simulation, 'sample.values') || (simulation.sample.values.length === 0)) {
    return
  }
  const samples = sortDescending(simulation.sample.values)<commit_msg>Don't sort in sStats function.<commit_after>import e from 'lib/engine/engine'
import _ from 'lodash'
import {sampleMean, sampleStdev, percentile, cutoff, sortDescending} from 'lib/dataAnalysis.js'

function sStats(simulation){
  if (!_.has(simulation, 'sample.values') || (simulation.sample.values.length === 0)) {
    return
  }
  const samples = sortDescending(Object.assign([], simulation.sample.values))
{'fraction_non_alphanumeric': 0.13624678663239073, 'fraction_numerical': 0.002570694087403599, 'mean_word_length': 5.833333333333333, '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': '1192951', 'n_tokens_mistral': 248, 'n_tokens_neox': 235, 'n_words': 56}