<commit_before>'use strict'

class LocalDecoder {
  solidityLocals (vmtraceIndex, internalTreeCall, stack, memory) {
    var scope = this.internalTreeCall.findScope(vmtraceIndex)
    var locals = {}
    for (var local of scope.locals) {
      if (local.type.decodeLocals) {
        locals[local.name] = local.type.decodeLocals(local.stackHeight, stack, memory)
      }
    }
    return locals
  }
}

module.exports = LocalDecoder<commit_msg>fix localdecoder<commit_after>'use strict'

function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory) {
  var scope = internalTreeCall.findScope(vmtraceIndex)
  var locals = {}
  for (var local in scope.locals) {
    let variable = scope.locals[local]
    if (variable.type.decodeLocals) {
      locals[variable.name] = variable.type.decodeLocals(variable.stackHeight, stack, memory)
    } else {
      locals[variable.name] = ''
    }
  }
  return locals
}

module.exports = {
  solidityLocals: solidityLocals
}
{'fraction_non_alphanumeric': 0.10754912099276112, 'fraction_numerical': 0.0, 'mean_word_length': 3.768472906403941, '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': '2240904', 'n_tokens_mistral': 305, 'n_tokens_neox': 306, 'n_words': 63}