<commit_before>//var BigNumber = require("bignumber.js");
var ErrorCodeToName = require('../constants/errors.js');

var bn = require('bn.js');

function Packet(id, buffer, start, end)
{
  this.sequenceId = id;
  this.buffer = buffer;
  this.start  = start;
  this.offset = start + 4;
  this.end    = end;
}

// ==============================
// readers
// ==============================

Packet.prototype.reset = function() {
  this.offset = this.start;
};
<commit_msg>fix packet.reset to use correct offset<commit_after>//var BigNumber = require("bignumber.js");
var ErrorCodeToName = require('../constants/errors.js');

var bn = require('bn.js');

function Packet(id, buffer, start, end)
{
  this.sequenceId = id;
  this.buffer = buffer;
  this.start  = start;
  this.offset = start + 4;
  this.end    = end;
}

// ==============================
// readers
// ==============================

Packet.prototype.reset = function() {
  this.offset = this.start + 4;
};

{'fraction_non_alphanumeric': 0.2730093071354705, 'fraction_numerical': 0.0031023784901758012, 'mean_word_length': 3.9137055837563453, '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': '4972190', 'n_tokens_mistral': 317, 'n_tokens_neox': 305, 'n_words': 66}