<commit_before>var SpotNotification = require("../index");

var spot = SpotNotification.SpotNotifier;

spot.on("termination", function (date) {
    console.log("termination", date);
});
spot.on("termination-cancelled", function (date) {
    console.log("termination-cancelled", date);
});
spot.on("termination-not-detected", function (error) {
    console.log("termination-not-detected", error);
});

spot.instanceId()
    .then(function (id) {
        console.log("instanceId", id);
        process.exit(0);
    })
    .catch(function (err) {
        console.error("instanceId", err);
    });

setTimeout(function () {
    process.exit(1);
}, 20000);<commit_msg>old version<commit_after>var SpotNotification = require("../index");

var spot = SpotNotification.SpotNotifier;

spot.on("termination", function (date) {
    console.log("termination", date);
});
spot.on("termination-cancelled", function (date) {
    console.log("termination-cancelled", date);
});
spot.on("termination-not-detected", function (error) {
    console.log("termination-not-detected", error);
});

spot.instanceId()
    .then(function (id) {
        console.log("instanceId", id);
    })
    .catch(function (err) {
        console.error("instanceId", err);
    });

setTimeout(function () {
    process.exit(0);
}, 20000);
{'fraction_non_alphanumeric': 0.18629715165511931, 'fraction_numerical': 0.010007698229407237, 'mean_word_length': 4.118110236220472, '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': '5471780', 'n_tokens_mistral': 424, 'n_tokens_neox': 401, 'n_words': 67}