<commit_before>'use strict';

const DefaultPort = {
  kCoAP: 5683, // default port for CoAP.
  kMLE: 19788, // default port for MLE.
};

/**
 * Parse the buffer.
 *
 * @param {Buffer}  buf     The buffer to parse.
 * @param {Object}  packet  The packet provides the buffer.
 *
 * @return  {object}  The parsed data.
 */
function parse(buf, packet) {
  if (buf.length < 8) {
    throw new Error('Invalid UDP packet');
  }
<commit_msg>no exception<commit_after>'use strict';

const DefaultPort = {
  kCoAP: 5683, // default port for CoAP.
  kMLE: 19788, // default port for MLE.
};

/**
 * Parse the buffer.
 *
 * @param {Buffer}  buf     The buffer to parse.
 * @param {Object}  packet  The packet provides the buffer.
 *
 * @return  {object}  The parsed data.
 */
function parse(buf, packet) {
  if (buf.length < 8) {
    return;
  }

{'fraction_non_alphanumeric': 0.1366906474820144, 'fraction_numerical': 0.023980815347721823, 'mean_word_length': 2.830275229357798, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1513006', 'n_tokens_mistral': 301, 'n_tokens_neox': 285, 'n_words': 97}