<commit_before>'use strict';

const assert = require('assert');
const dns = require('dns');

const MongoClient = require('mongodb').MongoClient;

const sleep = 10;
console.log('Sleeping',sleep,"seconds before connecting to MongoDB...");

var host = "mongo."; // append a dot right now

setTimeout(() => {
  // Connection URL
  var url = `mongodb://${host}:27017/myproject`;
  // Use connect method to connect to the Server
  MongoClient.connect(url, function(err, db) {
    assert.equal(null, err);
    console.log("Connected correctly to server");

    db.close();
  });
}, sleep*1000);
<commit_msg>Remove dns<commit_after>'use strict';

const assert = require('assert');

const MongoClient = require('mongodb').MongoClient;

const sleep = 10;
console.log('Sleeping',sleep,"seconds before connecting to MongoDB...");

var host = "mongo."; // append a dot right now

setTimeout(() => {
  // Connection URL
  var url = `mongodb://${host}:27017/myproject`;
  // Use connect method to connect to the Server
  MongoClient.connect(url, function(err, db) {
    assert.equal(null, err);
    console.log("Connected correctly to server");

    db.close();
  });
}, sleep*1000);

{'fraction_non_alphanumeric': 0.16424294268605646, 'fraction_numerical': 0.018819503849443968, 'mean_word_length': 4.223214285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4574830', 'n_tokens_mistral': 385, 'n_tokens_neox': 356, 'n_words': 102}