<commit_before>module.exports = function ListNode(val) {
  this.val = val;
  this.next = null;
}<commit_msg>[lib] implement ListNode.view() to show list as string<commit_after>var ListNode = function ListNode(val) {
  this.val = val;
  this.next = null;
}

ListNode.prototype.view = function() {
  var arr = [];
  for (var node = this; node !== null; node = node.next) {
    arr.push(node.val);
  }
  return arr.join(' -> ');
}

module.exports = ListNode;
{'fraction_non_alphanumeric': 0.16043956043956045, 'fraction_numerical': 0.0, 'mean_word_length': 3.7010309278350517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7100500', 'n_tokens_mistral': 160, 'n_tokens_neox': 157, 'n_words': 39}