<commit_before>/*
 * Functional tests for pinging hosts
 */
require('should');
var Browser = require('zombie');
var utils = require('./utils');


describe('pings', function() {
  var server;
  var browser;

  before(function(done) {
    browser = new Browser();
    browser.site = utils.serverURL;

    server = utils.startServer(done);
  });

  beforeEach(function(done) {
    browser.visit('/').then(done, done);
  });

  after(function() {
    server.kill();
  });

  it('should show whether a URL is up or down', function(done) {
    // The user adds a URL that's expected to be up

    // And see it on the page, marked as "up"

    // Next, they add a URL that's not expected to be up

    // They see it on the page, marked as "down"

    // The first URL goes down!

    // It's now marked as "down"

    // The second URL comes up!

    // It's now marked as "up"

    done(new Error('Finish the test!'));
  });
});<commit_msg>Fix awkward wording<commit_after>/*
 * Functional tests for pinging hosts
 */
require('should');
var Browser = require('zombie');
var utils = require('./utils');


describe('pings', function() {
  var server;
  var browser;

  before(function(done) {
    browser = new Browser();
    browser.site = utils.serverURL;

    server = utils.startServer(done);
  });

  beforeEach(function(done) {
    browser.visit('/').then(done, done);
  });

  after(function() {
    server.kill();
  });

  it('should show whether a URL is up or down', function(done) {
    // The user adds a URL that's expected to be up

    // And see it on the page, marked as "up"

    // Next, they add a URL that's expected to be down

    // They see it on the page, marked as "down"

    // The first URL goes down!

    // It's now marked as "down"

    // The second URL comes up!

    // It's now marked as "up"

    done(new Error('Finish the test!'));
  });
});
{'fraction_non_alphanumeric': 0.14818763326226012, 'fraction_numerical': 0.0, 'mean_word_length': 2.754, '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': '2724547', 'n_tokens_mistral': 611, 'n_tokens_neox': 569, 'n_words': 211}