<commit_before>setTimeout(function() {
  console.error('FAILED: timeout.');
  phantom.exit(1);
}, 10000);

var page = require('webpage').create();

page.onConsoleMessage = function(msg) {
  console.log('INFO: ' + msg);

  if (msg.indexOf('[extReady]') > -1) {
    console.log('SUCCESS');
    phantom.exit(0);
  }
};

page.open('https://myberl.in', function(status) {
  if (status != 'success') {
    console.error('FAILED: unreachable?');
    phantom.exit(2);
  }
});<commit_msg>Make PhantomJS more verbose.<commit_after>setTimeout(function() {
  console.error('FAILED: timeout.');
  phantom.exit(1);
}, 10000);

var page = require('webpage').create();

page.onResourceError = function(e) {
  console.log('ERROR: ' + e.errorString);
};

page.onConsoleMessage = function(msg) {
  console.log('INFO: ' + msg);

  if (msg.indexOf('[extReady]') > -1) {
    console.log('SUCCESS');
    phantom.exit(0);
  }
};

page.open('https://myberl.in', function(status) {
  if (status != 'success') {
    console.error('FAILED: unreachable?');
    phantom.exit(2);
  }
});
{'fraction_non_alphanumeric': 0.21496212121212122, 'fraction_numerical': 0.017045454545454544, 'mean_word_length': 4.285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3281754', 'n_tokens_mistral': 396, 'n_tokens_neox': 375, 'n_words': 57}