<commit_before>var Entry = require( './index' )
var Int64 = require( '../int64' )

/**
 * UpCase
 * @return {UpCase}
 */
function UpCase() {
  
  if( !(this instanceof UpCase) )
    return new UpCase()
  
  this.type = Entry.UPCASE
  this.unknown1 = new Buffer( 3 )
  this.unknown1.fill( 0 )
  this.checksum = 0x00000000
  this.unknown2 = new Buffer( 12 )
  this.unknown2.fill( 0 )
  this.startCluster = 0x00000000
  this.size = 0x0000000000000000
  
}

/**
 * UpCase prototype
 * @type {Object}
 */
UpCase.prototype = {
  
  constructor: UpCase,
  
  parse: function( buffer ) {
    
    this.type = buffer[ 0 ]
    buffer.copy( this.unknown1, 0x01 )
    this.checksum = buffer.readUInt32LE( 0x04 )
    buffer.copy( this.unknown2, 0x08 )
    this.startCluster = buffer.readUInt32LE( 0x14 )
    this.size = Int64.readUInt64LE( buffer, 0x18 )
    
    return this
    
  },
  
  toBuffer: function() {
    throw new Error( 'Not implemented' )
  }
  
}

// Exports
module.exports = UpCase
<commit_msg>refactor(entry/upcase): Rename unknown -> reserved<commit_after>var Entry = require( './index' )
var Int64 = require( '../int64' )

/**
 * UpCase
 * @return {UpCase}
 */
function UpCase() {
  
  if( !(this instanceof UpCase) )
    return new UpCase()
  
  this.type = Entry.UPCASE
  this.reserved1 = new Buffer( 3 )
  this.reserved1.fill( 0 )
  this.checksum = 0x00000000
  this.reserved2 = new Buffer( 12 )
  this.reserved2.fill( 0 )
  this.startCluster = 0x00000000
  this.size = 0x0000000000000000
  
}

/**
 * UpCase prototype
 * @type {Object}
 */
UpCase.prototype = {
  
  constructor: UpCase,
  
  parse: function( buffer ) {
    
    this.type = buffer[ 0 ]
    buffer.copy( this.reserved1, 0x01 )
    this.checksum = buffer.readUInt32LE( 0x04 )
    buffer.copy( this.reserved2, 0x08 )
    this.startCluster = buffer.readUInt32LE( 0x14 )
    this.size = Int64.readUInt64LE( buffer, 0x18 )
    
    return this
    
  },
  
  toBuffer: function() {
    throw new Error( 'Not implemented' )
  }
  
}

// Exports
module.exports = UpCase

{'fraction_non_alphanumeric': 0.1293483586477217, 'fraction_numerical': 0.07251347378735913, 'mean_word_length': 2.7194899817850637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '1957848', 'n_tokens_mistral': 841, 'n_tokens_neox': 730, 'n_words': 165}