<commit_before>
/**
 * VBR constructor
 * @param {Buffer} buffer
 */
function VBR( buffer ) {
  
  if( !(this instanceof VBR) )
    return new VBR( buffer )
  
  // No JMP to bootloader code -> no VBR
  if( buffer[0] !== 0xEB && buffer[0] !== 0xE9 )
    return new Error( 'No VBR detected' );
  
  // 0x20 padded OEM/System name
  this.systemName = buffer.slice( 0x03, 0x03 + 0x08 )
    .toString( 'ascii' ).trim()
  
  this.type = buffer.slice( 0x15, 0x16 )
  
  this.bytesPerSector    = buffer.readUInt16LE( 0x0B )
  this.sectorsPerCluster = buffer.readUInt8( 0x0D )
  this.sectorSize        = this.bytesPerSector * this.sectorsPerCluster
  this.numberOfFATs      = buffer.readUInt8( 0x10 )
  this.maxEntries        = buffer.readUInt8( 0x11 )
  this.sectorsPerFAT     = buffer.readUInt16LE( 0x16 )
  this.sectorsPerTrack   = buffer.readUInt16LE( 0x18 )
  this.headsPerTrack     = buffer.readUInt16LE( 0x1A )
  this.hiddenSectors     = buffer.readUInt16LE( 0x1C )
  this.reservedSectors   = buffer.readUInt16LE( 0x0E )
  
  this.sectors = buffer.readUInt16LE( 0x13 ) ||
    buffer.readUInt16LE( 0x20 )
  
}

// Exports
module.exports = VBR

/**
 * VBR prototype
 * @type {Object}
 */
VBR.prototype = {
  
  constructor: VBR
  
}
<commit_msg>Updated lib/vbr: Fixed wrong property name<commit_after>
/**
 * VBR constructor
 * @param {Buffer} buffer
 */
function VBR( buffer ) {
  
  if( !(this instanceof VBR) )
    return new VBR( buffer )
  
  // No JMP to bootloader code -> no VBR
  if( buffer[0] !== 0xEB && buffer[0] !== 0xE9 )
    return new Error( 'No VBR detected' );
  
  // 0x20 padded OEM/System name
  this.systemName = buffer.slice( 0x03, 0x03 + 0x08 )
    .toString( 'ascii' ).trim()
  
  this.type = buffer.slice( 0x15, 0x16 )
  
  this.bytesPerSector    = buffer.readUInt16LE( 0x0B )
  this.sectorsPerCluster = buffer.readUInt8( 0x0D )
  this.clusterSize       = this.bytesPerSector * this.sectorsPerCluster
  this.numberOfFATs      = buffer.readUInt8( 0x10 )
  this.maxEntries        = buffer.readUInt8( 0x11 )
  this.sectorsPerFAT     = buffer.readUInt16LE( 0x16 )
  this.sectorsPerTrack   = buffer.readUInt16LE( 0x18 )
  this.headsPerTrack     = buffer.readUInt16LE( 0x1A )
  this.hiddenSectors     = buffer.readUInt16LE( 0x1C )
  this.reservedSectors   = buffer.readUInt16LE( 0x0E )
  
  this.sectors = buffer.readUInt16LE( 0x13 ) ||
    buffer.readUInt16LE( 0x20 )
  
}

// Exports
module.exports = VBR

/**
 * VBR prototype
 * @type {Object}
 */
VBR.prototype = {
  
  constructor: VBR
  
}

{'fraction_non_alphanumeric': 0.120175089534421, 'fraction_numerical': 0.055710306406685235, 'mean_word_length': 2.891640866873065, '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': '2683419', 'n_tokens_mistral': 1042, 'n_tokens_neox': 959, 'n_words': 197}