<commit_before>var Packet = require('../packets/packet');
var CommandCodes = require('../constants/commands');

function CloseStatement(id)
{
  this.id = id;
}

// note: no response sent back
CloseStatement.prototype.toPacket = function()
{
  var packet = new Packet(0, new Buffer(9));
  packet.offset = 4;
  packet.writeInt8(CommandCodes.STMT_CLOSE);
  packet.writeInt32(this.id);
  return packet;
};

module.exports = CloseStatement;<commit_msg>add start and end to CloseStatement packet<commit_after>var Packet = require('../packets/packet');
var CommandCodes = require('../constants/commands');

function CloseStatement(id)
{
  this.id = id;
}

// note: no response sent back
CloseStatement.prototype.toPacket = function()
{
  var packet = new Packet(0, new Buffer(9), 0, 9);
  packet.offset = 4;
  packet.writeInt8(CommandCodes.STMT_CLOSE);
  packet.writeInt32(this.id);
  return packet;
};

module.exports = CloseStatement;
{'fraction_non_alphanumeric': 0.14208826695371368, 'fraction_numerical': 0.015069967707212056, 'mean_word_length': 4.77639751552795, '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': '3492593', 'n_tokens_mistral': 304, 'n_tokens_neox': 298, 'n_words': 69}