<commit_before>var fs = require("fs"),
    async = require("async"),
    request = require("request");

exports.linkJar = function (jar, callback) {
    var dest = this.jar;

    async.waterfall([
        function (done) {
            fs.exists(dest, function (exists) {
                done(null, exists);
            });
        },
        function (exists, done) {
            if (exists) {
                fs.unlink(dest, done);<commit_msg>adding Server#runnable() to determine if a server has a jar to start the server with<commit_after>var fs = require("fs"),
    async = require("async"),
    request = require("request");

exports.hasJar = function (callback) {
    return fs.exists(this.jar, callback.bind(this));
};

exports.linkJar = function (jar, callback) {
    var dest = this.jar;

    async.waterfall([
        function (done) {
            fs.exists(dest, function (exists) {
                done(null, exists);
            });
        },
        function (exists, done) {
            if (exists) {
                fs.unlink(dest, done);
{'fraction_non_alphanumeric': 0.13744075829383887, 'fraction_numerical': 0.0, 'mean_word_length': 2.0787172011661808, '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': '7673676', 'n_tokens_mistral': 304, 'n_tokens_neox': 296, 'n_words': 77}