<commit_before>var async = require('async');

var pingdom = require('./pingdom');


function checks(config, limit, done) {
    var api = pingdom(config);

    api.checks(function(err, checks) {
        if(err) return console.error(err);

        async.map(checks, function(check, cb) {
            api.results(function(err, results) {
                if(err) return cb(err);

                cb(null, {
                    name: check.name,
                    host: check.hostname,<commit_msg>Add a credential check<commit_after>var async = require('async');

var pingdom = require('./pingdom');


function checks(config, limit, done) {
    var api = pingdom(config);

    api.checks(function(err, checks) {
        if(err) return console.error(err);
        if(!checks) return console.warn('Check your credentials!');

        async.map(checks, function(check, cb) {
            api.results(function(err, results) {
                if(err) return cb(err);

                cb(null, {
                    name: check.name,
                    host: check.hostname,
{'fraction_non_alphanumeric': 0.13145539906103287, 'fraction_numerical': 0.0, 'mean_word_length': 2.1538461538461537, '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': '3530564', 'n_tokens_mistral': 318, 'n_tokens_neox': 294, 'n_words': 69}