<commit_before>
var debug = require('debug')('mdns:advertisement');
var dgram = require('dgram');
var os = require('os');

var dns = require('mdns-js-packet');
var DNSPacket = dns.DNSPacket;
var DNSRecord = dns.DNSRecord;
var ServiceType = require('./service_type').ServiceType;
var pf = require('./packetfactory');

var internal = {};

internal.sendDNSPacket = function (packet, cb) {
  debug('sending %d question, %d answer', packet.question.length, packet.answer.length);
  debug('packet', packet);
  var buf = DNSPacket.toBuffer(packet);

  // send packet
  var sock = dgram.createSocket('udp4');
  sock.bind(5353, function (err) {
    if (err) {
      debug('there was an error binding %s', err);
      return;
    }<commit_msg>fix lint errors<commit_after>
var debug = require('debug')('mdns:advertisement');
var dgram = require('dgram');
var os = require('os');

var dns = require('mdns-js-packet');
var DNSPacket = dns.DNSPacket;
var DNSRecord = dns.DNSRecord;
var ServiceType = require('./service_type').ServiceType;
var pf = require('./packetfactory');

var internal = {};

internal.sendDNSPacket = function (packet, cb) {
  debug('sending %d question, %d answer',
    packet.question.length, packet.answer.length);
  debug('packet', packet);
  var buf = DNSPacket.toBuffer(packet);

  // send packet
  var sock = dgram.createSocket('udp4');
  sock.bind(5353, function (err) {
    if (err) {
      debug('there was an error binding %s', err);
      return;
    }
{'fraction_non_alphanumeric': 0.16168478260869565, 'fraction_numerical': 0.006793478260869565, 'mean_word_length': 4.395604395604396, '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': '878097', 'n_tokens_mistral': 496, 'n_tokens_neox': 478, 'n_words': 124}