<commit_before>'use strict';
var dgram = require('dgram');
var net = require('net');
var eachAsync = require('each-async');
var onetime = require('onetime');
var roots = require('root-hints')('A');

var timeout = 1000;
var transactionID = new Buffer(['0xca', '0xfe']);
var domains = [
	'www.google.com',
	'www.cloudflare.com',
	'www.baidu.com',
	'www.yandex.ru'
];

module.exports = function (cb) {
	cb = onetime(cb);

	// Pick a random root server to query
	var server = roots[Math.floor(Math.random() * roots.length)];

	// Craft a DNS query
	var payload = Buffer.concat([transactionID, new Buffer([
		0x01, 0x00, /* Standard Query */
		0x00, 0x01, /* Questions: 1   */
		0x00, 0x00, /* Answer RRs     */
		0x00, 0x00, /* Authority RRs  */
		0x00, 0x00, /* Additional RRs */
		0x00,       /* Name:  <root>  */
		0x00, 0x02, /* Type:  NS      */
		0x00, 0x01  /* Class: IN      */
	])]);

	var udpSocket = dgram.createSocket('udp4');

	udpSocket.on('message', function (msg, rinfo) {
		if (msg && msg.length >= 2 && msg[0] === transactionID[0] &&
		    msg[1] === transactionID[1] && rinfo.address === server) {
			// We got an answer with a matching Transaction ID and the source<commit_msg>Remove more unnecessary byte quotes<commit_after>'use strict';
var dgram = require('dgram');
var net = require('net');
var eachAsync = require('each-async');
var onetime = require('onetime');
var roots = require('root-hints')('A');

var timeout = 1000;
var transactionID = new Buffer([0xCA, 0xFE]);
var domains = [
	'www.google.com',
	'www.cloudflare.com',
	'www.baidu.com',
	'www.yandex.ru'
];

module.exports = function (cb) {
	cb = onetime(cb);

	// Pick a random root server to query
	var server = roots[Math.floor(Math.random() * roots.length)];

	// Craft a DNS query
	var payload = Buffer.concat([transactionID, new Buffer([
		0x01, 0x00, /* Standard Query */
		0x00, 0x01, /* Questions: 1   */
		0x00, 0x00, /* Answer RRs     */
		0x00, 0x00, /* Authority RRs  */
		0x00, 0x00, /* Additional RRs */
		0x00,       /* Name:  <root>  */
		0x00, 0x02, /* Type:  NS      */
		0x00, 0x01  /* Class: IN      */
	])]);

	var udpSocket = dgram.createSocket('udp4');

	udpSocket.on('message', function (msg, rinfo) {
		if (msg && msg.length >= 2 && msg[0] === transactionID[0] &&
		    msg[1] === transactionID[1] && rinfo.address === server) {
			// We got an answer with a matching Transaction ID and the source
{'fraction_non_alphanumeric': 0.1788685524126456, 'fraction_numerical': 0.048252911813643926, 'mean_word_length': 3.3333333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '840177', 'n_tokens_mistral': 969, 'n_tokens_neox': 867, 'n_words': 235}